<br><font size=2 face="sans-serif"><br>
that was it !</font>
<br>
<br><font size=2 face="sans-serif">thanks</font>
<br><font size=2 face="sans-serif">harish</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>"Salvador Santander Gutierrez" <salvador.santander.ext@juntadeandalucia.es></b></font>
<br><font size=1 face="sans-serif">Sent by: opencms-dev-admin@opencms.org</font>
<p><font size=1 face="sans-serif">02/11/2004 12:17 AM</font>
<br><font size=1 face="sans-serif">Please respond to opencms-dev</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To: <opencms-dev@opencms.org></font>
<br><font size=1 face="sans-serif"> cc: </font>
<br><font size=1 face="sans-serif"> Subject: Re: [opencms-dev] The url cannot be null (error)</font></table>
<br>
<br>
<br><font size=2 face="Arial">The problem could be c_pool string is null.</font>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman">----- Original Message ----- </font>
<br><font size=3 face="Times New Roman"><b>From:</b> </font><a href=mailto:Harish.Chakravarthy@sjsu.edu><font size=3 color=blue face="Times New Roman"><u>Harish.Chakravarthy@sjsu.edu</u></font></a><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman"><b>To:</b> </font><a href="mailto:opencms-dev@opencms.org"><font size=3 color=blue face="Times New Roman"><u>opencms-dev@opencms.org</u></font></a><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman"><b>Sent:</b> Tuesday, February 10, 2004 7:11 PM</font>
<br><font size=3 face="Times New Roman"><b>Subject:</b> [opencms-dev] The url cannot be null (error)</font>
<br>
<br><font size=2 face="sans-serif"><br>
Hi,</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
<br>
This error happens only once, just after tomcat is retarted.</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
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</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
CmsException with message "The url cannot be null". I create a new entry again, it works !</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
Here is my code to get ID:</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
newId = com.opencms.dbpool.CmsIdGenerator.nextId(c_pool, C_TABLE_NAME_COURSE);</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
I am using OpenCMS 5final and version 1.8 of CmsIdGenerator.java</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
Any reason why this happens ?</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
Thanks</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
Harish</font>
<br>
<br>