Recover from problem with earlier export

Questions and answers for all installation-related topics for Servoy products

Recover from problem with earlier export

Postby djlapin » Wed Nov 09, 2011 3:09 am

Hi,

I made a mistake by deleting some code in a long method, probably by hitting a return when a bunch of between brackets was highlighted.

I had made an export a half hour ago, but now it won't import again. It complains about the existence of modules and styles in the workplace, telling me to delete them first. But as soon as I fix one thing, it complains about another thing being present. When I try "clean import" it tells me that the import is protected, and a clean import is not allowed. There is no password on the solution; I've included all modules and all rows of sample data.

I deleted the existing copy of the solution to see if that would help, to no avail.

I saw some other messages about this issue, but wasn't able to find the solution.

Is there some reason this is so difficult? I really need to be able to re-import easily. Any insights greatly appreciated.

Thanks so much,
Don

v. 5.2.10
Mac OS 10.6.8
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA

Re: Recover from problem with earlier export

Postby djlapin » Wed Nov 09, 2011 3:32 am

Just a follow-up...

In desperation I tried a Time Machine recovery of the entire workspace folder. It's a little bit older than the one I saved as a .servoy export, but it will do.

But now when I go into the solution, it will no longer launch the smart client. Instead, I just get a gray screen. In the Window menu, it shows the name of the security module dialog, but it doesn't display...

Help!!

Don
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA

Re: Recover from problem with earlier export

Postby Jan Aleman » Wed Nov 09, 2011 9:11 am

djlapin wrote:I made a mistake by deleting some code in a long method, probably by hitting a return when a bunch of between brackets was highlighted.

My first reaction would be to hit CMD-Z.
If you restarted Servoy after deleting I'd go into local history that Eclipse keeps. (Window, show view, history) and simply replace it with the correct version.

Re-importing a previous release is also an option but yes you can run into dependencies: you really need to know what you are doing to avoid overwriting things you don't want to.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Re: Recover from problem with earlier export

Postby djlapin » Wed Nov 09, 2011 11:48 am

Hi Jan,

I tried hitting Cntrl-Z several times (I have a PC keyboard), but it didn't go back far enough to recover the text. Under show view -> Servoy, there is Profiler View and Solution Explorer; I don't see history (?)

Ultimately, I went with the Time Machine option to restore the workspace folder, even though it was older than the Servoy export. I re-coded to the point of the loss.

Although the web client seems to work as before, as I mentioned the Smart Client no longer works. It comes up, momentarily disappears into the task bar (like it is being minimized manually), then pops up again as a gray window (no form shown).

A possible complication is that I updated to the latest Java runtime from Apple (1.6.0_29), at about the same time as the loss to the method occurred. Did this latest update from Apple break the Smart Client? Or is the problem related to restoring the workspace folder?

I tried looking at the log file in the application_server folder, but can't tell what I am looking at or for. When I cleared the contents of this file (with the intention of viewing only the most recent info), and then re-started Servoy, the application would crash on startup.

Can you advise on what to do to get Smart Client running?

Thank you,
Don
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA

Re: Recover from problem with earlier export

Postby djlapin » Wed Nov 09, 2011 12:05 pm

Another follow-up...

I noticed that there are messages in 2009 on this forum, related to the Mac Java runtime (at that time) and a gray screen when starting Smart Client. Is this the same issue?

Don
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA

Re: Recover from problem with earlier export

Postby mboegem » Wed Nov 09, 2011 12:12 pm

Hi Don,

Jan mentioned the local history of Eclipse.
You can find this by right-click in your code, choose compare, choose local history (see attachment for the menu structure)

djlapin wrote:I noticed that there are messages in 2009 on this forum, related to the Mac Java runtime (at that time) and a gray screen when starting Smart Client. Is this the same issue?

Normally you should be able to solve the 'grey screen' issue by closing all open editor tabs in Eclipse, restart, fire-up the smart-client.

Hope this helps

[EDIT] did you consider starting to use a SVN server? Even if you run it locally on your machine, it can save you a huge amount of time when you want to retrieve code from (even) years back (of course you must commit your code from time to time :) ). There's no other backup tool capable of doing this so easily...
Attachments
local_history.png
local_history.png (103.72 KiB) Viewed 9098 times
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1759
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Recover from problem with earlier export

Postby djlapin » Wed Nov 09, 2011 12:34 pm

Hi Marc,

I tried closing the open windows in Eclipse and re-starting. I''m still getting the gray screen. Before the gray screen displays, it continues to minimize the window briefly in the taskbar.

Please let me know if you have any thoughts.

Thanks,
Don
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA

Re: Recover from problem with earlier export

Postby Jan Aleman » Wed Nov 09, 2011 12:36 pm

djlapin wrote:I tried looking at the log file in the application_server folder, but can't tell what I am looking at or for. When I cleared the contents of this file (with the intention of viewing only the most recent info), and then re-started Servoy, the application would crash on startup.



I find this very odd. Eclipse does not crash if a log file is missing or gone. Odd things are happening on your system: I'd start looking there first. Clean install perhaps?
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Re: Recover from problem with earlier export

Postby djlapin » Fri Nov 11, 2011 11:14 pm

Hi Jan,

Have you applied that Apple Java update?

Thank you,
Don
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA

Re: Recover from problem with earlier export

Postby john.allen » Sat Nov 12, 2011 4:42 am

Hi

I have that Mac Java update, I'm now running 6.0.3 and my smart client in Developer is working fine. I think Jan's suggestion of doing a new clean install of Servoy might be a good place to start.
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Recover from problem with earlier export

Postby djlapin » Mon Nov 14, 2011 6:10 am

Hi John,

I'm fairly new to Servoy. Is there a recovery mechanism or a way to preserve the old installation, in case something else goes wrong?

Thank you,
Don
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA

Re: Recover from problem with earlier export

Postby john.allen » Mon Nov 14, 2011 9:50 am

Why not just make a new installation of Servoy. Just leave the current one as is but do an export of the solution. Then in the new installation import the solution from the current installation.
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Recover from problem with earlier export

Postby djlapin » Sat Nov 19, 2011 1:28 am

Hi John,

I installed a new copy of 6.0.3 yesterday, and moved the postgres_db and database folders, plus the servoy_properties file, from the old to the new. Then I imported the solution (exported from 5.2.11 - 1022).

The problem still occurs in the new version. When I launch the smart client, the window opens, then quickly drops into the taskbar, then reopens as a gray screen.

Don't know what's going on :| .

Thanks for your help though,
Don
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA

Re: Recover from problem with earlier export

Postby john.allen » Sat Nov 19, 2011 3:04 am

I'm a little confused. So your last working export was in Servoy 5.2? Since in the first place you are just trying to figure out what's going on why not install 5.2? Then by all means make the same named database connections in that new install but then just import the solution. You don't need to bring over the databases/tables, etc. and certainly not the properties file, no? Just launch the new import and see if the smart client works. Then if that works worry about getting your data into the new set up. Or reverse it and export that new solution and import it into your old set up and maybe copy your new properties file into the old set up as well. I just wouldn't add so many new variables to the equation. Keep it simple.
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Recover from problem with earlier export

Postby djlapin » Sun Nov 20, 2011 9:31 am

Hi John,

I'm a newbie and don't really know which are the sock and which are the sweater drawers yet. I was taking numbered directions from a tech support engineer at Servoy (US) who emailed me. He warned me that "Your Postgres database is a part of the Servoy installation, so installing over the top will lose your current data."

You are right, I probably should have installed 5.2 again instead of 6. I give my customers similar instructions when trying to solve their problems. But I wanted to see if some of the things had been fixed that I had previously encountered with the newer version.

I'm hoping to hear from the support engineer again but of course you know what week this is.

Thank you,
Don
djlapin
 
Posts: 309
Joined: Fri Feb 18, 2011 9:36 am
Location: San Francisco, CA


Return to Installation

Who is online

Users browsing this forum: No registered users and 10 guests