2 Replies Latest reply: Dec 9, 2007 7:38 AM by 607325 RSS

    Accessing user Addressbook (OCSuser addressbook)

    547120
      I'm trying to develop a Java client to manage an OCS user addressbook.

      I'm developing it with eclipse and I'd like to test my code from this environment. To obtain an user addressbook I execute:

      OCSUser ocsUser =OCSUserFactory.getInstance().getOCSUserFromDN("cn=test,cn=users,dc=caixaterrass
      a,dc=es", "dc=caixaterrassa,dc=es");



      and I get next error:

      DEBUG: ESDSDirServerAccess:Constructor: Running in Debug Mode
      DEBUG: ESDSDirServerAccess.ESDSLogon: jazn_xml
      L:\workspaces\webmail\cet_webmail_cs\oc4j_conf\oes\jazn\jazn.xml
      java.lang.NullPointerException
      at java.io.File.<init>(File.java:180)
      at oracle.security.jazn.JAZNConfig.getJAZNProperties(Unknown Source)
      at oracle.security.jazn.JAZNConfig.access$100(Unknown Source)
      at oracle.security.jazn.JAZNConfig$2.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jazn.JAZNConfig.getJAZNPropertiesNoCheck(Unknown Source)
      at oracle.security.jazn.JAZNConfig.<init>(Unknown Source)
      at oracle.security.jazn.JAZNConfig.initJAZNSingleton(Unknown Source)


      If I run this from a JSP in a Web application deployed in my Oracle Middletier, it works correctly,

      any idea?