Problems with duplicate solution

Hi,

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?

Thanks for any help

What error do you have in the log ?

Hi Laurian,

This is what the log says:

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

Hi Irene,

This seems like a bug. Can you post a case in our support system together with a sample?

I have noticed the exactly same problem in 4.0.1 and 4.1b.

Version: 4.1.0 b4 - build 643
Java version 1.5.0_16
Mac OS X Version 10.5.5

Hi Laurian,

I’ve just opened a case.

thanks for the help.

For those who are interested, here is the answer of Servoy’s industrious Tech support:

This is fixed and will be available in next public release. This was hapenning for solution with no team provider that were exported.

Thanks folks

Hi,

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. :x

Can anyone help?

Hi Irene,

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.

Regards, Laurian

Thanks Laurian,
here is the exported solution, I hope that you can tell me what am I doing wrong.

081104Coperta.servoy (1.37 MB)

Irene,

I can import this solution running 4.1.0 b5 developer from servoy admin page. Are you sure you are on servoy 4.1.0 b5 ( on application server ) ?

Regards, Laurian

Laurian,

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.

Thanks