8 Replies Latest reply: Sep 28, 2010 10:56 AM by Timo Hahn RSS

    Unable to obtain credential store using jps-config

    user8611954
      using jdev 11.1.1.3 and trying to create connection to my local UCM.

      Jdev connection wizards gives a popup window mentioning above error. and does not create connection. conn parameters i am giving are correct

      Unable to obtain credential store using jps-config


      what is the solution ?

      thx
        • 1. Re: Unable to obtain credential store using jps-config
          Frank Nimphius-Oracle
          Hi,

          is the application contained in a directory having a blank in the name ? Can you connect from another project ?

          Frank
          • 2. Re: Unable to obtain credential store using jps-config
            user8611954
            I checked. There are no blank spaces. I created another application and it is giving same error for UCM connection, database connection etc.

            Following is the stck trace in the connection pop up window..........

            javax.naming.NamingException [Root exception is oracle.adf.share.security.ADFSecurityRuntimeException: Unable to obtain credential store using jps-config file:/C:/JDeveloper/mywork/Application1/src/META-INF/jps-config.xml.   
            java.net.URISyntaxException: Illegal character in path at index 39: file:/C:/DOCUME~1/dvs_sain/Local Settings/Temp/credstore-jps-config7177642620278163914.xml]
                 at oracle.adf.share.jndi.ContextImpl.throwNamingException(ContextImpl.java:566)
                 at oracle.adf.share.jndi.ContextImpl.saveDocument(ContextImpl.java:838)
                 at oracle.adf.share.jndi.ContextImpl.save(ContextImpl.java:856)
                 at oracle.adf.share.jndi.AdfInitialContext.save(AdfInitialContext.java:92)
                 at oracle.adfinternal.rc.connection.UncloseableContextWrapper.save(UncloseableContextWrapper.java:90)
                 at oracle.jdeveloper.rescat2.util.ConnectionUtil.invokeOldStyleWizard(ConnectionUtil.java:145)
                 at oracle.jdeveloper.rescat2.util.ConnectionUtil.showWizard(ConnectionUtil.java:73)
                 at oracle.jdeveloper.rescat2.nodes.RepositoryRootNode.whenProperties(RepositoryRootNode.java:217)
                 at oracle.adf.share.dt.AppConnContextMenuListener.onProperties(AppConnContextMenuListener.java:219)
                 at oracle.adf.share.dt.AppConnContextMenuListener.propertiesEventHandled(AppConnContextMenuListener.java:208)
                 at oracle.adf.share.dt.AppConnContextMenuListener.handleEvent(AppConnContextMenuListener.java:121)
                 at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
                 at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
                 at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
                 at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
                 at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
                 at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
                 at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
                 at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
                 at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
                 at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
                 at java.awt.Component.processMouseEvent(Component.java:6263)
                 at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
                 at java.awt.Component.processEvent(Component.java:6028)
                 at java.awt.Container.processEvent(Container.java:2041)
                 at java.awt.Component.dispatchEventImpl(Component.java:4630)
                 at java.awt.Container.dispatchEventImpl(Container.java:2099)
                 at java.awt.Component.dispatchEvent(Component.java:4460)
                 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
                 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
                 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
                 at java.awt.Container.dispatchEventImpl(Container.java:2085)
                 at java.awt.Window.dispatchEventImpl(Window.java:2478)
                 at java.awt.Component.dispatchEvent(Component.java:4460)
                 at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
                 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
                 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
                 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
                 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
                 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
                 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
            Caused by: oracle.adf.share.security.ADFSecurityRuntimeException: Unable to obtain credential store using jps-config file:/C:/JDeveloper/mywork/Application1/src/META-INF/jps-config.xml.
            java.net.URISyntaxException: Illegal character in path at index 39: file:/C:/DOCUME~1/dvs_sain/Local Settings/Temp/credstore-jps-config7177642620278163914.xml
                 at oracle.adf.share.dt.security.providers.jps.CSFDTCredentialStore.checkInitCSFStore(CSFDTCredentialStore.java:257)
                 at oracle.adf.share.dt.security.providers.jps.CSFDTCredentialStore.storeCredential(CSFDTCredentialStore.java:304)
                 at oracle.adf.share.security.credentialstore.CredentialProvisioner.storeCredential(CredentialProvisioner.java:63)
                 at oracle.adf.share.jndi.CredentialStoreHelper.storeCredential(CredentialStoreHelper.java:66)
                 at oracle.adf.share.jndi.ReferenceStoreHelper.saveCredentials(ReferenceStoreHelper.java:440)
                 at oracle.adf.share.jndi.ContextImpl.saveDocument(ContextImpl.java:827)
                 ... 39 more
            Caused by: oracle.security.jps.JpsException: java.net.URISyntaxException: Illegal character in path at index 39: file:/C:/DOCUME~1/dvs_sain/Local Settings/Temp/credstore-jps-config7177642620278163914.xml
                 at oracle.adf.share.dt.jps.JpsConfigUtils.getCredentialStore(JpsConfigUtils.java:1377)
                 at oracle.adf.share.dt.jps.JpsConfigUtils.getCredentialStore(JpsConfigUtils.java:1288)
                 at oracle.adf.share.dt.jps.JpsConfigUtils.getCredentialStore(JpsConfigUtils.java:1305)
                 at oracle.adf.share.dt.security.providers.jps.CSFDTCredentialStore.checkInitCSFStore(CSFDTCredentialStore.java:229)
                 ... 44 more
            Caused by: java.net.URISyntaxException: Illegal character in path at index 39: file:/C:/DOCUME~1/dvs_sain/Local Settings/Temp/credstore-jps-config7177642620278163914.xml
                 at java.net.URI$Parser.fail(URI.java:2809)
                 at java.net.URI$Parser.checkChars(URI.java:2982)
                 at java.net.URI$Parser.parseHierarchical(URI.java:3066)
                 at java.net.URI$Parser.parse(URI.java:3014)
                 at java.net.URI.<init>(URI.java:578)
                 at java.net.URL.toURI(URL.java:918)
                 at oracle.adf.share.dt.jps.JpsConfigUtils.getCredentialStore(JpsConfigUtils.java:1338)
                 ... 47 more


            Is this bug with Jdev 11.1.1.3 ?

            solution ?

            thx
            d
            • 3. Re: Unable to obtain credential store using jps-config
              user8611954
              Hi Frank,

              I agree following path in the above stack trace does have space in the path.

              C:\Documents and Settings\dvs_sain\Local Settings\Temp

              whenever i create any application above is the path it picks up default.

              what is the solution/ way out ?

              thx
              d
              • 4. Re: Unable to obtain credential store using jps-config
                user8611954
                Above issue got resolved ......... it does not like spaces.... so i went to Start --- control --- environment variables ---- advanced tab and deleted my

                TEMP and TMP which had spaces. OK

                then restart Jdev and Laptop. and it worked.

                so solution is just delete those TMP and TEMP having spaces
                • 5. Re: Unable to obtain credential store using jps-config java.lang.NoClassDef
                  user8611954
                  After resolving above issue, another issue comes up ....... Jdev 11.1.1.3

                  I created a simple jspx page and then to run the page, first I start the integrated server and it never starts successfully. I get following error....... any idea ? what is solution ?

                  In one of the thread someone talks about deleting the following folder which I did delete and then restart Jdev and integrated weblogic. But same error.

                  I had deleted DefaultDomain folder from C:\Documents and Settings\Vap_Dap\Application Data\JDeveloper\system11.1.1.3.37.56.60




                  [Waiting for the domain to finish building...]
                  [10:45:56 PM] Creating Integrated Weblogic domain...
                  [10:46:47 PM] Extending Integrated Weblogic domain...
                  [10:47:51 PM] Integrated Weblogic domain processing completed successfully.
                  *** Using port 7101 ***
                  "C:\Documents and Settings\Vap_Dap\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\bin\startWebLogic.cmd"
                  [waiting for the server to complete its initialization...]
                  .
                  .
                  JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
                  .
                  WLS Start Mode=Development
                  .
                  CLASSPATH=C:\Oracle\Middleware\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc6dms.jar;C:\Oracle\Middleware\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\Middleware\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\Middleware\jdk160_18\lib\tools.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic_sp.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\modules\features\weblogic.server.modules_10.3.3.0.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\webservices.jar;C:\Oracle\Middleware\modules\org.apache.ant_1.7.1/lib/ant-all.jar;C:\Oracle\Middleware\modules\net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar;C:\Oracle\Middleware\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\oracle-portlet-api.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\Middleware\wlserver_10.3\common\derby\lib\derbyclient.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\xqrl.jar;.;C:\WINDOWS\system32\QTJava.zip
                  .
                  PATH=C:\Oracle\Middleware\patch_wls1033\profiles\default\native;C:\Oracle\Middleware\patch_jdev1111\profiles\default\native;C:\Oracle\Middleware\wlserver_10.3\server\native\win\32;C:\Oracle\Middleware\wlserver_10.3\server\bin;C:\Oracle\Middleware\modules\org.apache.ant_1.7.1\bin;C:\Oracle\Middleware\jdk160_18\jre\bin;C:\Oracle\Middleware\jdk160_18\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Program Files\RSA SecurID Token Common;C:\Oracle\Ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Altiris\Software Virtualization Agent\;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\Common Files\Lenovo;C:\Program Files\Enterprise Vault\EVClient\;C:\Program Files\Symantec\pcAnywhere\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\QuickTime\QTSystem\;C:\Oracle\Middleware\wlserver_10.3\server\native\win\32\oci920_8
                  .
                  ***************************************************
                  * To start WebLogic Server, use a username and *
                  * password assigned to an admin-level user. For *
                  * server administration, use the WebLogic Server *
                  * console at http:\\hostname:port\console *
                  ***************************************************
                  starting weblogic with Java version:
                  java version "1.6.0_18"
                  Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
                  Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
                  Starting WLS with line:
                  C:\Oracle\Middleware\jdk160_18\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=C:\Oracle\Middleware\wlserver_10.3 -Dwls.home=C:\Oracle\Middleware\wlserver_10.3\server -Dweblogic.home=C:\Oracle\Middleware\wlserver_10.3\server -Djps.app.credential.overwrite.allowed=true -Ddomain.home=C:\DOCUME~1\Vap_Dap\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain -Dcommon.components.home=C:\Oracle\Middleware\oracle_common -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\Middleware\oracle_common\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.domain.config.dir=C:\DOCUME~1\Vap_Dap\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\config\fmwconfig -Doracle.server.config.dir=C:\DOCUME~1\Vap_Dap\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\config\fmwconfig\servers\DefaultServer -Doracle.security.jps.config=C:\DOCUME~1\Vap_Dap\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.carmlloc=C:\DOCUME~1\Vap_Dap\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\config\fmwconfig\carml -Digf.arisidstack.home=C:\DOCUME~1\Vap_Dap\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\config\fmwconfig\arisidprovider -Dweblogic.alternateTypesDirectory=C:\Oracle\Middleware\oracle_common\modules\oracle.ossoiap_11.1.1,C:\Oracle\Middleware\oracle_common\modules\oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\DOCUME~1\Vap_Dap\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\oracle\store\gmds -DUSE_JAAS=false -Djps.policystore.hybrid.mode=false -Djps.combiner.optimize.lazyeval=true -Djps.combiner.optimize=true -Djps.auth=ACC -Doracle.core.ojdl.logging.usercontextprovider=oracle.core.ojdl.logging.impl.UserContextImpl -Doracle.wc.openusage.clustername=localhost -Doracle.wc.openusage.collectorport=31314 -Doracle.wc.openusage.timeout=30 -Doracle.wc.openusage.unicast=true -Doracle.wc.openusage.enabled=false -Doracle.webcenter.tagging.scopeTags=false -XX:+UseParallelGC -XX:+DisableExplicitGC -Dwc.oracle.home=C:\Oracle\Middleware\jdeveloper -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\Middleware\patch_wls1033\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Server
                  java.lang.NoClassDefFoundError: Data\JDeveloper\system11/1/1/3/37/56/60\DefaultDomain
                  Caused by: java.lang.ClassNotFoundException: Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain
                       at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
                       at java.security.AccessController.doPrivileged(Native Method)
                       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
                       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
                       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
                       at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
                  Could not find the main class: Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain. Program will exit.
                  Exception in thread "main" Process exited.
                  • 6. Re: Unable to obtain credential store using jps-config java.lang.NoClassDef
                    Timo Hahn
                    User,
                    a new issue should be in a new thread. This helps other users to find a possible solution to the same topic.

                    This said the solution to you problem is Franks post. You still have spaces in your path names. This can be trouble, in your case it is ;-)

                    You should set up JDev in an environment without spaces in any path it uses.
                    This blog http://technology.amis.nl/blog/8387/change-the-jdeveloper-system-directory gives some advise.

                    Timo
                    • 7. Re: Unable to obtain credential store using jps-config java.lang.NoClassDef
                      user8611954
                      Agreed :-)

                      Just added JDEV_USER_HOME as c:\MyJdevHome (no spaces in path

                      restarted Jdev ........... it asked me if I want to migrate .... I selected NO

                      and now its working fine

                      thx
                      • 8. Re: Unable to obtain credential store using jps-config java.lang.NoClassDef
                        Timo Hahn
                        Glad this solved it..


                        Please mark the thread as answered ...


                        Timo