Servoy puts java.lang.Object@c4dff4 in text field

First time I entered data into a new form, I tabbed out of the first field (text field) and Servoy went “beep” and replaced what I typed with:

“java.lang.Object@c4dff4” (without the quotes).

Did it twice, then it stopped.

You get that error if no records are present. Try creating one first.

We have been getting this error a LOT lately. Even when editing existing records. I have had people start to relaunch Servoy when it happens but it will start again soon after. I have deleted the servoy client from their machine and had them re-download it and they STILL get this issue from time to time.

This started after the last Servoy update.

Are you sure that the Servoy app server is in sync with your database.

This problem may occur when you change/delete a column directly on the database (with a database tool) and don’t restart the servoy server.

Servoy server will still think that a certain column is there somewhere
without knowing it’s been changed/deleted.

I will restart the application server and see if it fixes the issue. I can not say for sure if I have made changes to the DB structure since last restart (but it is possible). I will restart the server and post any new complaints on this issue here.

Thanks for the tip, I hope it is that simple.

I restarted application server and we are still having the issue.

Description of issue from one of my users

i was entering a new record and then got side tracked talking to
Tim, but when i went back to working, i found this :
java.lang.Object@13d0fea
in the notes section i had been typing in and the notes were gone. i
downloaded the new client earlier, so i’m not sure what’s goin on, but i’ll
exit and come back and see what’s up.

They had the same problem again later. This is happening several times a day. Is there something else I should check?

do you have an (example) solution that i can see?

Can I email you connection information or do you need me to send you the source?
I have never seen this issue running developer but it happens fairly often - about a dozen times a day- running client. It could be that I am not using it as intently as our research folks. I have tried but I can not consistently duplicate it nor find a pattern to the error. It is as if a connection is lost or the client chokes. There is never a connection error dialog with this error.

Can you check if reducing ApplicationServer.pingDelay has any effect.
This can be found in the admin page>networksettings of the Servoy application server.

Setting it to a value of 30 should prevent any client disconnections.

I made the change. I’ll let you know if I get any more reports.

I have a listing , when I display the detail in a FID, The record is blank, yet the listing displays the populated record. The only method that opens the FID is the standard FID code.

If I show all records (same listing), then display the FID, it works fine.

I will try to explain this because I can consistantly recreate the error.

I have an Inventory Profile that is opened as a FID, in this form I have a tabpanel that displays a related form (Purchase Evaluation Record).

On the Purchase Evaluation Record, I have a onshow method that runs.

If there is no Related Purchase Evaluation Record when viewing the Inventory Profile FID, I get an error for the onshow method because there is no related record , (which is expected as I am playing with incomplete data at this point).

I have another FID form that I can search for the Purchase Eval Records from a FID , display as a listing and select a record to display as a FID.

If I get my error when I am viewing the Inventory Profile (with no related record), then close that form, search my evals…when I select a eval record to display, I get the previous error (from the onshow event), and the FID is blank.

If I open and close developer or show all eval records, then the records show the data.

Its as if the Error is stuck, something is definitaly strange with the FID and empty records.

I hope that makes some sense,

Erich

Servoy Developer
Version R2 2.2.3-build 335
Java version 1.4.2_04-b05 (Windows XP)

Actually, show all records does not work, the only way to reset , is to open and close developer

I am still getting reports of this error. Another users said they created a new record, verified it had a new pKey ID, entered in the data, went to their web browser to do some research, came back and the record was blank (they could not confirm if the pKey ID was still there or not), they tried to retype in the information and got the javaLang error in any field they tried to type in.

I have requested screen shots so hopefully I can show you an example.

JC: do you need a copy of the solution or would a link with login info be OK?

OK, I finally have a really good screenshot.

If you look at the description field this is the error we get.
From our research manager:

This happened after I had created a fresh record (and a company ID displayed). At the time everything was going smoothly, so I didnt jot down the company ID. After creating the new record and entering the stats, address, etc., I went to another tab and came back to the Stats tab. Stats ended up empty, and when I tried to click into a field in Stats to re-enter the info, java lang appeared, and the writing at the bottom left says No record, create one first. Point being, I had created one and it disappeared on me. The change log does not seem to reflect this though. The first entry shows I was editing a record (when it showed I was creating a new record and gave me a fresh company ID).

As I was writing this post, she tried to create a new record and this time noted the pKeyID (32674) that was returned. She then entered a bunch of data (which was reflected in the servoy log). She did not change tabs this time and the data in the stats ares litterally disappeared! When she went to re-enter data she got the JavaLAng error in the fields she was trying to edit. I went over to her desk while this was happening and she edited another field and this time the data DID stay, but then editing another field the JavaLang error happened again after exiting the field.

I hope someone can look into this soon. I would appreciate any help in resolving this issue.

i can’t do much when i see it somewhere i need to see it locally in my developer.

So a solution where i can reproduce it somehow would be the best option.

jaleman,

Updating the jar files (j2dbdev, j2db, and js) appears to have corrected the issue. I polled users this morning and noone had the issue even once since replacing those files. We should have received the error at least 5 times since yesterday.

Thanks for not ignoring this very strange issue. My users sent several thank you emails.

Ran into issue trying to update database after replacing jar files. Tried to replace them on my local developer as well but it will not launch after replacing them. I put the original ones back and was then able to launch.

I exported my solution and tried to import to server but it kept hanging up. I have some important updates ready to roll out. Is there something else Ineed to do or do you have any idea why I would be experiencing these issues after updating those files?

ApeWare:
Ran into issue trying to update database after replacing jar files. Tried to replace them on my local developer as well but it will not launch after replacing them. I put the original ones back and was then able to launch.

I exported my solution and tried to import to server but it kept hanging up. I have some important updates ready to roll out. Is there something else Ineed to do or do you have any idea why I would be experiencing these issues after updating those files?

For both problems: start developer and server with stacktrace enabled and send us the trace.

I tried the stack trace and then could not duplicate the issue. We had also just rebooted our machine so it may be possible that there was an issue elsewhere.

At any rate, it is currently working and I have kept stacktrace on for the time being.

The JavaLang issue appears to be resolved