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

martin eberle martin.eberle at innowake.de
Fri Feb 23 11:36:53 CET 2001


Sorry, but then the following error occures:

Exception in thread "main" java.lang.NoClassDefFoundError:
com/opencms/core/CmsS
hell

:(

martin

-----Ursprüngliche Nachricht-----
Von: owner-opencms-dev at www.opencms.com
[mailto:owner-opencms-dev at www.opencms.com]Im Auftrag von Michael Taubert
Gesendet: Freitag, 23. Februar 2001 11:58
An: opencms-dev at www.opencms.com
Betreff: Re: [opencms-dev] need help: NullPointerException at
com.opencms.file.CmsRbManager ???


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/htdo
cs/servlets/ExternalComponents/xerces.jar....

this should be help.

-- 
gruss
michael



More information about the opencms-dev mailing list