has anyone come across a problem whereby when null values are persisted instead of the real values, in JSP and servlets?
example :
//java
public class MyData {
private String s;
public MyData(String s) { setS(s); }
public void setS(String s) { this.s = s; }
public String getS() { return this.s; }
}
in the servlet :
server = openServer() method is called in a context listener set up in Tomcat 6. db4o 6.1 is used. The server is running in embedded server mode.
ObjectContainer db = server.openClient();
db.set(new MyData("test data"));
db.commit();
...
the above are the statements that were run.
for the first time the database is created, the data is persisted correctly. However, subsequent executions of the same function result in MyData object being saved in the database but the field 's' is null.
does anyone have any ideas?