Import Solution failure

Hi,

I also posted this at:
http://forum.servoy.com/viewtopic.php?p=30403#30403
I then thought that wasn’t really the right place so I’ve reposted it here. I don’t think necessarily it is a Servoy bug - maybe just a Java problem - but it is an issue for me!

I’ve run into a problem that I’ve never seen before. When trying to export and then import a solution I’m getting this message when I try to import it back in with a different name:

com.servoy.j2db.persistence.RepositoryException: java.util.zip.ZipException: The system cannot find the file specified

This sounds as though there should be some java file installed on the machine that isn’t there. I’ve tried it with two different solutions so I think it must not be a problem with the solutions per se. Anybody have any clues as to how to go about fixing this? I’m held up right now as I need to simplify one of my solutions but to do that I first have to reimport it. Worse is that this is happening on my Windows 2000 box which I am pretty hopeless with but is the only machine allowed to access the hospital databases with. Something about wanting to have a Windows machine on the network so they don’t have to worry about viruses… don’t ask. I do have Java 1.5 on here; this is the build and computer info:
Version R2 2.2.4-build 336
Java version 1.5.0_06-b05 (Windows 2000)

Any help greatly appreciated,

John


John Allen
Stanford University

I tried using the Sun Download manager and updating my Java installation in the hope that this would restore the missing utility if in fact that is where the problem lies. The update ran without a problem (although I think I already had the latest 1.5 or 5.0 update). However I STILL cannot import a solution and I’m getting the same message. I don’t think it is a Servoy bug per se but it seems that somehow on this computer that file is now missing. I have certainly done many imports of solutions on this machine in the past with the most recent being maybe a couple of months ago. Since that time I think I have upgraded to 2.4 but otherwise I don’t know anything that would have caused this. Unfortunately I can’t import these solutions to another computer because this is the only one that is allowed access to the various datasources that this solution needs.

On reading this error message again it occurs to me that the Java utility itself isn’t missing but that rather the utility is saying it can’t find some (unspecified) file. Any help greatly appreciated.

John

I also upgraded Servoy to 3.0.2beta from 2.4 to see if that would help but no luck there either. I can’t import any of the solutions (which are - and were - all working solutions in 2.4 and 3.0). Trying to import them back in now with a different name results in an immediate failure with the aforementioned message.

John

that looks like that the export goes wrong and the file that is generated is invalid.
Can you make a case and attach the solution file?

http://crm.servoy.com/servoy-webclient/ … oy_support

I have posted the case (302) and attached the solution.

John

Was this ever fixed?

Using Servoy version 4.1.3, I exported a solution from one computer and imported it to another computer and got the following error message:

‘Importing … [error] java.util.zip.ZipException: error in opening zip file’

Or, was the casue determined to be something else?

kwpsd:
Was this ever fixed?

Using Servoy version 4.1.3, I exported a solution from one computer and imported it to another computer and got the following error message:

‘Importing … [error] java.util.zip.ZipException: error in opening zip file’

Or, was the casue determined to be something else?

Not sure about status of the issue, however message “java.util.zip.ZipException: error in opening zip file” usually means that the file specified is not a zip file. So, are you sure the file is an actual servoy export? (you can rename extension to zip and try to open with other tool)

Version 4.1.3

Yes, it is a Servoy export file of form ‘solution_name.servoy’. If I rename the file to ‘solution_name.zip’, I am able to view the contents, however, I do not know how to recover the solution from the zip format. Would you mind posting some details on this?

On a related matter…

Since my last posting in this thread, I started another completely different solution module (about 10 days worth of work) but could not commit it to our remote server due to the current Team Provider problem (the fix which is pending release 4.1.4, see below). Suspecting that the Team Provider issue has something to do with a file in the ‘servoy_workspace’, I exported all solutions including the newest one, and deleted the workspace folder. I then imported the solutions on the remote server, and all were successful except for the newest solution. Using the remote Developer, I was able to ‘check out’ the successful solutions from the remote server. Not being able to import the newest solution is a problem, because I have no other back up other than the exported file. How do I recover the newest solution?

The error returned when I try to import the solution to our remote server is:

Importing … [error] java.util.zip.ZipException: error in opening zip file

The Team Provider problem is posted at:

viewtopic.php?f=8&t=12513&p=63407&hilit=team+provider+problem#p63407

kwpsd:
Version 4.1.3

Yes, it is a Servoy export file of form ‘solution_name.servoy’. If I rename the file to ‘solution_name.zip’, I am able to view the contents, however, I do not know how to recover the solution from the zip format. Would you mind posting some details on this?

You cannot recover it, only the importer knows how to read the file.

kwpsd:
Since my last posting in this thread, I started another completely different solution module (about 10 days worth of work) but could not commit it to our remote server due to the current Team Provider problem (the fix which is pending release 4.1.4, see below). Suspecting that the Team Provider issue has something to do with a file in the ‘servoy_workspace’, I exported all solutions including the newest one, and deleted the workspace folder. I then imported the solutions on the remote server, and all were successful except for the newest solution. Using the remote Developer, I was able to ‘check out’ the successful solutions from the remote server. Not being able to import the newest solution is a problem, because I have no other back up other than the exported file. How do I recover the newest solution?

The error returned when I try to import the solution to our remote server is:

Importing … [error] java.util.zip.ZipException: error in opening zip file

The Team Provider problem is posted at:

viewtopic.php?f=8&t=12513&p=63407&hilit=team+provider+problem#p63407

Deleting the workspace doesn’t seem like a good practice, you can use multiple workspaces. Please open a case in our support system and we’ll see why import doesn’t work.

Was there any solution to this issue?

Importing [error] java.util.zip.ZipException: error in opening zip file

I’m getting this error on the Solutions section of the Servoy Server (5.2.14). When I hit the Import button to import a new solution (one I’ve already deleted from the server), I see the error above.

Providence1:
Was there any solution to this issue?

Importing [error] java.util.zip.ZipException: error in opening zip file

I’m getting this error on the Solutions section of the Servoy Server (5.2.14). When I hit the Import button to import a new solution (one I’ve already deleted from the server), I see the error above.

What errors you have in log ? Can you reproduce this every time (if so please open a case with sample)?

For some reason, it works now. I restarted the Servoy server three times.

Can’t explain it.

Hardware issues/permission issues?