#74 No matching overloads for oracle TIMESTAMP

Version 0.5
open
5
2011-01-27
2011-01-27
Anonymous
No

I get "No matching overloads" when calling toString() or toTimestamp() on a oracla.sql.TIMESTAMP object. A "toBytes"-Method works normal.

(Pdb) java_val
<jpype._jclass.oracle.sql.TIMESTAMP object at 0x0337C4F0>
(Pdb) dir(java_val)
['TimeZoneConvert', '__class__', '__delattr__', '__dict__', '__doc__', '__eq__',
'__format__', '__getattribute__', '__hash__', '__init__', '__javaclass__', '__j
avaobject__', '__metaclass__', '__module__', '__ne__', '__new__', '__reduce__',
'__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclass
hook__', '__weakref__', 'asciiStreamValue', 'bigDecimalValue', 'binaryStreamValu
e', 'booleanValue', 'byteValue', 'bytes', 'characterStreamValue', 'data', 'dateV
alue', 'doubleValue', 'equals', 'floatValue', 'getBytes', 'getClass', 'getLength
', 'getStream', 'hashCode', 'intValue', 'isConvertibleTo', 'length', 'longValue'
, 'makeJdbcArray', 'notify', 'notifyAll', 'setBytes', 'setShareBytes', 'shareByt
es', 'stream', 'stringValue', 'timeValue', 'timestampValue', 'toBytes', 'toDATE'
, 'toDate', 'toJdbc', 'toString', 'toTime', 'toTimestamp', 'wait']
(Pdb) java_val.toString()
*** RuntimeError: No matching overloads found. at src/native/common/jp_method.cp
p:121
(Pdb) java_val.toBytes()
<jpype._jarray.byte[] object at 0x030E2710>

I'm using JPype-0.5.4.win32-py2.6. What can I do to work around this problem?

Regards

Bastian

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks