Cannot import a solution to a standalone repository

Running Servoy 4.1 connected to a central servoy_repository. I exported the application to a .servoy file with no errors.

Next, I want to move this export Servoy file to a standalone workstation (also running same version of 4.1) which is not connected to the central development servoy_repository at all.

When I try to import the solution I get the following error:

[info] Import contains XML version 14 and repository version 35.
[error] com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: root object not found

Here’s what the localhost application server log shows:

com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: root object not found
at com.servoy.j2db.persistence.Zed.Za(Zed.java:802)
at com.servoy.j2db.persistence.XMLImporter.importFromJarFile(XMLImporter.java:19)
at com.servoy.j2db.server.servlets.ConfigServlet.Zk(ConfigServlet.java:2214)
at com.servoy.j2db.server.servlets.ConfigServlet.service(ConfigServlet.java:984)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: root object not found
at com.servoy.j2db.persistence.AbstractRepository.getActiveRootObjects(AbstractRepository.java:88)
at com.servoy.j2db.persistence.Zed.Za(Zed.java:134)
… 17 more
Caused by: com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: root object not found
at com.servoy.j2db.persistence.Repository.loadRootObjectWithChildren(Repository.java:1781)
at com.servoy.j2db.persistence.Repository.loadRootObject(Repository.java:161)
at com.servoy.j2db.persistence.Zzb.Za(Zzb.java:2)
at com.servoy.j2db.persistence.AbstractRepository.getRootObject(AbstractRepository.java:143)
at com.servoy.j2db.persistence.AbstractRepository.getActiveRootObjects(AbstractRepository.java:6)
… 18 more
Caused by: com.servoy.j2db.persistence.RepositoryException: root object not found
at com.servoy.j2db.persistence.Repository.getObjectTree(Repository.java:59)
at com.servoy.j2db.persistence.Repository.loadRootObjectWithChildren(Repository.java:73)
… 22 more

I wouldn’t expect to find the same repository info on a separate and distinct repository, but not sure why it’s a fatal error here.

Any ideas or has anybody run into this before? Thanks in advance for any suggestions & input. Happy Holidays!

Regards, Tony

Anthony Vitrano
ReadQ Systems, Inc.

Hi Tony,

I have seen several reported errors with importing the repository and svn so I think that we should wait for 4.1.1.
It seems to work for some and not for others. Can’t really see why since errors are not really consistent.

Maybe it is best to create a ticket for this including the export file so that Servoy can analyze the file…

Just for the reference, this problem was caused by a corrupted repository. Deleting the old solution and importing again solved the problem.

Hi,
I have approximately the same problem: i deleted a (web client) solution and imported it again, and then tried to flush it (i work in a multideveloper). After I flushed it this error occurred: com.servoy.j2db.persistence.RepositoryException: root object not found.
The solution does not work in the smart client,nor in the web client, but i can open it in Servoy application. I deleted it and imported it again, like Laurian said, but still no change… Do you have any idea why? I mention that i am using Servoy 3.5.7.
Diana

When did you get this error, at import or at flush ?

I got this error at flush. At importing i received the message that the solution was imported.

Maybe a module of main solution causes this ? You can try to clean import or create a new release.

Hi Laurian,

I restarted application server and it worked. It seems that each time i delete or add solutions to the server repository, I need to restart the app server. So now I can flush the solution and run it into the browser.
Diana