can't setup form

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

can't setup form

Postby siavash.roozbehan » Tue Sep 11, 2012 10:01 am

Hi Guys,

The problem is when I upload my solution in the servoy server and run the client. The application works for all the module we have (10 different modules) but when I try to open one of the modules, it will pop up with the error "can't setup form ...." and I don't understand why that happens for that specific form and not the others. (I have attached a picture of the error message to this post as well).

So when the error pops up and I look at the server log, I can see several errors (a portion of the error log is attached).I can't seem to find the problem and I really don't know how can I debug the problem as when I run the solution in the developer it runs fine with no errors, that mean the error is not in the code and it seems like a database connection problem.

so the procedure that I follow to upload my solution is as follow:
1- put the server into maintenance mode in Servoy Server Administration
2- import the solution
3- update servoy sequences for all tables and all active servers under "Database Servers" section.
4- exit from maintenance mode
5- restart the servoy service in windows
6- run the application

Anyone help or suggestion would be appreciated.

Cheers,
Siavash
Attachments
error.JPG
error.JPG (60.37 KiB) Viewed 6354 times
error logs.JPG
error logs.JPG (223.43 KiB) Viewed 6374 times
Last edited by siavash.roozbehan on Wed Sep 12, 2012 1:53 am, edited 1 time in total.
Siavash

TSM (The Service Manager)
Australia
siavash.roozbehan
 
Posts: 97
Joined: Wed Apr 11, 2012 2:21 am

Re: can't setup form

Postby omar » Tue Sep 11, 2012 10:18 am

Hi,

It looks like the PK constraint on your client_stats table is being violated. Updating the PK sequence for this table seems unsuccesful. Perhaps you could backup the client_stats table and empty it. It should be possible though to get the key sequence in synch.

Regards,
Intrasoft, Founder
Omar van Galen
omar@intrasoft.nl
+31-(0)6-21234586
Servoy Developer
omar
 
Posts: 377
Joined: Sat Feb 12, 2011 4:51 pm
Location: Intrasoft, The Netherlands

Re: can't setup form

Postby siavash.roozbehan » Wed Sep 12, 2012 5:47 am

Thanks for your response Omar. I just checked our databases in the test server environment (application database and repository Database) and I realized that the table "client_stats" is missing from the repository database and instead it's been created in the other database while it should be in the repository database instead. I have no idea why this happens as when I compare it with our development databases, the "clien_stats" table is presented in the repository DB not the development DB.

I deleted all the tables we had in the application database and emptied the repository database to update them both, but after update I still see the the "client_stats" being created in the development database and not in the repository database.

I suspect there is some information (table structures, metadata etc.) that changes some stuff in the databases when I export the solution from my workspace environment and upload it to the server.

Any ideas? Anyway that I can realize the cause of this problem as I can't seem to replicate it in my development environment and debug it some how!
Siavash

TSM (The Service Manager)
Australia
siavash.roozbehan
 
Posts: 97
Joined: Wed Apr 11, 2012 2:21 am

Re: can't setup form

Postby omar » Wed Sep 12, 2012 10:17 am

I saw in the release notes of Servoy 6.1 that there has been a change regarding the client_stats table.

As of Servoy 6.1 access to tables in the Servoy Repository is restricted by default for security reasons. The "servoy_client_stats" table that resided in the Servoy Repository is now deprecated. Instead of the "servoy_client_stats" table the session tracking is now done in the "client_stats_ table in the database server marked as Log Server. If there is no Log server defined or it does not contain a table named "client_stats", either the old "servoy_client_stats" in the Servoy Repository will still be used if it exists or otherwise there will be no session tracking information recorded.


Perhaps this is related to your problem?
Intrasoft, Founder
Omar van Galen
omar@intrasoft.nl
+31-(0)6-21234586
Servoy Developer
omar
 
Posts: 377
Joined: Sat Feb 12, 2011 4:51 pm
Location: Intrasoft, The Netherlands

Re: can't setup form

Postby Hans Nieuwenhuis » Wed Sep 12, 2012 1:47 pm

Hi,

Should there in general be a servoy_client_stats table avialable or ?

What is the downside if it does not exist ?

Regards,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: can't setup form

Postby siavash.roozbehan » Tue Sep 18, 2012 1:43 am

Thanks Omar, problem fixed :)
Siavash

TSM (The Service Manager)
Australia
siavash.roozbehan
 
Posts: 97
Joined: Wed Apr 11, 2012 2:21 am

Re: can't setup form

Postby maria.kyselova » Wed Oct 24, 2012 5:55 am

Hi guys!

I'm back with a similar problem.
The server settings have been fixed like suggested by Omar and the error disappeared but came back after I deleted the stylesheet we used.
There is no errors (just warnings that some elements use a style sheet that does not exist) in the solution and in Developer it runs just fine.
However, on the server this kind of messages are output in the java console.
Also, the form is being loaded forever, everything freezes like north pole.

Untitled.png
Untitled.png (35.96 KiB) Viewed 6270 times


Any ideas on how to fix this?


Cheers,
Maria
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am

Re: can't setup form

Postby JuanMartin » Wed Oct 24, 2012 12:44 pm

I think the problem is the java version. If you have java 7 and use servoy 5 you have this message.

Probe with java 6 version and it´s works
Juan Antonio Martín Pinilla
Servoy 2022.9.2 - PostgreSql 9.4
software@critenerife.com
User avatar
JuanMartin
 
Posts: 169
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: can't setup form

Postby maria.kyselova » Thu Oct 25, 2012 12:53 am

JuanMartin wrote:I think the problem is the java version. If you have java 7 and use servoy 5 you have this message.

Probe with java 6 version and it´s works


Thanks, Juan.
I'm using Servoy 6. Running either java 6 or 7 produces the same result with hanging and freezing and errors :(

Cheers,
Maria
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am

Re: can't setup form

Postby maria.kyselova » Sun Dec 02, 2012 11:47 am

Thanks, Joas.
The issue is confirmed to be a bug and a case has been created in the support system: SVY-3500

Cheers,
Maria
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am

Re: can't setup form

Postby ptalbot » Sun Dec 02, 2012 5:44 pm

Yep, seeing this one too in Smart client only (not in developer).
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 8 guests