File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Fail to convert to internal representation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Fail to convert to internal representation" Watch "Fail to convert to internal representation" New topic
Author

Fail to convert to internal representation

L.John
Greenhorn

Joined: Aug 29, 2001
Posts: 24
Hi To All,
While working on couple of stack trace I came across the follwing Message :
weblogic.rmi.RemoteException: DB failed - with nested exception:
[java.sql.SQLException: Fail to convert to internal representation] at
netnames.server.CommonRegistrationsContextImpl.getEmailForwardingItem(Common
RegistrationsContextImpl.java:1926)
Fail to convert to internal representation
It would be kind to let me know , under what circumstances these exceptions can occur , what does this mean ? and what can be done to resolve this .
Thanks,
John
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
According to Oracle this is one of the error messages that the Oracle Oracle8i SQLJ JDBC drivers can return. This is error ORA-17059.
Unfortunately
"Cause" and "Action" information for each message will be provided in a later release.

Sigh. Look for incompatable types, like doing a getInt() on a String field.
[ November 26, 2002: Message edited by: Cindy Glass ]

"JavaRanch, where the deer and the Certified play" - David O'Meara
L.John
Greenhorn

Joined: Aug 29, 2001
Posts: 24
Hi Cindy,
Thanks for replying back to my query. You are absolutely right.
The message
"[java.sql.SQLException: Fail to convert to internal representation]" was caused due to incompatibility issue.
i.e I was trying to retrieve a CHAR(1) type from Oracle by using rs.getInt(1);
To resolve this I used rs.getString(1) and then converted it into 'int' using Integer class.
Thanks Once again Cindy.
Wishing you a Merry Christmas and Happy New Year.
Regards,
L.John
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fail to convert to internal representation
 
Similar Threads
how to pass multiple BLOB objects to a PLSQL procedure?
Why does converting ####.### to double give an error?
Conversion ?
Fail to convert to internal representation
How a character save in 2 bytes in Java?