Call crashed in JNI_CreateJavaVM with java 1.6 where as with 1.5 it works.

Hi,
Recently we upgraded to Java 1.6 from 1.5. I have writed a code to launch JVM from C++ and use it. It was working with earlier version of Java 1.5 but the same
code is not working with Java 1.6.
We launch this process with differet users having adminstrative access. With default admin user it works no issues at all. But if we use Java 1.6 and change to the user who is having all administrative access it fails. Infact it hangs. Is i am missing anything. below is code snippet.
typedef JNIEnv* ( WINAPI*jvmFun ) ( JavaVM ** );
typedef JNIEnv* ( WINAPI*createJVMFun ) ();
typedef JNIIMPORT_OR_EXPORT_ jint ( JNICALL JNI_JVMPROC ) ( JavaVM *, void **, void * );
typedef JNIIMPORT_OR_EXPORT_ jint ( JNICALL JNI_GetCREATEDVMs ) ( JavaVM *, jsize, jsize * );
JNI_JVMPROC ProcAdd;
JNI_GetCREATEDVMs CreatedVms;
const int createJVM( JNIEnv* &env, string vm_options, HMODULE hinstLib)
     // Set JVM options
JavaVMOption *options = 0;
     options = new JavaVMOption[ options_size ];
//Fill options with runtime options here
     options[ (options_size - 1) ].optionString = java_options;
     // Set JVM initialization arguments
JavaVMInitArgs vm_args;
vm_args.version = JNI_VERSION_1_6;
vm_args.options = options;
vm_args.nOptions = options_size;
vm_args.ignoreUnrecognized = JNI_FALSE;
ProcAdd = ( JNI_JVMPROC ) GetProcAddress( hinstLib, "JNI_CreateJavaVM" );
jint createResult = ( ProcAdd ) ( &m_jvm, ( void** ) &env, &vm_args );
     jthrowable exc = env->ExceptionOccurred();
if (exc) {
env->ExceptionDescribe();
env->ExceptionClear();
     // exception
if ( createResult < 0 )
          free(java_options);
          delete [] options; // TODO: Need to clean each option string?
return FAILURE;
else
          free(java_options);
          delete [] options;// TODO: Need to clean each option string?
          return SUCCESS;
Edited by: Prabhanand on Sep 18, 2009 5:46 AM

One thread is enough.
http://forum.java.sun.com/thread.jspa?messageID=9651015

Similar Messages

  • HT201412 Has any 1 had a problem with the iphone 4 where the home button completly stops working and voice recognition keeps coming on and calling any1 it likes?

    Hi has any1 had a problen with i phone 4 where the home button wont work at all. Since this has happend my voice recognition keeps coming on and calling who it wants!!!

    Hi has any1 had a problen with i phone 4 where the home button wont work at all. Since this has happend my voice recognition keeps coming on and calling who it wants!!!

  • Works with Java 1.4 but not with Java 1.5

    Please check
    http://forum.java.sun.com/thread.jspa?threadID=791767&tstart=0
    in the Java Programming Forum.
    Thanks!

    it seems that the
    <f:view locale="en">
    only work if a ressource bundle with the locale sufix '_en' is provided.
    Everything works now if I provide 3 ressouce files:
    global_en.properties
    global_de.properties
    global.properties
    global.properties and global_en.properties are identically!
    But if I delete the global_en.properties file always the global_de.properties file wins before the default properties.
    I did not expect such a behavior :-(

  • Jconsole no longer works with Java 6.0, it did with 5.0

    Hello,
    We are having a very important issue. We have reproduced the situation in 10 out of 10 computers, all with the same result, even in fresh installations.
    Using jconsole, we are connecting to the following service (BEA weblogic 10): service:jmx:rmi:///jndi/iiop://host:7001/weblogic.management.mbeanservers.runtime
    In the jconsole provided in any revision of Java 5.0 (1.5) it works, that is to say, it is able to connect to the service.
    On the other hand, there is no way to accomplish this using Java 6.0. The connection fails with the following error:
    Nov 6, 2007 10:27:56 AM com.sun.corba.se.impl.orb.ORBImpl checkShutdownState
    WARNING: "IOP01210228: (BAD_OPERATION) This ORB instance has been destroyed, so no operations can be performed on it"
    org.omg.CORBA.BAD_OPERATION: vmcid: SUN minor code: 228 completed: No
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.orbDestroyed(ORBUtilSystemException.java:586)
         at com.sun.corba.se.impl.logging.ORBUtilSystemException.orbDestroyed(ORBUtilSystemException.java:608)
         at com.sun.corba.se.impl.orb.ORBImpl.checkShutdownState(ORBImpl.java:1289)
         at com.sun.corba.se.impl.orb.ORBImpl.create_any(ORBImpl.java:1078)
         at com.sun.corba.se.impl.javax.rmi.CORBA.Util.writeAny(Util.java:296)
         at javax.rmi.CORBA.Util.writeAny(Util.java:80)
         at org.omg.stub.javax.management.remote.rmi._RMIServer_Stub.newClient(Unknown Source)
         at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2309)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:277)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
         at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:361)
         at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:297)
         at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:279)
    We have also create our own application to do this and although the same piece of code compiles under both JDKs, it fails to run with exactly the same error under Java 6.0.
    Does anyone know why this is happening and if there is a way to work around it?
    TIA.

    Hi, I faced similar problems access MBeans to Weblogic Server 10 from client under JDK(JRE) 6.0
    , but my way of workaround may be helpful:
    Do not use jmx support jar files from Weblogic Server10, use that from 9 instead. Here I use
    weblogic.jar & webservices.jar
    and it works fine.
    the following is my test program (looks ugly, but only for test)
    public class MyConnection {
        private static MBeanServerConnection connection;
        private static JMXConnector connector;
        public static void initConnection(String hostname, String portString,
                String username, String password) throws IOException,
                MalformedURLException {
            String protocol = "t3";
            Integer portInteger = Integer.valueOf(portString);
            int port = portInteger.intValue();
            String jndiroot = "/jndi/";
            String mserver = "weblogic.management.mbeanservers.domainruntime";
            JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port,
                    jndiroot + mserver);
            Hashtable h = new Hashtable();
            h.put(Context.SECURITY_PRINCIPAL, username);
            h.put(Context.SECURITY_CREDENTIALS, password);
            h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
                "weblogic.management.remote");
            connector = JMXConnectorFactory.connect(serviceURL, h);
            connection = connector.getMBeanServerConnection();
        public static void getComplidatedObject() throws Exception {
            //String name = "com.bea:Location=examplesServer,Name=examplesServer,ServerRuntime=examplesServer,Type=JDBCServiceRuntime";\
            String name = "com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean";
            String attribute = "ServerRuntimes";
            ObjectName on = new ObjectName(name);
            Object obj = connection.getAttribute(on, attribute);
            //Method m = obj.getClass().getMethod("getState", new Class[] {});
            //Object result = m.invoke(obj, null);
            //System.out.println(result);
            System.out.println(obj.getClass().isArray());
            System.out.println(obj);
        public static void discovery() throws Exception {
            String mbeanType = "*:*";
            ObjectName patialObjectName = new ObjectName(mbeanType);
            Set mbeans = connection.queryNames(patialObjectName, null);
            long overallTime = System.currentTimeMillis();
            for (Iterator itr = mbeans.iterator(); itr.hasNext();) {
                ObjectName mbean = (ObjectName) itr.next();
                String sMBeanFullName = mbean.getCanonicalName();
                MBeanInfo mbeanInfo = connection.getMBeanInfo(mbean);
                MBeanAttributeInfo mbeanAttrInfoArray[] = mbeanInfo.getAttributes();
                if (mbeanAttrInfoArray == null) {
                    continue;
                String sMBeanDescription = mbeanInfo.getDescription();
                String s = mbeanInfo.getClassName();
                System.out.println("====================");
                System.out.println(sMBeanFullName);
                for (int i = 0; i < mbeanAttrInfoArray.length; i++) {
                    MBeanAttributeInfo attrInfo = mbeanAttrInfoArray;
    if (attrInfo.isReadable()) {
    //If attribute datatype is supported, add it to the list for this mbean
    String sAttrDataType = attrInfo.getType();
    String sAttrName = attrInfo.getName();
    String sAttrDescription = attrInfo.getDescription();
    System.out.println("Name:" + sAttrName + "\nType:" + sAttrDataType + "\nDesc:" + sAttrDescription);
    } //end if
    public static void main(String[] args) throws Exception {
    String hostname = "192.168.1.24";
    String portString = "7001";
    String username = "weblogic";
    String password = "weblogic";
    MyConnection c = new MyConnection();
    initConnection(hostname, portString, username, password);
    c.printNameAndState();
    c.discovery();
    c.getComplidatedObject();
    c.printNameAndState();
    connector.close();
    public static ObjectName[] getServerRuntimes() throws Exception {
    ObjectName service = new ObjectName(
    "com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean");
    return (ObjectName[]) connection.getAttribute(service, "ServerRuntimes");
    public void printNameAndState() throws Exception {
    ObjectName[] serverRT = getServerRuntimes();
    System.out.println("got server runtimes");
    int length = (int) serverRT.length;
    for (int i = 0; i < length; i++) {
    MBeanInfo mb = connection.getMBeanInfo(serverRT[i]);
    System.out.println(mb.getClassName());
    String name = (String) connection.getAttribute(serverRT[i], "Name");
    String state = (String) connection.getAttribute(serverRT[i],
    "State");
    System.out.println("Server name: " + name + ". Server state: " + state);

  • FF 14.0.1: Bookmark with java-script function to build and open URL. Works unless clicked when already in a new blank tab, then does nothing. Why?

    On 14.0.1 I have a bookmark which calls a java script function to prompt for input, build and call a dynamic URL. This has worked fine until last update of FF. It works fine if I right click and select Open in a New Tab, or new window. It works fine if I am in any other website and click it. It only does not work, if I open a new blank tab or window, and then click it from inside that new tab. Then it does nothing. Same happens whether the "New tab Page" is displayed or not. Same happens in safe mode.
    Bookmark properties:
    javascript:void(str=prompt(%22Document%20Number:%22,%22%22));if(str){location.href=%22https://somecompany.com/oip/faces/secure/km/DocumentDisplay.jspx?id=%22+escape(str).split(%22%20%22).join(%22+%22);}

    I searched for a recent thread on this but couldn't find it.
    This may be the result of a security restriction on some "about" pages such as about:home and about:newtab.
    Did you blank the new tab page using the little button or did you actually change the new tab page to about:blank? In case you need steps for testing:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''newtab''' and pause while the list is filtered
    (3) Double-click the '''browser.newtab.url''' preference and enter the desired value:
    ''(i) Page thumbnails (default)''
    browser.newtab.url = about:newtab
    ''(ii) Blank tab''
    browser.newtab.url = about:blank
    ''(iii) Built-in Firefox home page''
    browser.newtab.url = about:home
    ''(iv) Any other page''
    browser.newtab.url = full URL to the page

  • XSLT Enhancement with Java, Tokenize Functionality

    I tried the following requirement using EXSLT with no luck. Is there any other alternative to tokenize in XSLT 1.0.
    The syntax i have here is  
    <xsl:for-each select="tokenize($this/Field1,',')">
           <xsl:variable name="f1v" select="."/>
         <xsl:for-each select="tokenize($this/Field2,'\|')">
              <xsl:variable name="f2v" select="."/>
              <xsl:for-each select="tokenize($this/Field3,'\|')">
                        <xsl:variable name="f3v" select="."/>
    There are multiple for-each based on tokens
    I am leaning towards to Enhancing XSLT with Java Function. As i have less experience with Java, can anybody help me with the code that can be used by XSLT for Tokenize functionality.
    I have written something like following. I still have errors to fix. But i am not sure about having resultSet or return at the end, to make sure all the tokens were sent to XSLT.
    public class MyStringToken
         public static void main(String [] args)
              String str = "sssd;wwer;ssswwwwdwwwwwwwwwww;wwwwe";
              String delimiter = ";";
              MyStringToken my = new MyStringToken();
              my.getTokens(str,delimiter);
         public void getTokens(String str,String delimiter)
              StringTokenizer st = new StringTokenizer(str,delimiter);
              while(st.hasMoreElements())
                   try
                        String delString = new String(st.nextElement().toString());
                        return (delString);
                   catch(Exception e)
                        e.printStackTrace();
    Any help is appreciated

    Hi,
    I have been searching about, and I have found the next example that maybe can help you, It's a template to tokenize in XSLT 1.0 from the web [http://stackoverflow.com/questions/1018974/tokenizing-and-sorting-with-xslt-1-0]
    <xsl:template name="tokenize">
      <xsl:param name="string" />
      <xsl:param name="delimiter" select="' '" />
      <xsl:choose>
        <xsl:when test="$delimiter and contains($string, $delimiter)">
          <token>
            <xsl:value-of select="substring-before($string, $delimiter)" />
          </token>
          <xsl:text> </xsl:text>
          <xsl:call-template name="tokenize">
            <xsl:with-param name="string"
                            select="substring-after($string, $delimiter)" />
            <xsl:with-param name="delimiter" select="$delimiter" />
          </xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
          <token><xsl:value-of select="$string" /></token>
          <xsl:text> </xsl:text>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:template>
    Also I have found the next example of use tokenize in EXSLT from [http://exslt.org/str/functions/tokenize/index.html] It can be that inI your tests you are not using "str:tokenize", no?
    <xsl:template match="a">
       <xsl:apply-templates />
    </xsl:template>
    <xsl:template match="*">
       <xsl:value-of select="." />
          <xsl:value-of select="str:tokenize(string(.), ' ')" />
       <xsl:value-of select="str:tokenize(string(.), '')" />
       <xsl:for-each select="str:tokenize(string(.), ' ')">
          <xsl:value-of select="." />
       </xsl:for-each>
       <xsl:apply-templates select="*" />
    </xsl:template>
    I hope that helps you.
    Best.
    Jorge

  • Call visual prolog program from java

    Hi friends,
    is there someone help me to call ( run) prolog program from java.
    i write a parser with Javacc parser generator and stored parsed information in prolog database and I want create some query in java that work in the prolog file.
    how can i combine java and prolog programs. i used visual prolog.
    Can someone help me?
    Thanks you in advance.
    yours sincerely,
    ksu

    Since visual prolog can produce dll's, you can use JNI:
    http://java.sun.com/j2se/1.4.2/docs/guide/jni/index.html

  • Analyzer Not working with Java 1.6

    Does anyone know why Analyzer 7.2.5.3 works ok with Java 1.4.2 even with Java 1.5 versions, but as soon as a client also installs 1.6 it stops working? Also what can I do to alleviate this, without removing 1.6 from machines as it is now our companies standard version.
    Thx in advance.

    I am experiencing the same issue. About 500 users are using Analyzer 7.0. When Java 1.6 is installed on their machine, the loading screen hangs, and never shows the login screen.

  • Enqueuing JMS_TEXT_MESSAGE with Java creates strange message payload

    Hello everybody,
    I'm trying to enqueue a JMS_TEXT_MESSAGE. There is no problem doing this with PL/SQL, but with Java the payload of the enqueued message seems to contain garbage. I tried a lot but actually I have no idea why this happens.
    Here are the different user_data values of the enqueued messages:
    Java: (((; ; 0); ; ; ; ; ; ((; 100; ; ; 27); (; 200; ; 1257325532555; 24); ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )); 14; ; )
    PL/SQL: ((; ; ; ; ; 0; ); 14; This is a test; )
    As you can see there are a lot of differences. The length of the string (14) is correct with Java, too, but where do the other values come from ? And what happened to the message text ?
    Environment:
    - Oracle Database 10g Enterprise Edition 10.2.0.3.0
    - JDK 1.5.0_06
    - Used libraries
    -- $ORACLE_HOME/rdbms/jlib/jmscommon.jar
    -- $ORACLE_HOME/rdbms/jlib/aqapi13.jar
    -- $ORACLE_HOME/jdbc/lib/ojdb14.jar
    -- $ORACLE_HOME/jlib/jta.jar
    This is how created the user:
    CREATE USER strm_admin IDENTIFIED BY strm_admin;
    GRANT connect, resource, aq_administrator_role TO strm_admin;
    GRANT execute on dbms_aq TO strm_admin;
    Here is the test class that creates the strange payload:
    package test;
    import javax.jms.MessageProducer;
    import javax.jms.Queue;
    import javax.jms.QueueConnection;
    import javax.jms.QueueConnectionFactory;
    import javax.jms.TextMessage;
    import oracle.AQ.AQQueueTable;
    import oracle.AQ.AQQueueTableProperty;
    import oracle.jms.AQjmsDestination;
    import oracle.jms.AQjmsDestinationProperty;
    import oracle.jms.AQjmsFactory;
    import oracle.jms.AQjmsSession;
    public class AQTest
    public static void main(String[] args) throws Exception
    String url = "jdbc:oracle:thin:@server:port:sid";
    QueueConnectionFactory qcf = AQjmsFactory.getQueueConnectionFactory(url, null);
    QueueConnection connection = qcf.createQueueConnection("strm_admin", "strm_admin");
    AQjmsSession session = (AQjmsSession)connection.createQueueSession(true, 0);
    // create queuetable
    AQQueueTableProperty tableProperty = new AQQueueTableProperty("SYS.AQ$_JMS_TEXT_MESSAGE");
    session.createQueueTable("strm_admin", "testqueuetablejms", tableProperty);
    // create queue
    AQQueueTable queueTable = session.getQueueTable("strm_admin", "testqueuetablejms");
    Queue queue = session.createQueue(queueTable, "testqueuejms", new AQjmsDestinationProperty());
    ((AQjmsDestination)queue).start(session, true, true);
    // enqueue message
    TextMessage message = session.createTextMessage();
    message.setText("This is a test");
    MessageProducer producer = session.createProducer(queue);
    producer.send(message);
    producer.close();
    // close
    session.commit();
    session.close();
    connection.close();
    With this PL/SQL the message payload is correct:
    DECLARE
    v_enqueue_options DBMS_AQ.ENQUEUE_OPTIONS_T;
    v_message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;
    v_message SYS.AQ$_JMS_TEXT_MESSAGE;
    v_message_id RAW(16);
    BEGIN
    v_message := SYS.AQ$_JMS_TEXT_MESSAGE.CONSTRUCT;
    v_message.set_text('This is a test');
    DBMS_AQ.ENQUEUE (
    queue_name => 'strm_admin.testqueuejms'
    ,enqueue_options => v_enqueue_options
    ,message_properties => v_message_properties
    ,payload => v_message
    ,msgid => v_message_id
    COMMIT;
    END;
    Can anyone help me, please ? Has anyone experienced the same problem ? Or can anyone reproduce it ?
    Any help is appreciated.
    Roland

    Finally I got it fixed !
    The library "orai18n.jar" hat to be included in class path. Very strange, that there was no exception or any hint to what was missing.

  • Toplink 9.0.4.5 with java 5

    Hi
    I'm wondering how toplink 9.0.4.5. copes with java 5. since its shipped with jre 1.4.
    What enabling generics features can do to toplink workbench - for example.
    Br
    PF

    I'm wondering how toplink 9.0.4.5. copes with java 5.
    since its shipped with jre 1.4.
    What enabling generics features can do to toplink
    workbench - for example.TopLink 9.0.4.5 predates Java 5 so it was not certified against it but I'm not aware of any reported problems. If you do use generics in your code it shouldn't be a problem because generics are a compile time feature, not runtime. Generics information is lost in compilation (which is referred to as type erasure). The Workbench works with .class files which contains no generics information and there's no way to get that information without looking at the source.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • ASA Rdp plugin not working with Java 7 Update 55

    When accessing the clientless VPN on an ASA 5510 with Java 7 Update 51, the RDP and VNC plugins work exactly as they should. But now that Java 7 Update 55 is out, the plugins once again are useless, as they throw Java security exceptions about "attempted to open a sandboxed jar <applet url here> as Trusted-Only".
    This happens even with the most up to date RDP and VNC plugins available on the Cisco website. Is anyone else having these problems, and know of any solutions or if Cisco is working on this problem at all?
    Thanks

    I've tried various Java Versions but no luck at all.
    Last try was with:
    Java-Plug-in 11.5.2.13
    JRE-Version verwenden 1.8.0_05-b13 Java HotSpot(TM) Client VM
    I am also getting following error:
    Missing Application-Name manifest attribute for: https://<mywebsite>++/rdp/properJavaRDP14-1.1.jar
    All known workarounds are done to fix the problem. Could anyone confirm that this is fixed with ASA version 9.1.4 ? Its a productive ASA so i do not want to test around for a maybe :) 
    Best Regards
    Ayhan

  • Design metasearch with java

    hi,
    i'm student in computer science and engineering at faculty of electronic engineering
    and i want to design metasearch with java
    can you provide me with some resources about this topic

    please i don't understand
    can you explain more?If you are designing a metasearch with java
    and your first question is: "can you provide me with some resources about this topic?"
    Then it looks like you have tough road ahead of you.
    One thing that will be very helpful:
    www.google.com

  • Domino Gateway Crash with Java.io.EOF Exception

    All,
    My client has IDM 7.1 provisioning to Domino 6.5.4. It has been working fine untill last friday. Since then the gateway is crashing with Java.io.EOF Exception while trying to provision. The code has not changed and per some of the previous threads in this forum, I checked if they had any configuration changes in the Domino gateway server or at the domino side - like virus scan etc. However the answer was no.
    I would really appreciate any help on this.
    Thanks,
    Biju.
    Here is the last few lines in the gateway trace before it crashes:
    27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,247): Enter: doDominoInitialization
    03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,271): NotesIniFileDir: D:\IDM\gateway\notes.ini
    03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,279): NotesInstallDir: D:\notes
    03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,291): Domino Enabled
    03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,303): Updated PATH: ;D:\notes;
    03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,310): NOTESNTSERVICE Successfully set
    03/27/2009 00.20.25.406000 [4924] (../../../../src/wps/agent/connect/main.cpp,327): Exit: doDominoInitialization
    03/27/2009 00.20.25.406000 [2752] (../../../../src/wps/agent/connect/ntsvc.cpp,95): Service::svc
    03/27/2009 00.20.25.437000 [2752] (../../../../src/wps/agent/connect/server.cpp,269): starting up server daemon PORT 9278
    03/27/2009 00.20.25.875000 [2752] (../../../../src/wps/agent/connect/RAEncryptor.cpp,128): Error reading encrpytion key from registry. Using default.
    03/27/2009 00.20.25.875000 [2752] (../../../../src/wps/agent/connect/RASecureConnection.cpp,64): RASecureConnection: new connection handler
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/client_handler.cpp,344): got 68 bytes
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,264): ReceivePrivate: count: 47, 64 wrapped up rawlength 63
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,273): Rightbefore decrypt:
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,69): RAEncryptor::Decrypt3DES: input length (56) moded to 7
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,114): SendPrivate: count: 0 pad: 4
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,422): Enter: MakeChallengeResponse
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,474): MakeChallengeResponse(in,out):
    (5C,2F) (CC,56)
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,476):  (26,E3) (D7,65)
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,128): Error reading encrpytion key from registry. Using default.
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,497): MakeChallengeResponse Key:
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,507): Exit: MakeChallengeResponse
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,114): SendPrivate: count: 16 pad: 4
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/client_handler.cpp,344): got 36 bytes
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,264): ReceivePrivate: count: 16, 32 wrapped up rawlength 32
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,273): Rightbefore decrypt:
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,69): RAEncryptor::Decrypt3DES: input length (24) moded to 3
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,114): SendPrivate: count: 0 pad: 4
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,128): Error reading encrpytion key from registry. Using default.
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,571): Session key :
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/client_handler.cpp,344): got 16036 bytes
    03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,264): ReceivePrivate: count: 16012, 16032 wrapped up rawlength

    Workflow Trace:
                                  <List>
                                    <String>defaultPasswordExp</String>
                                    <String>365</String>
                                  </List>
                                </List>
                              </ResultRows>
                            </ResultTable>
                          </ResultItem>
                          <ResultItem type='error' status='error'>
                            <ResultError throwable='com.waveset.util.WavesetException'>
                              <StackTrace>com.waveset.util.WavesetException:
    ==> java.io.EOFException:
         at com.waveset.adapter.AgentResourceAdapter.getResponseBytes(AgentResourceAdapter.java:924)
         at com.waveset.adapter.AgentResourceAdapter.getResponse(AgentResourceAdapter.java:955)
         at com.waveset.adapter.AgentResourceAdapter.getResponse(AgentResourceAdapter.java:940)
         at com.waveset.adapter.AgentResourceAdapter.getResponse(AgentResourceAdapter.java:934)
         at com.waveset.adapter.AgentResourceAdapter.doCreateOrUpdateRequest(AgentResourceAdapter.java:1289)
         at com.waveset.adapter.DominoResourceAdapter.doCreateOrUpdateRequest(DominoResourceAdapter.java:1072)
         at com.waveset.adapter.AgentResourceAdapter.createAccounts(AgentResourceAdapter.java:266)
         at com.waveset.adapter.ResourceAdapterBase.createAccount(ResourceAdapterBase.java:832)
         at com.waveset.adapter.ResourceAdapterProxy.createAccount(ResourceAdapterProxy.java:213)
         at com.waveset.provision.ProvisionContext.doResource(ProvisionContext.java:2103)
         at com.waveset.provision.ProvisionContext.processOp(ProvisionContext.java:592)
         at com.waveset.provision.ThreadContext.processContext(ThreadContext.java:330)
         at com.waveset.provision.ThreadContext.launchThreads(ThreadContext.java:239)
         at com.waveset.provision.ProvisionContext.doResources(ProvisionContext.java:280)
         at com.waveset.provision.Provisioner.reProvision(Provisioner.java:2226)
         at com.waveset.provision.Provisioner.reProvision(Provisioner.java:1416)
         at com.waveset.provision.WorkflowServices.reProvision(WorkflowServices.java:2791)
         at com.waveset.provision.WorkflowServices.call(WorkflowServices.java:789)
         at com.waveset.adapter.RASecureConnection.access$700(RASecureConnection.java:53)
         at com.waveset.adapter.RASecureConnection$ReceiveThread.run(RASecureConnection.java:1080)
    Wrapped exception:
    java.io.EOFException
         at java.io.DataInputStream.readFully(DataInputStream.java:204)
         at java.io.DataInputStream.readInt(DataInputStream.java:380)
         at com.waveset.adapter.RASecureConnection.ReceivePrivateThread(RASecureConnection.java:540)
         at com.waveset.adapter.RASecureConnection.access$700(RASecureConnection.java:53)
         at com.waveset.adapter.RASecureConnection$ReceiveThread.run(RASecureConnection.java:1080)
    </StackTrace>
                              <ResultError throwable='java.io.EOFException'>
                                <StackTrace>java.io.EOFException
         at java.io.DataInputStream.readFully(DataInputStream.java:204)
         at java.io.DataInputStream.readInt(DataInputStream.java:380)
         at com.waveset.adapter.RASecureConnection.ReceivePrivateThread(RASecureConnection.java:540)
         at com.waveset.adapter.RASecureConnection.access$700(RASecureConnection.java:53)
         at com.waveset.adapter.RASecureConnection$ReceiveThread.run(RASecureConnection.java:1080)
    </StackTrace>
                              </ResultError>
                            </ResultError>
                          </ResultItem>
                        </WavesetResult>
                      </ResourceResult>

  • ITunes crashes when doing a power search. I get a Microsoft Visual C   Runtime Library Error message: Program C:\Program Files (x86)\iTunes\iTunes.exe R6025.  Pure virtual functional call.  If I select ok, Windows 7 pops up with iTunes has stopped working

    iTunes crashes when doing a power search. I get a Microsoft Visual C   Runtime Library Error message: Program C:\Program Files (x86)\iTunes\iTunes.exe R6025.  Pure virtual functional call.  If I select ok, Windows 7 pops up with iTunes has stopped working and then it shuts iTunes down.  Anyone else every have this issue.  Any ideas on a fix?
    Thanks,

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Problem while Calling a CGI pgm From Java with code sample

    Hey guys,
    I am calling a CGI program from java servlet, while calling cgi program I am passing encoded(Base64) content via post process,
    My problem is the encoded data is not posted as expected, the encoded data is corrupting. But when I send encoded data in a text file, cgi program is perfectly decoding and working fine.
    Here I am doing Base64 encoding as per requirement, I cannot avoid this encoding.
    My doubt is about OutputStreamWriter constructor argument , In OutputStream Constructor I am passing one argument is OutputStream object and another argument is encoding type. I tried with ASCII, US-ASCII & UTF-8 .
    My code is as follows, please help me to resolve this issue.
    URL url = new URL("CGI server path");
    URLConnection urlConnection = url.openConnection();
    urlConnection.setDoOutput(true);
    OutputStream os = urlConnection.getOutputStream();
    BufferedOutputStream buffer = new BufferedOutputStream(os);
    OutputStreamWriter  writer = new
                                                   OutputStreamWriter(buffer, "US-ASCII");
    writer.write(encodedPDF-Content);
    writer.write("\r\n");
    writer.flush();
    writer.close();
    here encodedPDF-Content is String and it's size is 9565 bytes

    Whenever you read something in java into string (with Reader implementation) it expects source to contain text in encoding you specified. It then decodes it and makes 16 bit unicode string from it. Whenever you store string using Writers it does reverse operation with specified encoding (may be different than this which you used to read source) and stores text as a sequence of bytes made of 16 bit unicode string. So, passing text back and forth between programs with the help of files or I/O you can make mistake at both reading and writing encoding. Check for it.
    Now, when C programm or other application reads file it may take another assumptions about encoding or may even completly ignore it and read source as a binary file. Then, if you have a source text as a file and have to pass it to other application never do it using Reader/Writer. User raw InputStream/OutputStream instead what will preserve all information unchanged.
    here encodedPDF-Content is String and it's size is 9565 byteHow id you get this info? String.length() gets you how many chars is in it, it will be half the number of bytes. If you see your input file beeing 9565 bytes long, see my above statements.

Maybe you are looking for