Hello,
I have a problem with an application I have been developing that uses java torque.
When I try to save a specific table content (table name is US),like this:
US.setXXX (value) ( XXX is the columns name, value is the value to put.type is INTEGER),then I do US.save ( ),I get an exception.
More specificly,the exception is thrown when invoking currentConnection.
I will also state that I have tried to drop some columns that were not in the torque files,but it still didnt help.
Any help would be greatly appriciated.
Thanks in advanced,
Yoav
3 3943
Perhaps if you post the trace of the exception that you are getting ...
DB2 SQL Error: SQLCODE=-407, SQLSTATE=23502, SQLERRMC=TBSPACEID=6, TABLEID=9, COLNO=0, DRIVER=3.50.152
is the tarce.
I guess that torque is trying to put null to not null columns.
the thing is that:I have changed the columns in my db2 to nullable,and indeed SQL queries are successful in putting null.but torque still thinks they are unnullable,because the change was only in the database....
my question is,how to make torque know that too?are there any variables indicating that?
Thanks in advanced,
Yoav
DB2 SQL Error: SQLCODE=-407, SQLSTATE=23502, SQLERRMC=TBSPACEID=6, TABLEID=9, COLNO=0, DRIVER=3.50.152
is the tarce.
I guess that torque is trying to put null to not null columns.
the thing is that:I have changed the columns in my db2 to nullable,and indeed SQL queries are successful in putting null.but torque still thinks they are unnullable,because the change was only in the database....
my question is,how to make torque know that too?are there any variables indicating that?
Thanks in advanced,
Yoav
You might have to check the documentation to see how to regenerate the Java code after making table changes.
Perhaps this page will help somewhat in that respect.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: James Hong |
last post by:
Help please, I try to sending an email from my html page using the java
applet.
but it give error on most of the PC only very few work, what is the error i
make
the java applet show as below
...
|
by: Robert Bralic |
last post by:
Hello,
I writed small graphical editor for
probabilystic networks in JAVA, but
there was problem with making save
file inJAVA.
I thinked about it and I concluded
that Save in JAVA is great...
|
by: David Van D |
last post by:
Hi there,
A few weeks until I begin my journey towards a degree in Computer
Science at Canterbury University in New Zealand,
Anyway the course tutors are going to be teaching us JAVA wth bluej...
|
by: Jobs |
last post by:
Download the JAVA , .NET and SQL Server interview with answers
Download the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of...
|
by: ramasubramanian.rahul |
last post by:
hi
i am trying to call some java APIs from c . i use the standatd JNI
calls to load the JVM from a c program and call all java functions by
using a pointer to the jvm which was returned by the JNI...
|
by: r035198x |
last post by:
Setting up.
Getting started
To get started with java, one must download and install a version of Sun's JDK (Java Development Kit).
The newest release at the time of writting this article is...
|
by: yoach |
last post by:
i dont the prpopties file withe db2 is this ok:?
# The target database platform.
torque.database = db2
# The target package to put the generated classes in.
torque.targetPackage =...
|
by: yeshello54 |
last post by:
so here is my problem...in a contact manager i am trying to complete i have ran into an error..we have lots of code because we have some from class which we can use...anyways i keep getting an error...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |