I’ve launched Servoy beta2 build 300 and it detected that the version of the repository_server was 20 and not 21. It asked me if I wanted to upgrade and I said ok. Then, after reading the list of tables on the server it throwed a Null Pointer Exception:
com.servoy.j2db.persistence.RepositoryException: java.lang.NullPointerException
com.servoy.j2db.persistence.RepositoryException: java.lang.NullPointerException
at com.servoy.j2db.persistence.j.a(Unknown Source)
at com.servoy.j2db.persistence.Server.createRepositoryTables(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.startOrCreateRepository(Unknown Source)
at com.servoy.j2db.develop.ar.try(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.cQ(Unknown Source)
at com.servoy.j2db.J2DBClient.dataBaseInit(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.dataBaseInit(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.servoy.j2db.startup.Bootstrap.main(Bootstrap.java:119)
at Servoy.main(Servoy.java:27)
Then I decided to erase the servoy tables in oracle (by the way it would be nice if every servoy tables began with servoy_, not like log among others).
I sat servoy.didFirstTimeInit=false but I don’t know if that matters.
During the creation of the repository I had the following error:
[1] Created table 'reports' in server 'crm'.
[1] Added column with name 'report_name' to table 'reports'.
[1] Added column with name 'column_type' to table 'reports'.
[1] Added column with name 'sql_from' to table 'reports'.
[1] Added column with name 'column_id' to table 'reports'.
[1] Added column with name 'sql_part' to table 'reports'.
[1] Added column with name 'reportsid' to table 'reports'.
[1] Added column with name 'sql_query' to table 'reports'.
[1] Added column with name 'sql_groupby' to table 'reports'.
[1] Added column with name 'textkey_orderby' to table 'reports'.
[1] Added column with name 'sql_where' to table 'reports'.
[1] Added column with name 'sql_select' to table 'reports'.
[1] Added column with name 'sql_joins' to table 'reports'.
[1] Added column with name 'sql_result' to table 'reports'.
[1] Added column with name 'one' to table 'reports'.
[1] Added column with name 'textkey_where' to table 'reports'.
[1] Added column with name 'sql_orderby' to table 'reports'.
create table reports (report_name VARCHAR2(100), column_type VARCHAR2(50), sql_from VARCHAR2(1000), column_id NUMBER(10,0), s
ql_part VARCHAR2(50), reportsid NUMBER(10,0) not null, sql_query VARCHAR2(10000), sql_groupby VARCHAR2(1000), textkey_orderby
VARCHAR2(10), sql_where VARCHAR2(1000), sql_select VARCHAR2(1000), sql_joins VARCHAR2(1000), sql_result VARCHAR2(30000), one
NUMBER(10,0), textkey_where VARCHAR2(10), sql_orderby VARCHAR2(1000), primary key (reportsid))
Database name Oracle
Table Name AUDIT_ACTIONS
Table Name VALUELIST
com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: java.sql.SQLException: ORA-
00910: specified length too long for its datatype
com.servoy.j2db.persistence.RepositoryException: com.servoy.j2db.persistence.RepositoryException: java.sql.SQLException: ORA-
00910: specified length too long for its datatype
at com.servoy.j2db.persistence.f.a(Unknown Source)
at com.servoy.j2db.persistence.XMLImporter.importSolutionFromFileAs(Unknown Source)
at com.servoy.j2db.persistence.XMLImporter.importSolutionFromFile(Unknown Source)
at com.servoy.j2db.develop.av.a(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.dataBaseInit(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.servoy.j2db.startup.Bootstrap.main(Bootstrap.java:119)
at Servoy.main(Servoy.java:27)
The dialog in Servoy showed:
com.servoy.j2db.persistence.RepositoryException: java.sql.SQLException: ORA-00910: specified length too long for its datatype
I pushed the OK button and got a second dialog in Servoy:
Fatal init, could not start data service:
object already exported
java.rmi.server.ExportException: object already exported
java.rmi.server.ExportException: object already exported
at sun.rmi.transport.ObjectTable.putTarget(Unknown Source)
at sun.rmi.transport.Transport.exportObject(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.exportObject(Unknown Source)
Loaded the get connection for server log_server in 1 times
Loaded the get connection for server crm in 1 times
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(Unknown Source)
at sun.rmi.transport.LiveRef.exportObject(Unknown Source)
at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
at sun.rmi.server.UnicastServerRef.exportObject(Unknown Source)
at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source)
at java.rmi.server.UnicastRemoteObject.exportObject(Unknown Source)
at com.servoy.j2db.server.ApplicationServer.exportObject(Unknown Source)
at com.servoy.j2db.server.ApplicationServer.registerService(Unknown Source)
at com.servoy.j2db.server.ApplicationServer.startDataServer(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.dataBaseInit(Unknown Source)
at com.servoy.j2db.develop.J2DBDeveloper.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.servoy.j2db.startup.Bootstrap.main(Bootstrap.java:119)
at Servoy.main(Servoy.java:27)
The consequence of these errores was that Servoy aparently has not created the crm solution.
After restart, I created a new solution (with a new connection to oralce).
In the new solution I created an inital form and put some fields on it. Then I tried to open the Security dialog in the Tool menu and I saw an error dialog telling me “Cannot show security dialog”. The detail textarea was empty but on the log I saw:
size of SelectFieldDialog java.awt.Point[x=476,y=244]
java.lang.NullPointerException
java.lang.NullPointerException
at com.servoy.j2db.develop.h.f.<init>(Unknown Source)
at com.servoy.j2db.develop.h.e.<init>(Unknown Source)
at com.servoy.j2db.develop.c.a1.doIt(Unknown Source)
at com.servoy.j2db.cmd.b$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Solution 'test' commit by thread TaskExecuter[0]
Solution 'test' committed by thread TaskExecuter[0]
End of the story. The problem is not solved.