I try to duplicate my solution in order to ad some custom functionality. So I export the active one and than I want to import it again by doing a clean import in the Servoy-admin browser. But I get following error:
[info] Import contains XML version 14 and repository version 35.
[error] com.servoy.j2db.persistence.RepositoryException: Invalid export
Surprising is that if I import the same solution overwriting the existing it works like sunshine. What am I doing wrong?
com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: Invalid export
at com.servoy.j2db.persistence.Zfd.Za(Zfd.java)
at com.servoy.j2db.persistence.XMLImporter.importFromJarFile(XMLImporter.java)
at com.servoy.j2db.server.servlets.ConfigServlet.Zk(ConfigServlet.java)
at com.servoy.j2db.server.servlets.ConfigServlet.service(ConfigServlet.java)
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(Thread.java:613)
Caused by: com.servoy.j2db.persistence.RepositoryException: Invalid export
at com.servoy.j2db.persistence.Zfd.Za(Zfd.java)
… 18 more
Today I installed 4.1.0 beta 5, and I exported my solution and reimported it as a clean install. And guess what…I have exactly the same problem as before, with exactly the same error log.
I tried the solution from case in b5 and it works. Are you sure you are running b5 ? You can post the solution here ( or send me through email) and I will have a look.
You where right, when I installed the new version, I restarted the application server, but I didn’t noticed that it still was on the old version. Now I restarted the computer and it works.