/opt/oc4j/java/jdk1.5.0_11/bin/jarsigner vncviewer.jar vncviewer  Failed

When I try to visit a VM by console,firefox prompt "need to install plugins".
Then I go back to config the VNCVIEWER.
1)/opt/oc4j/java/jdk1.5.0_11/bin/keytool -genkey -alias vncviewer -validity 365
execute successfully
2) But when I execute
[root@OVMServer Class]# /opt/oc4j/java/jdk1.5.0_11/bin/jarsigner vncviewer.jar vncviewer
Enter Passphrase for keystore: oracle123
jarsigner: unable to open jar file: vncviewer.jar
I don't know why this command failed.
Thanks,

My vncviewer is called "VncViewer.jar" (with capital V's), is located in "/opt/oc4j/j2ee/home/applications/OVS/webapp1/Class/" and is from package "tightvnc-java-1.3.9-3".
I had no such difficulties signing that particular file, using the "Oracle VM Manager Installation Guide Release 2.1": http://download.oracle.com/docs/cd/E11081_01/doc/doc.21/e10902.pdf

Similar Messages

  • C:\Documents and Settings\User "c:/Program Files/Java/jdk1.5.0_14\bin\java.

    I have a class "Stimulus.java" in which another jar's class has been used. When I created jar and executed I got below error. I used "-classpath" to set dependancy jar file. Any clues are appreciated.
    import modulus.Modulus;
    public class Stimulus{
        public static void main(String[] args) {
                Model.main(args);
    C:\Documents and Settings\User>"c:/Program Files/Java/jdk1.5.0_14\bin\java.exe" -classpath "D:\User\mypgms\test\bin\Modulus.jar;" -jar D:\User\mypgms\test\bin\Stimulus.jar c:\test.txt
    Exception in thread "main" java.lang.NoClassDefFoundError: modulus/Modulus
            at Stimulus.main(Stimulus.java:4)

    You can't mix classpath values with the -jar option. Using the -jar option causes Java to use only the Class-Path: information in the jar's manifest file, while ignoring all external classpath information. Review this for details:
    http://java.sun.com/docs/books/tutorial/deployment/jar/run.html

  • Java\jdk1.6.0_02\jre\lib\ext\mysql-connector-java-5.1.16-bin.jar was unexp

    Hello, please i am new to Jdeveloper and weblogic servers and i developed an application using jdeveloper and when i try to run the application it brings up this error message
    "*** Using HTTP port 7101 ***
    *** Using SSL port 7102 ***
    C:\Users\Lucky\AppData\Roaming\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    \Java\jdk1.6.0_02\jre\lib\ext\mysql-connector-java-5.1.16-bin.jar was unexpected at this time.
    Process exited."
    I tried deleting the jdk1.6.6.0_02 and tried it again but it still did not run, I also uninstalled the JDeveloper and weblogic server and reinstalled them but the error message still pops up. Please i need help to fix this.
    Thanks.
    Edited by: Chinedu on Feb 21, 2013 8:48 AM

    Andrew,
    Thanks for the lightning response... but the problem has been solved.
    I rebooted again, and installed again (didn't download again because the filesize checked out) and now it works fine, and I'm none the wiser as to the root cause of the problem, except that rt.jar has magically appeared:
    C:\Users\Administrator>dir "C:\Program Files\Java\jre6\lib\*.jar"
    Volume in drive C has no label.
    Volume Serial Number is 00AC-1BC7
    Directory of C:\Program Files\Java\jre6\lib
    08/11/2009  06:38 PM         6,685,813 charsets.jar
    08/11/2009  06:38 PM         2,989,538 deploy.jar
    08/11/2009  06:38 PM           716,841 javaws.jar
    08/11/2009  06:38 PM            88,256 jce.jar
    08/11/2009  06:38 PM           558,189 jsse.jar
    08/11/2009  06:38 PM               382 management-agent.jar
    08/11/2009  06:38 PM         1,704,664 plugin.jar
    08/11/2009  06:38 PM         1,115,985 resources.jar
    08/11/2009  06:38 PM        44,295,255 rt.jar                             <<<<<<<<<<<<<<<<<<
                   9 File(s)     58,154,923 bytes
                   0 Dir(s)  115,454,173,184 bytes freeSOOOO... I presume that the installer failed on rt.jar, probably because something (something in my start-up, I suppose) was using the JRE while the instal was running... but I didn't do anything different the second time (to the best of my knowledge).
    Thanks anyways... My hair (what's left of it) greatly appreciates your time.
    Cheers. Keith.

  • Java.lang.unsatisfiedlinkerror:c:\jbuilder9\jdk1.4\jre\bin\fontmanager.dll

    Hi there, could some of you help me here please, because I am really desperate. As you might have noticed by my topic I am using JNI, but I get an error when I want to make a simple form in java.
    I compiled my java program setp by step, I have an application with a simple frame in it, but when it wants to compile the frame constructor, I encounter this error:
    java.lang.unsatisfiedlinkerror :c:\java\jbuilder9\jdk1.4\jre\bin\fontmanager.dll
    The specified procedure could not be found.
    at java.lang.ClassLoader$NativeLibrary.load (Native Method)
    In fact I'm trying to get the HWND of a java frame via a native method in C++.
    Kind Regards
    Sirwah

    Try
    1. putting c:\java\jbuilder9\jdk1.4\jre\bin in your Windows path
    2. Setting JAVA_HOME environment variable to c:\java\jbuilder9\jdk1.4\jre
    OR
    3. Dirty shamefull workaround, last resort... copy fontmanager.dll to the directory you start your application from !
    regards,
    Owne

  • Java.exe in \jdk1.4.0\bin VS. java.exe in \jre\bin ?

    Hi,
    What is different java tools in bin directory from
    java tools in jre\bin?
    Why do we need these duplication?
    and what kinds of role jre directory do?
    If anyone give any more comments about jdk directory structure
    with the reason, it will be big help.
    Thank you..

    i guess you have installed the java development kit ( JDK ) . I you read the documentation JDK comes with development tools + java runtime environment ( JRE ) . if you have a look at this picture http://java.sun.com/j2se/1.4.1/images/j2se9.2_arch3.1.jpg .It will make it more clear . so what you see in jre folder is for the runtime execution . once you have compiled the java file you you only need the jre content to run it . where as other flders contain development tools , documentation etc .
    hth

  • No JRMC  found in JRockit  R27.2.0-jdk1.5.0_10 / bin

    Hi
    I want to do JRA recording to check memory usage.
    WLS 9.2
    Oracle Solaris on SPARC (32-bit)
    but when I open :-
    R27.2.0-jdk1.5.0_10 /bin there no jrmc file to start JRA recording.
    Is there any other way to do JRA recording ?
    below is the folder structure :-
    rwxr-xr-x 1 bea bea 1789 Nov 10 2006 java-rmi.cgi
    -rwxr-xr-x 1 bea bea 189160 Nov 10 2006 unpack200
    -rwxr-xr-x 1 bea bea 66696 Mar 21 2007 jrcmd
    -rwxr-xr-x 1 bea bea 66768 Mar 21 2007 appletviewer
    -rwxr-xr-x 1 bea bea 66784 Mar 21 2007 extcheck
    -rwxr-xr-x 1 bea bea 66808 Mar 21 2007 idlj
    -rwxr-xr-x 1 bea bea 66776 Mar 21 2007 jar
    -rwxr-xr-x 1 bea bea 66784 Mar 21 2007 jarsigner
    -rwxr-xr-x 1 bea bea 66152 Mar 21 2007 java
    -rwxr-xr-x 1 bea bea 66808 Mar 21 2007 javac
    -rwxr-xr-x 1 bea bea 66784 Mar 21 2007 javadoc
    -rwxr-xr-x 1 bea bea 66784 Mar 21 2007 javah
    -rwxr-xr-x 1 bea bea 66776 Mar 21 2007 javap
    -rwxr-xr-x 1 bea bea 66808 Mar 21 2007 jdb
    -rwxr-xr-x 1 bea bea 66784 Mar 21 2007 keytool
    -rwxr-xr-x 1 bea bea 66784 Mar 21 2007 native2ascii
    -rwxr-xr-x 1 bea bea 69432 Mar 21 2007 orbd
    -rwxr-xr-x 1 bea bea 66784 Mar 21 2007 policytool
    -rwxr-xr-x 1 bea bea 66776 Mar 21 2007 rmic
    -rwxr-xr-x 1 bea bea 66784 Mar 21 2007 rmid
    -rwxr-xr-x 1 bea bea 66784 Mar 21 2007 rmiregistry
    -rwxr-xr-x 1 bea bea 66784 Mar 21 2007 serialver
    -rwxr-xr-x 1 bea bea 66800 Mar 21 2007 servertool
    -rwxr-xr-x 1 bea bea 69432 Mar 21 2007 tnameserv
    -rwxr-xr-x 1 bea bea 66776 Mar 21 2007 apt
    -rwxr-xr-x 1 bea bea 66800 Mar 21 2007 jconsole
    -rwxr-xr-x 1 bea bea 66776 Mar 21 2007 jps
    -rwxr-xr-x 1 bea bea 66776 Mar 21 2007 jstat
    -rwxr-xr-x 1 bea bea 66776 Mar 21 2007 jstatd
    -rwxr-xr-x 1 bea bea 66792 Mar 21 2007 pack200
    drwxr-xr-x 3 bea bea 1024 Mar 21 2007 .
    drwxr-xr-x 2 bea bea 1024 Mar 21 2007 sparcv9
    drwxr-xr-x 9 bea bea 512 Jun 25 2007 ..
    Thanks in advance..... :)

    WLS : 9.2
    Platform : Solaris is 32 bit.
    Is the case that with JRockit jdk1.5.0_10 (Release R27.2) JRockit Mission Control is not supported?JRMC works. But there is no JRMC GUI application for Solaries (because the Eclipse RCP libraries are unavailable on that platform). You can enable the JRMC server on the Solaris machine (start JRockit with the appropriate -Xmanagement flag) and connect remotely from a Windows or Linux desktop.
    When checked with supported configuration could see JRockit Mission Control 3.1.0 is for Solaris 64 bit.Yes. JRockit JVM including JRMC server. No JRMC GUI.
    Henrik

  • JDK 1.6.0_43 to JDK1.7.0_11

    We have recently upgraded the Java used with our Development E-Business Suite 11i(11.5.2.10) RUP7 from JDK 1.6.0_43 to JDK1.7.0_11. We have now completed the testing and we would like to downgrade the java to JDK 1.6.0_43. When we run the command "txkrun.pl -script=SetJDKCfg -force=Yes" to downgrade Java, we are getting error message "Already on a higher version 1.7.0_11. Can not downgrade to 1.6.0_43.". Is there a way to downgrade Java?

    jemar98 wrote:
    We have recently upgraded the Java used with our Development E-Business Suite 11i(11.5.2.10) RUP7 from JDK 1.6.0_43 to JDK1.7.0_11. We have now completed the testing and we would like to downgrade the java to JDK 1.6.0_43. When we run the command "txkrun.pl -script=SetJDKCfg -force=Yes" to downgrade Java, we are getting error message "Already on a higher version 1.7.0_11. Can not downgrade to 1.6.0_43.". Is there a way to downgrade Java?Are you referring to JRE or JDK?
    What is the document you have followed to upgrade to JDK 1.7.0_11?
    Please implement the steps in (Using J2SE Version 6 with Oracle E-Business Suite 11i [ID 401561.1]) to use JDK 1.6 with EBS. If this doesn't help then you need to restore the files from the backup you have taken before you upgraded JDK.
    Thanks,
    Hussein

  • Error: no `server' JVM at `D:\jdk1.3\jre\bin\server\jvm.dll'

    I am running WLCS 3.2 with WLS 5.1 & SP6 on an NT 4.0 system and the
    java -version gives this output:
    D:\WebLogicCommerceServer3.2>java -version
    java version "1.3.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
    Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
    When I initiate WLCS using the startCommerce.bat file it complains this way:
    Error: no `server' JVM at `D:\jdk1.3\jre\bin\server\jvm.dll'
    So my question is what did I forget to do when I moved from JDK1.2.2 to JDK1.3?
    This is probably an easy fix but it's late in the day and my brain
    turned off a few hours ago so I'm gratefully asking here in the newsgroup.
    Thanks in advance!
    Hugo Penafiel
    marchFIRST

    I think the script starts JVM with -server option and you do not
    have HotSpot server installed. Change -server to -hotspot or remove
    it altogether.
    Hugo <[email protected]> wrote:
    I am running WLCS 3.2 with WLS 5.1 & SP6 on an NT 4.0 system and the
    java -version gives this output:
    D:\WebLogicCommerceServer3.2>java -version
    java version "1.3.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
    Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
    When I initiate WLCS using the startCommerce.bat file it complains this way:
    Error: no `server' JVM at `D:\jdk1.3\jre\bin\server\jvm.dll'
    So my question is what did I forget to do when I moved from JDK1.2.2 to JDK1.3?
    This is probably an easy fix but it's late in the day and my brain
    turned off a few hours ago so I'm gratefully asking here in the newsgroup.
    Thanks in advance!
    Hugo Penafiel
    marchFIRSTDimitri

  • Combining '10.1.3 OC4J Java Single Sign-On' and 'Oracle (mod_o)SSO'

    OC4J as of 10.1.3 supports java SSO which doesn't require the whole infrastructure stack. I'm wondering whether one could create a solution that transparently provides SSO behavior whether you're coming from mod_osso or from OC4J Java SSO. So basically;
    When I configure my (Java) app to leverage OC4J Java SSO, can I use this information to transparently log me in in my Forms/Portal application, hosted on the same domain/server using mod_osso - obviously without a login challenge - and vice versa?

    I did a JAD (Decompile) on the "oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule" and found the BUG. In the system-jazn file has to be defined columns for pk and the column with the username. These has to be the same according to these lines:
    if(_userPk.equals(username))
    break MISSING_BLOCK_LABEL_364;
    if(LOGGER.isLoggable(Level.FINE))
    LOGGER.log(Level.FINE, "[DBTableOraDataSourceLoginModule]User not authenticated: username or password mismatch");
    In my original table I had an userid and a username, where userid was primary key. If I use Username as primary key.. voila It works, and very well indeed.
    Oracle.. thank you for this new facility.
    <- Holger ->

  • Oracle oas 10.1.3 oc4j java memory pools info...?

    Hello!
    I need to find info about java memory in JVM. What is :
    PS Eden Space
    PS Old Gen
    PS Perm Gen
    PS Survivor Space
    PS MarkSweep
    PS Scavenge
    regards - Marcin

    user8672998 wrote:
    Hello!
    I need to find info about java memory in JVM. What is :
    PS Eden Space
    PS Old Gen
    PS Perm Gen
    PS Survivor Space
    PS MarkSweep
    PS Scavenge
    regards - MarcinHi Marcin,
    To monitor the java memory and to find info on the memory pools & GC parameters, you must first verify that you are running OC4J on JDK release 5.0, and than you must set the jmxremote property for the OC4J instance.
    Using Application Server Control to Set the jmxremote System Property
    To set the enable monitoring of JVM J2SE 5.0 metrics from Application Server Control:
    1. Navigate to the OC4J Home page for the OC4J instance.
    2. Click Administration to display the OC4J Administration page, which contains a table listing the various administration tasks you can perform for this OC4J instance.
    3. If necessary, expand the Services section of the table by clicking the expand icon or by clicking Expand All.
    4. Click the task icon in the Server Properties row of the table to display the OC4J Server Properties page.
    5. Scroll down to the Command Line Options section of the page and select Enable J2SE 5.0 Platform MBeans.
    6. Click Apply to apply the changes.
    7. Navigate to the Cluster Topology page, select the OC4J instance, and then click Restart.
    Manually Setting the jmxremote System Property
    You can also enable monitoring of JVM J2SE 5.0 metrics manually, by including the following string as an OC4J runtime startup option:
    com.sun.management.jmxremote
    Refer the section "Setting System Properties at Startup" in the Oracle Containers for J2EE Configuration and Administration Guide for detailed instructions on how to specify OC4J runtime startup options.
    Specifically, if you are running OC4J in a standalone environment, you must include the following argument to the OC4J java command:
    java -Dcom.sun.management.jmxremote -jar oc4j.jar
    Or, if you are running OC4J in a Oracle Application Server managed environment, you must include the following argument in the start-parameters java-options element in the opmn.xml file:
    <ias-component id="OC4J">
    <process-type id="home" module-id="OC4J" status="enabled">
    <module-data>
    <category id="start-parameters">
    <data id="java-options" value="-Dcom.sun.management.jmxremote"/>
    </category>
    </module-data>
    </process-type>
    </ias-component>
    Regards,
    ~Pointer

  • Help! ERROR : \Java\jdk1.6.0_23 was unexpected at this time.

    hello. guys.
    i tried to install weblogic server (10.3.4) on window7. but when i run it, it says that
    *\Java\jdk1.6.0_23 was unexpected at this time.*
    i installed jdk1.6.0_23 on my pc.
    what's the problem?

    this is my JAVA_HOME
    JAVA_HOME
    C:\Program Files (x86)\Java\jdk1.6.0_23
    in the eclipse console, it says
    \Java\jdk1.6.0_23 was unexpected at this time.
    and the log is
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:189)
    at org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:136)
    at java.lang.Thread.run(Thread.java:662)
    and in the startWebLogic.cmd, i found that some tip from web-sites
    original : set SAVE_JAVA_OPTIONS=%JAVA_OPTIONS%
    change : set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n %SAVE_JAVA_OPTIONS%
    but even i didn't change cmd file, the error is same.
    please help me....

  • HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: String index out of range: -7

    All -
    I'm new to consuming web services in JDeveloper. I'm using Oracle JDEV 10.1.3.3/OC4J.  I'm using this version since it is compatible with Oracle EBS 12.1.3.  My intent is to pull data from our third party recruitment app (Success Factors) and load that data into Oracle HRIS.  I'm already doing this through a .NET application.  I'm converting it to be a Java Concurrent Program in EBS.  The code listed below is a stub call to verify I'm on the right track. I created a JDeveloper Web Services proxy project.  I'm testing it locally on my windows desktop.  When I'm able to consume the service successfully, then I'll think about moving it to the EBS server.
    I'm getting the following error when I invoke the following service:
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: String index out of range: -7
    End point is: https://api4.successfactors.com/sfapi/v1/soap?wsdl
    Any help/assistance would be much appreciated. 
    Below is my code and output of my test:
    package emsc.oracle.apps.emscper.sfapi.proxy;
    import HTTPClient.HTTPConnection;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.IsValidSession;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.IsValidSessionResponse;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.Login;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.LoginResponse;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.LoginResult;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.Logout;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.LogoutResponse;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.SFCredential;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.SFParameter;
    import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.Error;
    import java.io.File;
    import javax.xml.rpc.ServiceFactory;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Date;
    import javax.xml.ws.BindingProvider;
    import javax.xml.soap.SOAPException;
    import java.util.Map;
    import oracle.security.ssl.OracleSSLCredential;
    public class SFAPITest {
        // Declare members:      
        private String companyId;
        private String userName;
        private String password;
        private String developerKey;
        private Date   effDt;
        private String greaterThanEffDt;
        private String lessThanEffDt;
        // Declare constants:      
        final static private String breakLine = "+---------------------------------------------------------------------------+";
        final static private String format    = "yyyy-mm-dd";      
        private enum ReqId {
            PrimaryReq(25),
            PrimaryReqCEO(26),
            EmCarePrimary(27),
            RTI(28),
            EmCareClinical(29);
            private int reqId; 
            private ReqId() {
            private ReqId(int value) {
                reqId = value;
            public int getReqId() {
                return reqId;
        // Getters and Setters:  
        protected String getCompanyId() {
           return this.companyId;
        protected void setCompanyId(String value) {
           this.companyId = value;                 
        protected String getUserName() {
           return this.userName;
        protected void setUserName(String value) {
           this.userName = value;                 
        protected String getPassword() {
           return this.password;
        protected void setPassword(String value) {
           this.password = value;                 
        protected String getDeveloperKey() {
           return this.developerKey;
        protected void setDeveloperKey(String value) {
           this.developerKey = value;                 
        protected Date getEffDt() {
            return this.effDt;
        protected void setEffDt(Date value) {
            this.effDt = value;                 
        protected String getGreaterThanEffDt() {
           return this.greaterThanEffDt;
        protected void setGreaterThanEffDt(String value) {
           this.greaterThanEffDt = value;                 
        protected String getLessThanEffDt() {
           return this.lessThanEffDt;
        protected void setLessThanEffDt(String value) {
           this.lessThanEffDt = value;                 
        public void runProgram()
            SFAPIService mySFAPIService;
            String CompletionText = "";
            String effDtStr2 = null;
        /* Code your program logic here.
        * Use getJDBCConnection method to get the connection object for any
        * JDBC operations.
        * Use CpContext provided commit,rollback methods to commit/rollback
        * data base transactions.
        * Don't forget to release the connection before returning from this
        * method.
        /* Call setCompletion method to set the request completion status and
        * completion text.
        * Status values are ReqCompletion.NORMAL,ReqCompletion.WARNING,
        * ReqCompletion.ERROR.
        * Use Completion text message of length 240 characters. If it is more
        * than 240 then full string will appear in log file and truncated 240
        * characters will be used as request completion text.
        try
            ServiceFactory factory = ServiceFactory.newInstance();
            mySFAPIService = (emsc.oracle.apps.emscper.sfapi.proxy.SFAPIService)factory.loadService(emsc.oracle.apps.emscper.sfapi.proxy.SFAPIService.class);      
            SFAPI api = mySFAPIService.getSFAPI();
           /// SFAPI api = new SFAPI();
            //Map<String, Object> requestContext = ((BindingProvider) api).getRequestContext();
            //requestContext.put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
            System.out.println("ServiceName => " + mySFAPIService.getServiceName().toString());
            System.out.println("End Point   => " + mySFAPIService.getServiceName().toString());
            System.out.println(breakLine);
            // Authentication: Login to SFAPI:
            SFCredential credential = new SFCredential();
            // Fake credentials being passed in for this post:   
            credential.setCompanyId("XXX");
            credential.setUsername("XXX");
            credential.setPassword("XXX");
            credential.setDeveloperKey("XXX");
            HTTPConnection httpsConnection = null;       
            OracleSSLCredential _credential = new OracleSSLCredential();      
            _credential.setWallet("\\\\\\C:\\Program Files\\Java\\jdk1.6.0_33\\jre\\lib\\security", "ParkEstes3");
            /*System.setProperty("javax.net.ssl.trustStore","C:\\\\\OraHome_1\\jdev\\jdevbin\\jdk\\jre\\lib\\security\\keystore");
            System.setProperty("javax.net.ssl.trustStorePassword","changeit");  
            System.out.println(System.getProperty("javax.net.ssl.trustStore"));*/
            // SFParameter: Define a generic SFParameter List.  This is a necessary parameter
            // to invoking calls in SFAPI:      
             /*System.setProperty("javax.net.ssl.keyStore",
             "file:\\\C:\\jdk1.4.1\\jre\\lib\\security\\client.keystore");
             System.setProperty("javax.net.ssl.keyStorePassword","welcome");         */
            /*  System.setProperty("oracle.net.wallet_location",
                          "(SOURCE=(METHOD=file)(METHOD_DATA=(DIRECTORY=\\\C:\Users\dparrish\Oracle\WALLETS)))");  // (2)                     */
            File kstore = new File("C:\\OraHome_1\\jdev\\jdevbin\\jdk\\jre\\lib\\security\\jssecacerts");
            boolean exists = kstore.exists();
            if (!exists) {
                System.out.println("Keystore does not exist");
            else {
                System.out.println("Keystore does exist");
            System.setProperty("javax.net.ssl.trustStore", kstore.getAbsolutePath());
            System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
            //System.setProperty("proxySet", "false");
            //System.setProperty("http.proxyHost", "127.0.0.1");
            //System.setProperty("http.proxyPort", "8080");
            System.out.println(kstore.getAbsolutePath());
            List<SFParameter> lst = new ArrayList<SFParameter>();
            SFParameter param = new SFParameter();
            param.setName("");
            param.setValue("");
            lst.add(param);      
            SFParameter[] sfParam = lst.toArray(new SFParameter[lst.size()]);
            Login login = new Login();
            try {
                login.setCredential(credential);
                System.out.println("1");
                login.setParam(sfParam);
                System.out.println("2");
                LoginResponse loginResponse = new  LoginResponse();
                LoginResult loginResult = new LoginResult();
                try {
                     loginResponse = api.login(login);               
                catch (Exception e ) {
                    System.out.println(e.getMessage());
                System.out.println("3");
                try {               
                     loginResult = loginResponse.getResult();
                catch (Exception e ) {
                    System.out.println(e.getMessage());
                System.out.println("4");
                IsValidSession vs = new IsValidSession();                  
                IsValidSessionResponse isValidSessionResponse = api.isValidSession(vs);
                System.out.println("5");
                if (isValidSessionResponse.isResult()) {
                     System.out.println("Session is valid");
                     System.out.println("Result => " + loginResult.getSessionId());
                     System.out.println(breakLine);              
                    Logout logout = new Logout();
                    LogoutResponse logoutResponse = api.logout(logout);
                    if (logoutResponse.isResult()) {
                         System.out.println("Logout of SFAPI Successful");
                    else {
                        System.out.println("Logout of SFAPI Unsuccessful");
                else {
                     System.out.println("Session is invalid");
                    List<Error> errors = new ArrayList<Error>();
                    for (int i = 0; i < loginResult.getError().length;  i++) {
                        errors.add(loginResult.getError()[i]);
                    for (int i = 0; i < errors.size(); i++) {
                         System.out.println("Error Indice   => " + i);
                         System.out.println("Error Code:    => " + errors.get(i).getErrorCode());
                         System.out.println("Error Message: => " + errors.get(i).getErrorMessage());
                         System.out.println(breakLine);                                                          
                    } // end for loop of SFObject errors
                } // end InvalidSession
            catch (Exception e)
                 System.out.println("Session Credential Exception");
                 System.out.println("Exception => " + e.getMessage());
                 System.out.println(breakLine);                   
        catch (Exception e)
            System.out.println("Parameter List Exception");
            System.out.println("Exception => " + e.getMessage());
            System.out.println(breakLine);
        }   // end runProgram
        // Constructor:
        public SFAPITest()  {
        } // end constructor
        public static void main (String args[]) {
            try
                SFAPITest test = new SFAPITest();        
                test.runProgram();
            catch (Exception e) {
                System.out.println("main exception => " + e.getMessage());
    } // SFAPITest
    Here is the output with trace:
    WARNING: Unable to connect to URL: https://api4.successfactors.com:443/sfapi/v1/soap due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: String index out of range: -7
    Session Credential Exception
    Exception => ; nested exception is:
        HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: String index out of range: -7
    +---------------------------------------------------------------------------+
    Process exited with exit code 0.

    The other end is throwing back a programming error.
    That might be because you are sending incorrect data and the other end fails to validate it.
    You might be able to guess based on your C# code.  But, since you are using soap one generic solution is available to you.
    - Get an http proxy interceptor like wireshark.
    - Run it while your C# app runs, collect the http requests from that.
    - Run it while running your java code, collect the http requests from that.
    Compare the two.

  • Java 1.6 won't download library jar files

    I am developing 2 applets for use on an embedded web server, similar to what you would see when you connect to the web interface of a network router. I need charting functionality in both applets, so I'm using an open source Java charting library called JFreeChart. I have very limited disk space, so I want to keep the JFreeChart jar seperate from my applet jar, rather than zipping JFreeChart with each applet. So I've placed the files on the ebedded web server like this:
    applet_1.html
    applet_1.jar
    applet_2.html
    applet_2.jar
    lib/JFreeChart.jar
    When I open applet_1.html with Java 1.5_11 installed, the JFreeChart library jar downloads with no issues, but for some reason when I install Java 1.6_1 it just hangs. The java console shows the following:
    network: Cache entry not found [url: http://10.0.1.200/lib/jfreechart-1.0.5.jar, version: null]
    network: Connecting http://10.0.1.200/lib/jfreechart-1.0.5.jar with proxy=DIRECT
    network: Cache entry not found [url: http://10.0.1.200/lib/jfreechart-1.0.5.jar, version: null]
    network: Connecting http://10.0.1.200/jfreechart-1.0.5.jar with proxy=DIRECT
    1.5_11 actually shows the same thing, except the jar downloads just fine.
    In researching this problem I've found that there is apparently an "entirely new downloading engine" in Java 1.6, which is supposed to help with Web Start applications. That leads me to beleive that this is a bug with the new engine.
    Should I submit a bug report? I have a packet sniffer program that I could use to capture the packets between the host PC and the web server, should I try to get this info to help diagnose the problem?

    I am seeing similar entries with another applet.
    I see three attempts on my Windows XP machine with JRE 1.6.0_10-rc2
    one for /lib/QTJava.zip (which isn't there, nor should it need to be)
    one for /lib/plugin.jar
    and one for /lib/lib
    Why on earth the applet or JRE is looking for stuff in those folders in beyond me, but it is adding 4 seconds to the applet load time while it goes off on a shopping spree trying to find things.
    The same applet, when loaded on Windows Vista with JRE 1.6.0_07, the console doesn't show those errors at all.

  • Bundling all java,html and even images in a jar file

    Hi All,
    When i bundle all my application .java files in a jar along with manifest i give something as,
    jar -cvf Name.jar manifest.txt *.classMy question is if i want to bundle even couple of HTML and even some images like(jpg,png..etc)..How should i do that???
    Thanks in advance.
    regards,
    Viswanadh

    Follow the instructions here:
    [http://java.sun.com/docs/books/tutorial/deployment/jar/index.html]
    Note that if you want to run the html. it must be outside of the jar, not in it.

  • Static initialization of java code included in the Imported Archives jars?

    Hi
    Does SAP PI 7.0 support static initialization of java code included in the Imported Archives jars?
    Static block of a java class included in the Imported Archive jars throws a Runtime Exception called ExceptionInInitializationError while trying to run.
    Regards,
    RDS

    Have you tested the code outside PI?

Maybe you are looking for

  • How can I convert an iCloud alias to an email Address?

    We created an email alias for my wife to use as part of our MobileMe/iCloud account. Now we want to convert that over to a separate email address as part of our family plan. How can we do that? Thanks in advance.

  • !Can Some 1 Help Me P

    Hi all i want to clear up a few things- im considering buying a creative zen touch 20GB player but need the following questions answeared: I want the player for home use and walking (not jogging or exercising) about , should it b ok in my pocket and

  • Why does my dvd player keep ejecting?

    my macbook continues to eject DVDs and CDs, blank and otherwise. is anyone else having this trouble? is my machine toast?

  • Video Conferencing with NX Pro?

    Just got an NX Pro Webcam from my son and daughter-in-law for Christmas, and seem to have hooked it up without a problem. Can't figure out how to Video Conference with it, however. He has one as well, and that's what we'd like to be able to do. What

  • Remote sync between two RAID arrays

    We have two Xserve RAID arrays. One is here in our local office, the other at a remote site which hosts a few of our servers as well. Does anyone have any suggestions for keeping the two synced? I would like to not have to deal with tape backups in t