java error "has no public instance field or method named "

Questions, tips and tricks and techniques for scripting in Servoy

java error "has no public instance field or method named "

Postby jdbruijn » Wed Aug 15, 2012 4:14 pm

I'm currently installing servoy on a new Windows 2008 R2 server.
When I run my solution I get the following error after login in:
org.mozilla.javascript.EvaluatorException: Java class "java.util.ArrayList" has no public instance field or method named "0". (svy_sec_getForcedWindowSize#442)
The error is in a Navigation Framework function, but I don't think it is related to this framework.

I've installed the latest Java version (build 1.7.0_05-b06), could this error be related to the java version? Or is there something else wrong?
Jos de Bruijn
Focus Feedback BV
Servoy Certified Developer
Image
jdbruijn
 
Posts: 492
Joined: Sun Apr 11, 2010 6:34 pm

Re: java error "has no public instance field or method name

Postby jdbruijn » Thu Aug 16, 2012 3:52 pm

I've ruled out the java version. Removed java 7 and installed java 6 and the problem still remains.
Jos de Bruijn
Focus Feedback BV
Servoy Certified Developer
Image
jdbruijn
 
Posts: 492
Joined: Sun Apr 11, 2010 6:34 pm

Re: java error "has no public instance field or method name

Postby Joas » Thu Aug 16, 2012 4:30 pm

It looks like you are missing data in your nav_properties table.
Did something go wrong when importing the data?

You should be able to go to the configurator and click the "recreate" button on the properties tab on the top.
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: java error "has no public instance field or method name

Postby jdbruijn » Thu Aug 16, 2012 4:36 pm

the svy_framework db is a copy from the current database, so it should contain all the data.
Also I cannot access the configurator.
Jos de Bruijn
Focus Feedback BV
Servoy Certified Developer
Image
jdbruijn
 
Posts: 492
Joined: Sun Apr 11, 2010 6:34 pm

Re: java error "has no public instance field or method name

Postby Joas » Thu Aug 16, 2012 4:46 pm

Can you check how many data is in the nav_properties table?
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: java error "has no public instance field or method name

Postby jdbruijn » Thu Aug 16, 2012 4:55 pm

it contains 25 rows, same as the current production server
Jos de Bruijn
Focus Feedback BV
Servoy Certified Developer
Image
jdbruijn
 
Posts: 492
Joined: Sun Apr 11, 2010 6:34 pm

Re: java error "has no public instance field or method name

Postby ProRM » Fri Oct 26, 2012 5:39 pm

Hi,

Did you solve this problem? We have a customer with the same issue after moving from Servoy 6.0.4 to 6.0.7

Regards
User avatar
ProRM
 
Posts: 107
Joined: Thu Sep 18, 2008 10:24 pm
Location: Uruguay

Re: java error "has no public instance field or method name

Postby ProRM » Fri Oct 26, 2012 6:28 pm

Well, it seems to work with 6.0.8 so the problem may be related to 6.0.7

Regards,
User avatar
ProRM
 
Posts: 107
Joined: Thu Sep 18, 2008 10:24 pm
Location: Uruguay

Re: java error "has no public instance field or method name

Postby jdbruijn » Mon Oct 29, 2012 9:33 am

This problem is indeed supposed to be fixed in 6.0.8. I worked around it by fixing my table.
Jos de Bruijn
Focus Feedback BV
Servoy Certified Developer
Image
jdbruijn
 
Posts: 492
Joined: Sun Apr 11, 2010 6:34 pm

Re: java error "has no public instance field or method name

Postby patrick » Mon Oct 29, 2012 11:01 am

Sometimes it seems a column setting gets "lost". The column "property_value" needs the "StringSerializer" setting in the Conversion tab. If that is not present, that might be the problem...
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany


Return to Methods

Who is online

Users browsing this forum: No registered users and 6 guests