Re: [enhydra] Problem alocating objectid

Rafael Torres <[email protected]> Wed, 13 Jul 2005 09:11:24 +0100
Newsgroups gmane.comp.java.enhydra.general
Message-ID <[email protected]>
Hi,

Managed to solve the problem. It was the 
DatabaseManager.DB.xxx.ObjectId.NextWithPrefix parameter that was set to 
true.

Thanks to all for your help.

Rafel Torres

Sinisa Milosevic wrote:

>Hi,
>
>You should check   DatabaseManager.DB.xxx.ObjectId.NextWithPrefix parameter.
>For PostgreSQL you don't need this parameter or just use default value -
>false.
>
>Also please check following parameters and their settings:
>
>DatabaseManager.DB.xxxDB.ClassType = PostgreSQL
>DatabaseManager.ObjectIdColumnName=ObjectId
>DatabaseManager.VersionColumnName=ObjectVersion
>
>
>I hope it helps.
>
>Regards,
>Sinisa
>
>----- Original Message ----- 
>From: "Rafael Torres" <[email protected]>
>To: <[email protected]>
>Sent: Tuesday, July 12, 2005 5:00 PM
>Subject: [enhydra] Problem alocating objectid
>
>
>  
>
>>Hi,
>>
>>I have a problem when trying to alocate a new objectid.
>>I'm using enhydra 6.4 and PostgreSQL 7.3.9-RH.
>>
>>The error I'm getting is:
>>
>>com.lutris.appserver.server.sql.ObjectIdAllocationError:
>>    
>>
>ObjectIdAllocator:
>  
>
>>  Failed to allocate object id.  Caused by SQLException:
>>    SQLState = null
>>    SQLError = 0
>>    SQLMsg   = ERROR:  parser: parse error at or near "." at character 29
>>
>>at
>>    
>>
>com.lutris.appserver.server.sql.standard.StandardObjectIdAllocator.updateCac
>he(Unknown Source)
>  
>
>>at
>>    
>>
>com.lutris.appserver.server.sql.standard.StandardObjectIdAllocator.allocate(
>Unknown Source)
>  
>
>>at
>>    
>>
>com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.allocateObj
>ectId(Unknown Source)
>  
>
>>at
>>    
>>
>com.lutris.appserver.server.sql.StandardDatabaseManager.allocateObjectId(Unk
>nown Source)
>  
>
>>at com.lutris.dods.builder.generator.dataobject.GenericDO.(Unknown Source)
>>
>>Does anyone know what is the reason for this error?
>>
>>Thanks
>>Rafael Torres
>>
>>
>>
>>
>>    
>>
>
>
>----------------------------------------------------------------------------
>----
>
>
>  
>
>>--
>>You receive this message as a subscriber of the [email protected]
>>    
>>
>mailing list.
>  
>
>>To unsubscribe: mailto:[email protected]
>>For general help: mailto:[email protected]?subject=help
>>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>    
>>
>
>
>  
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the [email protected] mailing list.
>To unsubscribe: mailto:[email protected]
>For general help: mailto:[email protected]?subject=help
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  
>
message-footer.txt (text/plain, 275 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws