Error when importing solution - cannot import any solution

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Error when importing solution - cannot import any solution

Postby francisco.garcia » Thu Sep 06, 2018 7:13 pm

Hi, i have the following error when i try to import any solution:

com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: root object may not contain root objects

It started to happen after i was importing a solution in a production server with clients running and i had to reboot the server completely in the middle of the import. After that i could not import any solution.
Please help me.

Here is the complete trace
Code: Select all
com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: root object may not contain root objects
       at com.servoy.j2db.server.Za.Za.Za(Za.java:1092)
       at com.servoy.j2db.server.Zc.Zn.importRootObject(Zn.java:175)
       at com.servoy.j2db.server.Zc.Zag.Za(Zag.java:163)
       at com.servoy.j2db.server.Zc.Zag.Za(Zag.java:92)
       at com.servoy.j2db.server.Zc.Zag.importFromJarFile(Zag.java:252)
       at com.servoy.j2db.server.servlets.ConfigServlet.Za(ConfigServlet.java:4849)
       at com.servoy.j2db.server.servlets.ConfigServlet.service(ConfigServlet.java:5670)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
       at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
       at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
       at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
       at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
       at java.lang.Thread.run(Thread.java:748)
    Caused by: com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: root object may not contain root objects
       at com.servoy.j2db.server.Za.Za.Za(Za.java:513)
       at com.servoy.j2db.server.Za.Za.Za(Za.java:721)
       ... 27 more
    Caused by: com.servoy.j2db.persistence.RepositoryException: root object may not contain root objects
       at com.servoy.j2db.server.Za.Za.Za(Za.java:819)
       at com.servoy.j2db.server.Za.Za.Za(Za.java:180)
       ... 28 more
francisco.garcia
 
Posts: 6
Joined: Tue Jan 09, 2018 3:40 pm

Re: Error when importing solution - cannot import any soluti

Postby mboegem » Fri Sep 07, 2018 10:04 am

Hi,

It seems like after all a part of the import was already done before you interrupted the process.

Guess you have to get rid of the existing repository data, in order to update successful now.
Two approaches:
1) delete existing solutions, restart the app-server, import again
2) shutdown app-server, create a new repository DB, start app-server and do a fresh import.

Depending on the number of solutions/modules and version history, approach 1 could be a lengthy process.
Downside of approach 2 is that you will loose user/group information.

Hope this helps.
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1447
Joined: Sun Oct 14, 2007 1:34 pm
Location: Hoofddorp, The Netherlands


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 2 guests

cron