You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by David Wynter <da...@roamware.com> on 2002/09/27 12:48:24 UTC
Problem with getting 4000 byte String from Peer
Hi,
I have a Turbine application that worked, and now, suddenly it doesn't.
I have the following line in my schema.xml file
<column name="query" size="4000" type="VARCHAR"/>
the peers etc. generate fine against a Oracle database.
I have the following line in my a class that uses with entity containing the
colun above
RwView aView=RwViewPeer.retrieveByPK(aViewKey);
String aQuery=aView.getQuery(); <----- at line 438
I get this error when i try to compile.
"TransformControl.java": Error #: 354 : incompatible types; found: byte[],
required: java.lang.String at line 438, column 45
I must have regenerated the Peers at some time using ant.
My question is: when did the templates change from returning a CString to
returning a byte array?
Thanks
David Wynter
roamware Ltd.
(+44) (0) 208 922 7539 B.
(+44) (0) 7879 605 706 M.
david@roamware.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
tdk2.2b2 & Oracle
Posted by Foris Tibor <fo...@iit.bme.hu>.
Hi,
With tdk2.2b2 I have problems inserting new users.
(other insert, update st. seem to work)
I get an error:
Caused by: org.apache.turbine.util.security.DataBackendException: Failed
to create account 'test': ORA-01465: invalid hex number
at
org.apache.turbine.services.security.db.DBUserManager.createAccount(DBUserManager.java:399)
at
org.apache.turbine.services.security.BaseSecurityService.addUser(BaseSecurityService.java:383)
at
org.apache.turbine.services.security.TurbineSecurity.addUser(TurbineSecurity.java:425)
I've tried various jdk and Oracle jdbc driver combinations (1.3, 1.4 +
classes*, ojdbc14 etc.)
Is this related to the OBJECTDATA - BLOB field?
Can someone help?
Thanks
Tibor
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Problem with getting 4000 byte String from Peer
Posted by David Wynter <da...@roamware.com>.
To end this pain. I checked that db.props for Oracle had the correct mapping
for size="4000" type="VARCHAR"( I have not touched this file for a very long
time ) and then ran "ant project-om" which regenerates the OM classes and
then "ant compile". All is back to as expected, it is mapped to a
varchar2(4000). I have no idea how it could have had a different version of
db.props that would be required to generate classes with the incorrect
mapping =8(
Too weird
David
-----Original Message-----
From: David Wynter [mailto:david@roamware.com]
Sent: 27 September 2002 12:11
To: Turbine Users List
Subject: RE: Problem with getting 4000 byte String from Peer
Moving on from the reason for the change that is outlined below I need to
fix the code that access what was previously returned as a String class and
is now returned as a byte array.
When the Peers write a String into a BLOB what encoding is used. To be able
to create the String from th ebytwe array I need to know the encoding used
during the wrting of the string into the BLOB.
In other words I figure I can do somethign like replace the statement shown
below in th eoriginal emial with somethign like
String aQuery=new String(aView.getQuery(), "ISO-8859-1");
Sound OK?
David
-----Original Message-----
From: David Wynter [mailto:david@roamware.com]
Sent: 27 September 2002 11:48
To: Turbine-User
Subject: Problem with getting 4000 byte String from Peer
Hi,
I have a Turbine application that worked, and now, suddenly it doesn't.
I have the following line in my schema.xml file
<column name="query" size="4000" type="VARCHAR"/>
the peers etc. generate fine against a Oracle database.
I have the following line in my a class that uses with entity containing the
colun above
RwView aView=RwViewPeer.retrieveByPK(aViewKey);
String aQuery=aView.getQuery(); <----- at line 438
I get this error when i try to compile.
"TransformControl.java": Error #: 354 : incompatible types; found: byte[],
required: java.lang.String at line 438, column 45
I must have regenerated the Peers at some time using ant.
My question is: when did the templates change from returning a CString to
returning a byte array?
Thanks
David Wynter
roamware Ltd.
(+44) (0) 208 922 7539 B.
(+44) (0) 7879 605 706 M.
david@roamware.com
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Problem with getting 4000 byte String from Peer
Posted by David Wynter <da...@roamware.com>.
Moving on from the reason for the change that is outlined below I need to
fix the code that access what was previously returned as a String class and
is now returned as a byte array.
When the Peers write a String into a BLOB what encoding is used. To be able
to create the String from th ebytwe array I need to know the encoding used
during the wrting of the string into the BLOB.
In other words I figure I can do somethign like replace the statement shown
below in th eoriginal emial with somethign like
String aQuery=new String(aView.getQuery(), "ISO-8859-1");
Sound OK?
David
-----Original Message-----
From: David Wynter [mailto:david@roamware.com]
Sent: 27 September 2002 11:48
To: Turbine-User
Subject: Problem with getting 4000 byte String from Peer
Hi,
I have a Turbine application that worked, and now, suddenly it doesn't.
I have the following line in my schema.xml file
<column name="query" size="4000" type="VARCHAR"/>
the peers etc. generate fine against a Oracle database.
I have the following line in my a class that uses with entity containing the
colun above
RwView aView=RwViewPeer.retrieveByPK(aViewKey);
String aQuery=aView.getQuery(); <----- at line 438
I get this error when i try to compile.
"TransformControl.java": Error #: 354 : incompatible types; found: byte[],
required: java.lang.String at line 438, column 45
I must have regenerated the Peers at some time using ant.
My question is: when did the templates change from returning a CString to
returning a byte array?
Thanks
David Wynter
roamware Ltd.
(+44) (0) 208 922 7539 B.
(+44) (0) 7879 605 706 M.
david@roamware.com
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>