Java process quits while trying to create the instance of COM Object

Hi All,
I have a dll file with some API defined. I am trying to use that API using java, so i created a java file with native methods. and created a cpp file in which i am trying to create the instance of the dll file using CreateInstance(__uuidof) method. But the problem is, when the native call tries to execute the CreateInstance(__uuidof) line, jvm quits abruptly, Please suggests me where i am wrong.
Thanks in advance,

Be sure that in the current thread you call CoInitialize or CoInitializeEx and on exit Thread you call CoUninitialize.

Similar Messages

  • When i try to open logic x i get a message sayingLogic Pro X unexpectedly quit while trying to use the Audio Unit "Kontakt 4" by "Native Instruments". This plug-in may require an update. how can i fix that?

    when i try to open logic x i get a message sayingLogic Pro X unexpectedly quit while trying to use the Audio Unit “Kontakt 4” by “Native Instruments”. This plug-in may require an update. how can i fix that?

    Update the plugin or delete it. 
    Kontakt 4 is a 32 bit plugin, it won't run in Logic Pro X
    You need Kontakt 5

  • Getting error while trying to create the push certificate...

    I am getting the following error while trying to create a push certificate for the mdm from the apple site.
    Certificate Signature Verification failed because the signature  is invalid.
    I am mdm vendor as well as the customer. I did the following steps.
    openssl x509 -inform der -in mdm_identity.cer -out mdm.pem
    openssl x509 -inform der -in AppleWWDRCA.cer -out intermediate.pem
    openssl x509 -inform der -in AppleIncRootCertificate.cer -out root.pem
    openssl req -inform pem -outform der -in customer.csr -out customer.der
    created the plist_encoded file using a java program which uses the "SHA1WthRSA"
    When i tried to upload the plist_encoded file to the apple site (https://identity.apple.com/pushcert/), it creates a file with the following error
    {"ErrorCode":-80018,"ErrorMessage":"Certificate Signature Verification failed","ErrorDescription":"Certificate Signature Verification failed because the <a href=\"http://www.apple.com/business/mdm\" target=\"_blank\">signature<\/a> is invalid."}
    Any help would be greatly appreciated....

    Please see the solution in (The Descriptive Flexfield With Application Name Receivables (AR) and Name Party Site Information (HZ_PARTY_SITES) Is Not Frozen [ID 743262.1]).
    Thanks,
    Hussein

  • Java.security.AccessControlException while trying to run the server app

    ok, pretty new with java and rmi, so I wanted to run the application from the sun rmi tutorial
    http://java.sun.com/docs/books/tutorial/rmi/TOC.html.
    It all builds ok, i run the rmiregistry ,but when i try to run the server i get :
    java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
         at java.security.AccessController.checkPermission(AccessController.java:546)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
         at java.net.Socket.connect(Socket.java:513)
         at java.net.Socket.connect(Socket.java:469)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:180)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
         at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
         at engine.ComputeEngine.main(ComputeEngine.java:30)
    what i noticed is that this output is similar to not running rmiregistry at all, so i guess the problem is with the way i'm running rmiregistry
    thx in advance

    You're running the server with a SecurityManager. There's no need to do that at first. Get rid of it. When you have it working, write yourself a .policy file that grants that permission, and any others you discover it needs, and name that as your security policy file, e.g.
    java -Djava.security.policy=my.policy -Djava.security.manager mypackage.MyServer ...

  • "No active legal regulations found for country US "  while trying to create the Customs Import Declaration

    Dear Experts,
    As part of creating Customs Import Declaration manually, when I selected the FTO and try to use create button I am getting error message .
    Can you please help me in this regard .
    No active legal regulations found for country US
    Ram

    Hi Ram,
    As the error message straight away tells , you need to activate Legal Regulation for Customs Management ( in standard case, it will be ACE) for US country through the below path:
    SPRO-->SAP Global Trade Services-->Customs Management-->Activate Leagl Regulation for Customs Management at Country/Country Group level
    In case of any further queries, please let me know it.
    Regards,
    Aman

  • While trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'

    Hi,
    Our PI is getting data from WebSphere MQ and pushing to SAP. So our sender CC is JMS and receiver is Proxy. Our PI version is 7.31.
    Our connectivity between the MQ is success but getting the following error while trying to read the payload.
    Text: TxManagerFilter received an error:
    [EXCEPTION]
    java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'
           at com.sap.aii.adapter.jms.core.channel.filter.ConvertJmsMessageToBinaryFilter.filter(ConvertJmsMessageToBinaryFilter.java:73)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
           at com.sap.aii.adapter.jms.core.channel.filter.InboundDuplicateCheckFilter.filter(InboundDuplicateCheckFilter.java:348)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
    I have searched SDN but couldn't fix it. Please provide your suggestion.
    With Regards
    Amarnath M

    Hi Amarnath,
    Where exactly you are getting this error?
    If you are getting at JMS Sender communication channel, try to stop and start the JMS communication channel and see the status, also use XPI Inspector to get the exact error log.
    for reference follow below blogs:
    Michal's PI tips: ActiveMQ - JMS - topics with SAP PI 7.3
    Michal's PI tips: XPI inspector - help OSS and yourself
    XPI Inspector

  • Odata JDBC Service: getting NullPointerException: while trying to invoke the method

    Hi,
    I am testing OData, for that I followed the steps given in this tutorial:
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/06/10/creating-an-odata-service-based-on-sap-gateway-soap-jdbc-and-jpa-data-sources-ba
    It wasn't working as it should, so to understand it better, I created a new project with Stock table only.
    Manually entered all it's properties and then deploy it.
    Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
    Where as I need to enter: org.apache.derby.jdbc.ClientDriver.
    Issue 2: I can't test the connection from here, weather it's working fine or not ?
    Issue 3:
    When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception.
    URL: http://localhost:8080/gateway/odata/sap/WSTest1;v=1
    Response:
    <?xml version="1.0" encoding="utf-8"?>
    <service xml:base="http://localhost:8080/gateway/odata/sap/WSTest1;v=1/" xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom">
      <workspace>
       <atom:title>Default</atom:title>
       <collection href="StockSet">
       <atom:title>StockSet</atom:title>
       </collection>
      </workspace>
    </service>
    Now I need to run StockSet, so next url to access the stock list,
    to get stocks:
    http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
    Now I get the following response:
        <?xml version="1.0" ?>
        <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
        <code>
        </code>
        <message xml:lang="en">java.lang.NullPointerException: while trying to invoke the method java.lang.Object.hashCode() of a null object loaded from local variable 'k'</message>
        </error>
    I am not able to figure out, why I am getting this error and how to fix it.
    All I want is to create a ODAta on ESPM_STOCK sample table given in example.
    Looking forward to hear from you.
    Thanks.

    Waqas Sadiq
    Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
    Are you working on SMP3.0 (lower version than SP03)?
    If yes, then there is character restriction in SMP3.0 (SP00, SP01), maximum length for a database driver is 25 characters.
    e.g. if driver name is oracle.jdbc.driver.OracleDriver but when you enter this, then you will see onlyoracle.jdbc.driver.Oracle
    Until unless we pass the correct driver value things will not work. there is a workaround for this. You create a desitnation with restricted character length.
    You would be seeing a property file for each created destination underC:\SAP\MobilePlatform3\Server\config_master\service.destinations\destinations
    Go there and open the created "OracleDB" and edit the "DriverName" to the full string:oracle.jdbc.driver.OracleDriver
    Please go through this blog for more understanding:
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/01/09/how-to-connect-an-oracle-db-with-integration-gateway-in-smp3
    Note: seems this problem has been resolved in SMP3 SP03
    Issue 2: I can't test the connection from here, weather it's working fine or not ?
    I didnt find a way to test a destination. So you have to be sure about what all values you are entering.
    Once you are done with Destination creation, map it to the respective deployed service under "services" tab.
    Issue 3: When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception
    Make sure you have corrected "Database driver" name manually. And then check if you are facing same issue.
    Does this URL expect any input parameters?
    http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
    Regards,
    JK

  • Issue while trying to create Sales Order from Inbound Idoc ORDER05

    Hi All,
    I am trying to create a sales order through an Inbound idoc ORDERS05 created out of a Purchase order. The header pricing conditions from the Purchase orders gets populated in E1EDK05 segment and this needs to go to the Sales order header conditions while trying to create the Sales order.
    But when the fields are getting incorrectly mapped to the Sales order. Issue  being, the segment E1EDK05-BETRG contains the condition value. But this fields gets populated to the KOMV-KWERT (condition value) screen field on the Sales order header conditions. But this should have got mapped to field KOMV-KBETR (Rate). If I look at the Purchase order, E1EDK05-BETRG is the field getting fetched from field KOMV-KBETR on the Purchase order. So this should have correspondingly got mapped to KOMV-KBETR on the Sales order as well.
    This looks like a standard behavior. But if any of you have encountered this issue before please let me know if any Correction instructions are available for the same. If this some issue in Pricing conditions configuration, do let me know.

    Hi Paaavan
    You can set a break-point include "FV45PFAP_VBAP_BEARBEITEN_VORBE" that is called by both the SAP Standard and BAPI where the data is prepared and checked in the internal table XVBAP. Compare both SAP standard VA01 and your 'Z' program for what may be different in XVBAP.
    I think the problem my be with regards to the business_object number that is hardcoded in the standard function module. It has given me issues before and hence I tend to use the function module  SD_SALESDOCUMENT_CREATE to create sales documents with.
    Regards,
    Marius

  • Getting an error msg while trying to run the java class from CMC

    Hi All,
    I am getting an error, while trying to run the java .class file, that which is imoported into CMC.
    Error msg:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at com.crystaldecisions.sdk.plugin.desktop.program.internal.ProgramWrapper.main(ProgramWrapper.java:49)
    I have imported .class file into CMC and trying to invoke the .class file by another java program from eclipse..When i tried to invoke the .class in cmc, i am getting an error msg, mentioned above. I thought there might be version conflict. So i changed the java complier version to 1.5 in my Eclipse. After that is done again i am facing the same problem.
    Can anyone help me to resolve this issue?
    Thanks in Advance.

    i have installed BO SDK 3.1 , Service pack 3. It comes woth JDK 1.5 version. i have not done any chnages to it. I impoprted all the jar files related to BO into eclipse.
    1)  Actually, i am writing java code on eclipse. When i run code from the eclipse, it creates a session to cmc and creates folder structure what i need.
    2)  But the thing is, that code needs to run, when i import the .class file into cmc. The process how i imported the .class file to cmc.
    Manage> Add> Program File-->Java (Check Box). In this way i added java class file from the eclipse workspace (class file from the bin directory).
    3) So when i run the .class file externally by another java program or also when i log in to CMC and run that .class file, the instance shows sucess, but when i see the logfile i am getting an exception that which i mentioned above.
    If my method is worng can you please let me know the stepts how to run java program in cmc.
    Thanks in Advance

  • My iPhoto is not working, it quit unexpecly and it shows this message- The application "iPhoto" unexpectedly quit while trying to restore its windows.  Do you want to try to restore its windows again?

    i can't open my iPhoto, it was working very slow and now its not working at all, when i try to open it it shows this message: The application “iPhoto” unexpectedly quit while trying to restore its windows.  Do you want to try to restore its windows again?
    how can i fix this problem?

    There are 9 different versions of iPhoto and they run on 10 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • Approval task SP09: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'

    Hi everyone,
    I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
    I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
    ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
    And the notifications configured on approval task does not start either.
    The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
    I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
    Has anyone passed trough this situation in SP09?
    I think there is an issue with the runtime components delivered with this initial package of SP09.
    Suggestions?

    Hi Kelvin,2016081
    The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
    For more info about the issue and the patch please refer to SAPNote 2016081.
    @Michael Penn - I might be able to assist if you provide the ticket number
    Cheers,
    Kristiyan
    IdM Development

  • Concurrency Visualizer Extension (VS2013): "An unknown error occurred while trying to start the collection process."

    Not sure if this is the right place to ask about this but since my question concerns an extension I'll give it a shot.
    I'm trying to use the Visual Studio 2013 Concurrency Visualizer extension to debug a simple test console application. I've set executive paging to disabled in the registry as it directed and hit "add SDK to project" in the concurrency
    visualizer menu options. And of course, restarted my computer to apply the settings. When I try to "start [the concurrency visualizer] with current project" I get an error popup:
    "An unknown error occurred while trying to start the collection process."
    I really need the concurrency profiling to start debugging contention in my multithreaded application. Prompt assistance would be much appreciated.

    Hi,
    This forum is to discuss and ask questions about extending and integrating with Visual Studio (using the Extension Manager, building VSX containers for deployment, Visual Studio SDK, and more), Visual Studio Online (REST APIs, service hooks, and OAuth),
    and Team Foundation Server.
    You have problems when using Concurrency Visualizer Extension, please ask in
    the page under "Q AND A". Since Concurrency Visualizer is a diagnostic tool, you can post this issue in
    Visual Studio Diagnostics (Debugger, Profiler, IntelliTrace) forum too.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Restore windows is the headline.the application "finder" unexpectedly quit while trying to restore its windows.do you want to restore its windows again? i clicked restore windows option which is showed on the monitor and jumping repeatedly .pleas solve it

    restore windows is the headline.the application "finder" unexpectedly quit while trying to restore its windows.do you want to restore its windows again?this message showing on monitor. i clicked restore windows option which is showed on the monitor and jumping repeatedly .please tell me how can i solve it?

    Selecting the "No" button will tell Finder not to try and reopen the windows.

  • How do I get iTunes back when I get the error message ; the application "I Tunes" unexpectedly quit while trying to restore it's windows. Do you want to restore it's windows?

    how do I get ITunes back when I get the error message :
    The application "ITunes" unexpectedly quit while trying to restore it's windows.  Do you want to restore it's windows?
    I already tried reloading ITunes and it still doesn't startup.

    You didn't mention but are you still running a version of iPhoto older than iPhoto 11?
    If yes, then go to the App Store and purchase the iP 11 app and install it. Back up your photo library first.
    Once iP 11 is installed and has imported all your photos do a restart of the Mac.
    This should resolve most issues with iTunes 10.6 and you should be able to run iTunes and sync up your iOS devices.

  • The application 'Finder' unexpectedly quit while trying to restore its windows.

    Hello All.  I solicit your help and advice please. 
    When I started up on my Macbook Pro (v10.7.5) this morning the Finder icon was flashing along with a flashing message that states "Restore Windows.  The application 'Finder' unexpectedly quit while trying to restore its windows.  Do you want to try to restore its windows again?"  This has never happened before.
    Unfortunately, when I try to select "Restore Windows", it will not respond and keeps flashing.  I shut down and tryed a restart but the same thing has happened and I have now lost my Desktop icons and screensaver.  Can anyone help me?  Thanks very much!
    <Re-Titled By Host>

    Hello Brody, and Thank you for responding. 
    I have been on the phone with Apple Support for awhile and they cannot completely diagnose the problem after many attempts at deleting plist files, etc.  This one has them scratching their heads a bit (I must say they have been Excellent with their time and effort). 
    We have reesatblished "Finder" operationally and I have been able to restore and access most files but the problem was resident on the Deskstop I may have to visit the "Genius Desk" for follow-up as necessary.
    I much appreciate your response and am very glad for the Community.  Thank you again.

Maybe you are looking for