Unable to browse by type

andrewbadera
andrewbadera's picture
User offline. Last seen 43 weeks 2 days ago. Offline
Joined: 12/08/2009
Points: 80

Windows Server 2008R2 64-bit, SQL Server 2005 64-bit, JTDS drivers.

Receive the following error when attempting to browse collateral by type: (tablet, android ota, etc.)

Error : JDO operation: Error executing JDOQL query "SELECT THIS.OBJECTTYPE,THIS.CONTENTMIME,THIS.CONTENTVERSIONCOMMENT,
THIS.CONTENTVERSIONNAME,THIS.CREATED_BY,THIS.CREATED,THIS.DESCRIPTION,
THIS.LAST_CHANGED_BY,THIS.LASTCHANGE,THIS.NAME_,
THIS.PROVIDER_ID,THIS.STATUS,THIS.OBJECTSUBTYPE,THIS.SYSTEM_TYPE,THIS.
THUMBNAIL_URL,THIS.ID,THIS.VERSION, THIS.WORKFLOW_STATE,THIS.XMLDATA
FROM dbo.REGISTRYOBJECT THIS
WHERE (EXISTS (SELECT 1 FROM dbo.RO_ATTRIBUTE
THIS_ATTRIBUTES_ISPHONECOMPATIBLE_VAR WHERE (EXISTS
(SELECT 1 FROM dbo.RO_ATTRIBUTE_VALUE THIS_ATTRIBUTES_ISPHONECOMPATIBLE_VAR_VALUES_ISPHONECOMPATIBLE_VAR_2 WHERE THIS_ATTRIBUTES_ISPHONECOMPATIBLE_VAR_VALUES_ISPHONECOMPATIBLE_VAR_2.RO_ATTRIBUTE_ID = THIS_ATTRIBUTES_ISPHONECOMPATIBLE_VAR.ID AND THIS_ATTRIBUTES_ISPHONECOMPATIBLE_VAR_VALUES_ISPHONECOMPATIBLE_VAR_2."VALUE" = ? AND THIS_ATTRIBUTES_ISPHONECOMPATIBLE_VAR.RO_ID = THIS.ID AND
THIS_ATTRIBUTES_ISPHONECOMPATIBLE_VAR.RO_ID = THIS.ID AND
THIS_ATTRIBUTES_ISPHONECOMPATIBLE_VAR."NAME" = ?)) AND
(((THIS.OBJECTTYPE = ?) OR (THIS.OBJECTTYPE = ?))) AND
((THIS.SYSTEM_TYPE IS NULL OR THIS.SYSTEM_TYPE <> ?)) AND
(THIS.OBJECTTYPE = ? OR THIS.OBJECTTYPE = ? OR THIS.OBJECTTYPE = ? OR THIS.OBJECTTYPE = ?)))" :
The data types ntext and nvarchar are incompatible in the equal to operator..;
uncategorized SQLException for SQL []; SQL state [S1000]; error code [402]; The data types ntext and nvarchar are incompatible in the equal to operator.; nested exception is java.sql.SQLException: The data types ntext and nvarchar are incompatible in the equal to operator.

0
Your rating: None
Deepak Alur
Deepak Alur's picture
User offline. Last seen 5 days 19 hours ago. Offline
Joined: 09/09/2008
Points: 585

 Hi Andrew,

We are investigating this. Thanks for reporting the issue.

Mash On!
- deepak alur | vp product + engineering at jackbe  | follow me

Mike Bennett
User offline. Last seen 3 days 45 min ago. Offline
Joined: 12/09/2009
Points: 54

 I have not been able to reproduce this locally using jTDS 1.2.5.  What version of the driver are you using?  Can you try with jtds 1.2.5?  http://sourceforge.net/projects/jtds/files/jtds/

 

andrewbadera
andrewbadera's picture
User offline. Last seen 43 weeks 2 days ago. Offline
Joined: 12/08/2009
Points: 80

 Already using 1.2.5, verified I was using latest before I bugged you guys. I seemed to read that this is still an issue in 1.2.5 though; unfortunately I can't find that link on this particular computer I'm on at the moment.

Can you tell me what the relevant datatypes should be, schema-wise? Maybe we missed an upgrade step somewhere? We're on our third or fourth installation with the same DB install.