I cannot import the solution into the server through server-admin
Please see the attached error message.
Servoy Developer
Version 3.0b3-build 364
Java version 1.5.0_06-b05 (Windows 2003)
I cannot import the solution into the server through server-admin
Please see the attached error message.
Servoy Developer
Version 3.0b3-build 364
Java version 1.5.0_06-b05 (Windows 2003)
faheemhameed:
I cannot import the solution into the server through server-adminPlease see the attached error message.
I had a similar error when I forgot to include some module: can this be your case?
No. I also get this error when I import an independant module as well.
Do you have more information? A stack trace should be in the log somewhere.
Here it is the stack trace:
2006-07-04 20:37:14,130 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - ImportHandlerManager got XML version 10, repository version 28, Servoy version 3.0b3, build number 364
2006-07-04 20:37:14,146 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - repository_server: Got connection, thread=http-8080-Processor2
2006-07-04 20:37:14,146 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - repository_server: Closed connection, thread=http-8080-Processor2
2006-07-04 20:37:14,146 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - repository_server: Got connection, thread=http-8080-Processor2
2006-07-04 20:37:14,458 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - Got solution id 6 for import.
2006-07-04 20:37:14,458 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - Got server access_v2 for connection 'access_v2'
2006-07-04 20:37:14,474 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - repository_server: Got connection, thread=http-8080-Processor2
2006-07-04 20:37:14,489 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - repository_server: Closed connection, thread=http-8080-Processor2
2006-07-04 20:37:14,896 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - New release of existing solution created.
2006-07-04 20:37:15,052 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - access_v2: Got connection, thread=http-8080-Processor2
2006-07-04 20:37:15,052 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - Database name MySQL
2006-07-04 20:37:15,068 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - Table Name room
2006-07-04 20:37:15,068 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - Table Name room_user_group
2006-07-04 20:37:15,068 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - Table Name special_action
2006-07-04 20:37:15,068 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - Table Name sysadmin
2006-07-04 20:37:15,068 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - Table Name user_group
2006-07-04 20:37:15,068 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - Table Name user_group_special_action
2006-07-04 20:37:15,068 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - Table Name user_info
2006-07-04 20:37:15,068 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - access_v2: Closed connection, thread=http-8080-Processor2
2006-07-04 20:37:15,068 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - Throwable
java.lang.NullPointerException
at com.servoy.j2db.persistence.Solution.getModules(Unknown Source)
at com.servoy.j2db.persistence.Solution.getAllMedias(Unknown Source)
at com.servoy.j2db.persistence.Solution.getMedia(Unknown Source)
at com.servoy.j2db.persistence.i.if(Unknown Source)
at com.servoy.j2db.persistence.i.a(Unknown Source)
at com.servoy.j2db.persistence.XMLImporter.importSolutionFromFileAs(Unknown Source)
at com.servoy.j2db.persistence.XMLImporter.importSolutionFromFile(Unknown Source)
at com.servoy.j2db.server.servlets.ConfigServlet.a(Unknown Source)
at com.servoy.j2db.server.servlets.ConfigServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
2006-07-04 20:37:15,068 DEBUG [http-8080-Processor2] com.servoy.j2db.util.Debug - repository_server: Closed connection, thread=http-8080-Processor2
2006-07-04 20:37:34,739 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - ImportHandlerManager got XML version 10, repository version 28, Servoy version 3.0b3, build number 364
2006-07-04 20:37:34,739 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - repository_server: Got connection, thread=http-8080-Processor4
2006-07-04 20:37:34,739 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - repository_server: Closed connection, thread=http-8080-Processor4
2006-07-04 20:37:34,739 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - repository_server: Got connection, thread=http-8080-Processor4
2006-07-04 20:37:35,005 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - Got solution id 6 for import.
2006-07-04 20:37:35,005 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - Got server access_v2 for connection 'access_v2'
2006-07-04 20:37:35,036 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - repository_server: Got connection, thread=http-8080-Processor4
2006-07-04 20:37:35,052 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - repository_server: Closed connection, thread=http-8080-Processor4
2006-07-04 20:37:35,396 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - New release of existing solution created.
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - access_v2: Got connection, thread=http-8080-Processor4
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - Database name MySQL
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - Table Name room
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - Table Name room_user_group
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - Table Name special_action
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - Table Name sysadmin
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - Table Name user_group
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - Table Name user_group_special_action
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - Table Name user_info
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - access_v2: Closed connection, thread=http-8080-Processor4
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - Throwable
java.lang.NullPointerException
at com.servoy.j2db.persistence.Solution.getModules(Unknown Source)
at com.servoy.j2db.persistence.Solution.getAllMedias(Unknown Source)
at com.servoy.j2db.persistence.Solution.getMedia(Unknown Source)
at com.servoy.j2db.persistence.i.if(Unknown Source)
at com.servoy.j2db.persistence.i.a(Unknown Source)
at com.servoy.j2db.persistence.XMLImporter.importSolutionFromFileAs(Unknown Source)
at com.servoy.j2db.persistence.XMLImporter.importSolutionFromFile(Unknown Source)
at com.servoy.j2db.server.servlets.ConfigServlet.a(Unknown Source)
at com.servoy.j2db.server.servlets.ConfigServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
2006-07-04 20:37:35,427 DEBUG [http-8080-Processor4] com.servoy.j2db.util.Debug - repository_server: Closed connection, thread=http-8080-Processor4
Thanks for the report. This is a bug and will be fixed in the next release.
As a workaround, you can connect to your repository database with your Servoy Developer and do the import. Make sure the Servoy Server is not running at that time.
Thanks!