Why it needs to call use_password function each time?

User 7b6e83a531

26-12-2009 13:34:15

hi, Everybody


why it needs to call jchem_core_pkg.use_password function after i restart cartridge server each time?


i use cartridge 5.2, and os is windows server 2003, 64bit.


the following is error message.


F:\ChemAxon\JChem\cartridge>server start


F:\ChemAxon\JChem\cartridge>"F:\Java\jdk1.6.0_17\bin\java.exe" -server -Xrs -XX:


-OmitStackTraceInFastThrow -Dchemaxon.jchem.cartridge.config.file="F:\ChemAxon\J


Chem\cartridge\\conf\jcart.properties" -Djava.util.logging.config.class=chemaxon


.jchem.cartridge.util.LoggingConfigurator -Djava.awt.headless=true -classpath "F


:\ChemAxon\JChem\lib\jchem.jar"  chemaxon.jchem.cartridge.server.Bootstrapper st


art


INFO: Server control process started


INFO: Using classpath: F:\ChemAxon\JChem\lib\jchem.jar;


INFO: Server process start-ed.


INFO: Directory licenses does not exist. Leaving it to LicenseHandler to check t


he default location for licenses.


INFO: Listening on network interface 0.0.0.0/0.0.0.0 at port 1099...


SEVERE: No password found for user 'ACD3D20083'. Please, set password by calling


 jchem_core_pkg.use_password or jchem_core_pkg.set_password.


java.lang.IllegalArgumentException: No password found for user 'ACD3D20083'. Ple


ase, set password by calling jchem_core_pkg.use_password or jchem_core_pkg.set_p


assword.


        at chemaxon.jchem.cartridge.servlets.JCartConnectionManager.createConnec


tionHandler(JCartConnectionManager.java:353)


        at chemaxon.jchem.cartridge.servlets.JCartConnectionManager.createConnec


tionHandler(JCartConnectionManager.java:467)


        at chemaxon.jchem.cartridge.rmi.impl.MiscellaniousImpl.idxCompatibility(


MiscellaniousImpl.java:149)


        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.


java:39)


        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces


sorImpl.java:25)


        at java.lang.reflect.Method.invoke(Method.java:597)


        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)


        at sun.rmi.transport.Transport$1.run(Transport.java:159)


        at java.security.AccessController.doPrivileged(Native Method)


        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)


        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:5


35)


        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTranspor


t.java:790)


        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport


.java:649)


        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec


utor.java:886)


        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor


.java:908)


        at java.lang.Thread.run(Thread.java:619)


 


thanks in advance.

ChemAxon aa7c50abf8

26-12-2009 19:06:46

The server has to connect back to Oracle in some way: 


http://www.chemaxon.com/jchem/doc/guide/cartridge/index.html#archi_highlevel


A user id and password is required to connect back. If you configure a user with privileges covering those of all JChem Cartridge users (http://www.chemaxon.com/jchem/doc/admin/cartridge.html#users/jcc_super_user) there is no need for calling user_password(...) anymore.