<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>The problem could be c_pool string is
null.</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Harish.Chakravarthy@sjsu.edu
href="mailto:Harish.Chakravarthy@sjsu.edu">Harish.Chakravarthy@sjsu.edu</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=opencms-dev@opencms.org
href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 10, 2004 7:11
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [opencms-dev] The url cannot be
null (error)</DIV>
<DIV><BR></DIV><BR><FONT face=sans-serif size=2>Hi,</FONT> <BR><FONT
face=sans-serif size=2><BR>This error happens only once, just after tomcat is
retarted.</FONT> <BR><BR><FONT face=sans-serif size=2>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>
<BR><FONT face=sans-serif size=2>CmsException with message "The url cannot be
null". I create a new entry again, it works !</FONT> <BR><BR><FONT
face=sans-serif size=2>Here is my code to get ID:</FONT> <BR><FONT
face=sans-serif size=2>newId =
com.opencms.dbpool.CmsIdGenerator.nextId(c_pool, C_TABLE_NAME_COURSE);</FONT>
<BR><BR><FONT face=sans-serif size=2>I am using OpenCMS 5final and version 1.8
of CmsIdGenerator.java</FONT> <BR><BR><FONT face=sans-serif size=2>Any reason
why this happens ?</FONT> <BR><BR><FONT face=sans-serif size=2>Thanks</FONT>
<BR><FONT face=sans-serif size=2>Harish</FONT></BLOCKQUOTE></BODY></HTML>