My guess is that you are using Servoy 2.2.x here? (it seems we forgot to merge a fix back from Servoy 3.x to 2.2.x.)
Yes we were trying Servoy 2.2.x and Orcale 10g.
Because it did not work at all, we had to go for Servoy 3.0.1. With Servoy 3.0 we do not have that problem.
Please let us know if the bugfix is done in Servoy 2.2.x.
Looks like we are the only one working with Servoy 2.2.x and Oracle 10g ?
Oracle tagged multiple files as being a driver, google told us that “oracle.jdbc.driver.OracleDriver” is the driver to use
We just tested user creation in Servoy 2.2.7 again with Oracle 10.2 and the Oracle 10.2 jdbc driver and all works fine. (Oracle 10.2 is also known as 10g)
So its a hard for us to understand what is going wrong…are you sure you use the correct driver?
Yes, I know. The last time I had to deal with Oracle I remember this to be a nightmare. And we eventually were successful with the driver I am using now. I have been using this driver ever since. But now I installed a new Oracle and have that problem…
I will try the classes12.jar, but I think I remember there was some other problem to it.
classes12.jar (1,594,191 bytes) - for use with JDK 1.2 and JDK 1.3
classes12_g.jar (2,038,127 bytes) - same as classes12.jar, except that classes were compiled with “javac -g” and contain some tracing information.
classes12dms.jar (1,601,843 bytes) - same as classes12.jar, except that it contains additional codeto support Oracle Dynamic Monitoring Service. classes12dms_g.jar (2,046,467 bytes) - same as classes12dms.jar except that classes were compiled with "javac -g" and contain some tracing information. ojdbc14.jar (1,540,457 bytes) - classes for use with JDK 1.4 and 1.5 ojdbc14_g.jar (1,932,834 bytes) - same as ojdbc14.jar, except that classes were compiled with "javac -g" and contain some tracing information. ojdbc14dms.jar (1,548,006 bytes) - same as ojdbc14.jar, except that it contains additional codeto support Oracle Dynamic Monitoring Service.
ojdbc14dms_g.jar (1,940,478 bytes) - same as ojdbc14dms.jar, except that classes were compiled with “javac -g” and contain some tracing information.
orai18n.jar (1,645,109 bytes) - NLS classes for use with JDK 1.2, 1.3, 1.4, and 1.5. This jar file replaces the old nls_charset jar/zip files.
And this is for 10g Release 2 (10.2.0.2) only! For 10g Release 2 (10.2.0.1.0) you have another list like that. So it comes down to the fourth digit of the version number. But hey, Oracle is not for kids!
Anyway, it sounds like classes12 is not the one to use. But I will try with their very latest ojdbc14…
OK. I have tried again. I have downloaded a preinstalled VMWare with Linux and Oracle 10.1.0.3.0 (every digit might count!). I have downloaded and tried all types of drivers from the Oracle site. The last thing I did was to extract the driver from the InstantClient-Install that came with the VMWare download.
No luck. Whatever I do I get this:
com.servoy.j2db.persistence.RepositoryException: java.sql.SQLException: ORA-01400: cannot insert NULL into ("REPOSITORY"."SERVOY_USERS"."
USER_ID")
ORA-01400: cannot insert NULL into ("REPOSITORY"."SERVOY_USERS"."USER_ID")
I have had multiple problems too with the various Oracle drivers. They really do a crap job in my opinion. I went through a lot of trouble shooting with Aqua Data Studio too with this. Eventually what we found is that the ‘best’ driver is one that is simply called ‘oracle.jar’. We use this on our server which is 9i currently but we will be moving to 10g tomorrow. Supposedly this is the main and best driver to use for BOTH 10g and 9i although of course I don’t yet have any experience in using it for 10g. I’m told that the ojdbc14.jar driver is the one that comes with Oracle Client but Aqua Data Studio at least does NOT use that and, when we were having problems of various kinds, he had me do a search to make sure that I did NOT have that driver on my system. I would suggest getting at least a trial copy of Aqua Data Studio because it comes bundled with the driver I’ve been using and which is supposedly the ‘best’, most current one to use, rather than getting lost in the forest at Oracle !!
P.S. I’d highly recommend Aqua Data Studio in any case by the way. Besides their first class support like Servoy’s, they are always up to date with ALL JDBC compliant SQL databases and which drivers to use, etc. Really a perfect tool and especially if you are going back and forth between different database vendors.
java.sql.SQLException: ORA-01400: cannot insert NULL into (“SALESMANAGER_REPOSITORY”.“SERVOY_USERS”.“USER_ID”)
When you look at the error, it says that USER_ID is provided a NULL value. Servoy should fetch the next sequence and use it in this query. So to me the problem seems to be the retrieval of the next sequence rather than this statement. I’d be glad if someone from Servoy could point out what is exactly done when generating this query, so we can figure out where the problem is.
I probably read your post too quickly thinking it was a driver issue (I’m rather knee-jerk with that on Oracle) and I think you are right in that the two are related. Hard to blame it on the Oracle Driver in inserting a ‘null’ in a not null column I guess! But just to let you know regarding ADS and Oracle issues that ADS is coming out this weekend with ADS 6 (skipped 5 altogether!) as a Release Candidate. I’ve been using it as a tester for the last month or so and proof-reading the documentation and I’d highly recommend it. Came up with some very cool features. I’d also recommend joining their mailing list because their advice really is first class with database/driver issues. Actually I think I’ll post this in the database section as well.
To me everything seems to work great, but Servoy doesn’t seem to be able to get the right sequence. Since I don’t see the queries they do for that, I cannot see what goes wrong…