[opencms-dev] need help: NullPointerException at com.opencms.file.CmsRbManager ???

Michael Taubert taubert at managementakademie.de
Fri Feb 23 11:57:45 CET 2001


On Thu, 22 Feb 2001 22:21:41 GMT
Karl König <king at gulasch.org> wrote:

> During step 6 of the installation procedure using SuDE 7.0 (with 
> preinstalled Apache, MySQL and jdk 1.1.7) I get the following _null 
> pointer exception_. Can you give me a hint?!
> 
>  /usr/lib/java/bin/java -mx64M -classpath 
> openc
> ms.jar:xerces.jar:mysql.jar:/usr/lib/java/lib/classes.zip 
> com.opencms.core.CmsSh
> ell config/opencms.properties < config/cmssetup.txt
> [OpenCms] creating first cms-object
> [OpenCms] initializing the main resource-broker
> [CmsRbManager] ressourcebroker-name: mySql
> [CmsRbManager] ressourcebroker-classname: 
> com.opencms.file.mySql.CmsResourceBrok
> er
> [CmsRbManager] got rb-class
> [CmsRbManager] created rb-instance
> [CmsResourceBroker] init the dbaccess-module.
> [CmsDbAccess] init the dbaccess-module.
> [CmsDbAccess] read driver from configurations: org.gjt.mm.mysql.Driver
> [CmsDbAccess] read url from configurations: 
> jdbc:mysql://localhost:3306/opencms4
> 1
> [CmsDbAccess] read user from configurations: root
> [CmsDbAccess] read maxConn from configurations: 10
> [CmsDbAccess] read digest from configurations: MD5
> [CmsDbAccess] read guard-sleeptime from configurations: 120
> [CmsDbAccess] digest created, using: sun.security.provider.MD5 Message 
> Digest <i
> ncomplete>
> 
> [CmsDbAccess] pool created
> [CmsDbAccess] all statements initialized in the pool
> [CmsDbAccess] max-ids initialized
> [CmsDbAccess] fill default resources
> [CmsRbManager] Critical error while loading resourcebroker.
> [OpenCms] Critical error while loading resourcebroker.
> [CmsException]: 33 Resourcebroker-init error. Detailed Error: Critical 
> error whi
> le loading resourcebroker. . Caught Exception: 
> >java.lang.NullPointerException:
> <
>         at com.opencms.file.CmsRbManager.init(CmsRbManager.java:98)
>         at com.opencms.core.OpenCms.<init>(OpenCms.java:118)
>         at com.opencms.core.CmsShell.<init>(CmsShell.java:85)
>         at com.opencms.core.CmsShell.main(CmsShell.java:196)
> >java.lang.NullPointerException:
> >       at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java)
> >       at 
> com.opencms.file.genericSql.CmsDbAccess.readSystemProperty(CmsDbAcces
> s.java:5262)
> >       at 
> com.opencms.file.genericSql.CmsDbAccess.addSystemProperty(CmsDbAccess
> .java:398)
> >       at 
> com.opencms.file.mySql.CmsDbAccess.fillDefaults(CmsDbAccess.java:452)
> >       at 
> com.opencms.file.genericSql.CmsDbAccess.<init>(CmsDbAccess.java:348)
> >       at com.opencms.file.mySql.CmsDbAccess.<init>(CmsDbAccess.java:65)
> >       at 
> com.opencms.file.mySql.CmsResourceBroker.createDbAccess(CmsResourceBr
> oker.java:66)
> >       at 
> com.opencms.file.genericSql.CmsResourceBroker.init(CmsResourceBroker.
> java:3523)
> >       at com.opencms.file.CmsRbManager.init(CmsRbManager.java:86)
> >       at com.opencms.core.OpenCms.<init>(OpenCms.java:118)
> >       at com.opencms.core.CmsShell.<init>(CmsShell.java:85)
> >       at com.opencms.core.CmsShell.main(CmsShell.java:196)
> 
> java.lang.NullPointerException
>         at com.opencms.core.CmsShell.printPrompt(CmsShell.java:266)
>         at com.opencms.core.CmsShell.commands(CmsShell.java:153)
>         at com.opencms.core.CmsShell.main(CmsShell.java:199)
> root at paprika:/usr/local/opencms >
> 
> best regards,
> 
> Karl König
> 

hi

/usr/lib/java/bin/java -mx64M -classpath 
opencms.jar:xerces.jar:mysql.jar:/usr/lib/java/lib/classes.zip com.opencms.core.CmsSh
ell config/opencms.properties < config/cmssetup.txt

the classpath should be the absolute path for each *.jar. for example:

... -classpath /usr/local/http/htdocs/servlets/opencms/opencms.jar:/usr/local/http/htdocs/servlets/ExternalComponents/xerces.jar....

this should be help.

-- 
gruss
michael



More information about the opencms-dev mailing list