[opencms-dev] The url cannot be null (error)

Harish.Chakravarthy at sjsu.edu Harish.Chakravarthy at sjsu.edu
Wed Feb 11 22:19:01 CET 2004


that was it !

thanks
harish






"Salvador Santander Gutierrez" 
<salvador.santander.ext at juntadeandalucia.es>
Sent by: opencms-dev-admin at opencms.org
02/11/2004 12:17 AM
Please respond to opencms-dev

 
        To:     <opencms-dev at opencms.org>
        cc: 
        Subject:        Re: [opencms-dev] The url cannot be null (error)


The problem could be c_pool string is null.
 
----- Original Message ----- 
From: Harish.Chakravarthy at sjsu.edu 
To: opencms-dev at opencms.org 
Sent: Tuesday, February 10, 2004 7:11 PM
Subject: [opencms-dev] The url cannot be null (error)


Hi, 

This error happens only once, just after tomcat is retarted. 

I restart tomcat and create a new entry using my backoffice module, which 
uses com.opencms.dbpool.CmsIdGenerator to generate unique ID. I get a 
CmsException with message "The url cannot be null". I create a new entry 
again, it works ! 

Here is my code to get ID: 
newId = com.opencms.dbpool.CmsIdGenerator.nextId(c_pool, 
C_TABLE_NAME_COURSE); 

I am using OpenCMS 5final and version 1.8 of CmsIdGenerator.java 

Any reason why this happens ? 

Thanks 
Harish

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040211/6c871a66/attachment.htm>


More information about the opencms-dev mailing list