could not import solution

Hello,

I wanted to turn on security for my solution last night, so I exported it to re-import again (isn’t there an easier way to turn on security?). When trying to import, I get this error immediately:

com.servoy.j2db.persistence.RepositoryException: java.util.EmptyStackException

Version R2 2.2b2-build 317
Java version 1.5.0_01-b08 (Windows XP)

I have got the same error when importing a solution to the Win XP (Version R2 2.2b2-build 317) using the solution exported from Win2K (Version R2 2.2b2-build 317)

I was doing everything on one machine, same OS, same Java, same DB, same solution (no changes except password protection).

This is likely a bug, could you mail us the .log.txt when this happens? (so we could put a fix in the Servoy 2.2 beta3 for tomorrow)

Bad news is that the log does not say anything but

com.servoy.j2db.persistence.RepositoryException: java.util.EmptyStackException

With a stack trace this is all I get:

repository_server: Got connection, thread=TaskExecuter[3]repository_server: Closed connection, thread=TaskExecuter[3]Parsing export/version_info.xml.Import contains XML version 8 and repository version 25.ImportHandlerManager got XML version 8, repository version 25, Servoy version R2 2.2b2, build number 317repository_server: Got connection, thread=TaskExecuter[2]Parsing revision information.Parsing solution.repository_server: Closed connection, thread=TaskExecuter[2]com.servoy.j2db.persistence.RepositoryException: java.util.EmptyStackException
size of dialog1 java.awt.Point[x=446,y=411]repository_server: Got connection, thread=TaskExecuter[2]repository_server: Closed connection, thread=TaskExecuter[2]

Without a stack trace I’m completely in the dark.

Are you sure you started with -DSTACKTRACE=TRUE? There really should be a stacktrace in the log file, and I would very much like to see it…

Another option is to send me a solution which exhibits this behavior, so I can reproduce it here.

Sebastiaan,

when I start Servoy with stack trace I get all kind of typical messages. All I do is then to go to the repository, click import, choose solution and get this error. Everything that is written to the log after hitting the import button is this:

repository_server: Got connection, thread=AWT-EventQueue-0repository_server: Closed connection, thread=AWT-EventQueue-0repository_server: Got connection, thread=AWT-EventQueue-0repository_server: Closed connection, thread=AWT-EventQueue-0Parsing export/version_info.xml.Import contains XML version 8 and repository version 25.ImportHandlerManager got XML version 8, repository version 25, Servoy version R2 2.2b2, build number 317repository_server: Got connection, thread=TaskExecuter[3]repository_server: Closed connection, thread=TaskExecuter[3]repository_server: Got connection, thread=TaskExecuter[3]Parsing revision information.Parsing solution.repository_server: Closed connection, thread=TaskExecuter[3]com.servoy.j2db.persistence.RepositoryException: java.util.EmptyStackException
size of dialog0 java.awt.Point[x=446,y=411]repository_server: Got connection, thread=TaskExecuter[3]repository_server: Closed connection, thread=TaskExecuter[3]size of RepositoryDialog java.awt.Point[x=358,y=182]

So what more can I show you?

I find it very strange that no stack trace is printed anywhere when Servoy is started with stack trace. Unfortunately I have no idea where to look without a proper stack trace… Is it possible for you te send the solution that causes this behavior?

of course, there is more text in the trace. What I gave you here is everything that is printed to the stack afetr I hit the import button.

I will send you the whole log via email. If that doesn’t help, I’ll send you the solution.

Thanks
Patrick