FATAL ERROR in native method: Wrong method ID used to invoke a Java method

When calling the same method second time , I get message ::
<FATAL ERROR in native method: Wrong method ID used to invoke a Java method>
void myFunction(int myVal)
JNIEnv *env = NULL;
jclass odbcconnls;
jint res;
printf("\nInitilaizing class ");
res = (jvm)->AttachCurrentThread((void **)&env,NULL);
if (res < 0) {
fprintf(stderr, "Can't get Env \n");
(jvm)->DestroyJavaVM();
return SQL_ERROR;          
if(res == JNI_OK)
printf("\nThe env is initialized ");
if(*(&env) == NULL)
printf(" the env is NULL ");
printf("\nenv :::::: %s ", env);     
// the jobject (dbc->actualConn) is a global reference
odbcconnls = (env)->GetObjectClass(dbc->actualConn);
if (odbcconnls == NULL) {
goto destroy;
switch(myVal){
case 1:
jmethodID methodId ;
jboolean jbool;
SQLINTEGER Val = (SQLINTEGER )Value;
SQLINTEGER val1 = *Val;
methodId = (env)->GetMethodID( odbcconnls,"myFun1","(Z)V");
if(methodId == NULL){
goto destroy;
if(val1 == SQL_FALSE )
jbool = 0;
else
jbool =1;
env->CallVoidMethod(dbc->actualConn,methodId,jbool);
env->DeleteLocalRef((jobject)res);
env->DeleteLocalRef((jobject)odbcconnls);
env->DeleteLocalRef((jobject)methodId);
jvm->DetachCurrentThread();
return ;
case 2 :
jmethodID methodId1 ;
SQLUINTEGER* Level;
methodId1 = (env)->GetMethodID( odbcconnls,"myFun2","(I)V");
if(methodId1 == NULL){
goto destroy;
Level = (SQLUINTEGER *)Value;
env->CallVoidMethod(dbc->actualConn,methodId1,(int)*Level);
dbc->txn_isolation = (SQLUINTEGER)Value;
env->DeleteLocalRef((jobject)res);
env->DeleteLocalRef((jobject)odbcconnls);
env->DeleteLocalRef((jobject)methodId1);
jvm->DetachCurrentThread();
return ;
case 3 :
SQLCHAR* Cate;
jmethodID methodId2 ;
jstring jStrCat;
methodId2 = (env)->GetMethodID(odbcconnls,"myFun3","(Ljava/lang/String;)V");
if(methodId2 == NULL){
goto destroy;
Cate = new SQLCHAR[20];
strcpy((char *)CCatalog,(char *)Value);
jStrCat = env->NewStringUTF((char *) Cate);
printf("\n got jSTring ");
env->CallVoidMethod(dbc->actualConn,methodId2,jStrCat);
printf("\n after called method ");
int len = strlen((char *)Cate);
dbc->Cate = new SQLCHAR[len+1];
strcpy((char *)dbc->Cate,(char *)Cate);
printf("\n copied result ");
env->DeleteLocalRef((jobject)res);
env->DeleteLocalRef((jobject)odbcconnls);
env->DeleteLocalRef((jobject)methodId2);
jvm->DetachCurrentThread();
return ;
destroy:
if ((env)->ExceptionOccurred()) {
(env)->ExceptionDescribe();
jvm->DetachCurrentThread();
(jvm)->DestroyJavaVM();
return SQL_ERROR;
When case 1 is called second time this error is thrown..
plz help me..
Thanx
MittalSunita.

When calling the same method second time , I get
message ::
<FATAL ERROR in native method: Wrong method ID used
d to invoke a Java method>
void myFunction(int myVal)
JNIEnv *env = NULL;
jclass odbcconnls;
jint res;
printf("\nInitilaizing class ");
res = (jvm)->AttachCurrentThread((void **)&env,NULL);
if (res < 0) {
fprintf(stderr, "Can't get Env \n");
(jvm)->DestroyJavaVM();
return SQL_ERROR;          
if(res == JNI_OK)
printf("\nThe env is initialized ");
if(*(&env) == NULL)
printf(" the env is NULL ");
printf("\nenv :::::: %s ", env);     
// the jobject (dbc->actualConn) is a global
reference
odbcconnls = (env)->GetObjectClass(dbc->actualConn);
if (odbcconnls == NULL) {
goto destroy;
switch(myVal){
case 1:
jmethodID methodId ;
jboolean jbool;
SQLINTEGER Val = (SQLINTEGER )Value;
SQLINTEGER val1 = *Val;
methodId = (env)->GetMethodID(
( odbcconnls,"myFun1","(Z)V");
if(methodId == NULL){
goto destroy;
if(val1 == SQL_FALSE )
jbool = 0;
else
jbool =1;
env->CallVoidMethod(dbc->actualConn,methodId,jbool);
env->DeleteLocalRef((jobject)res);
env->DeleteLocalRef((jobject)odbcconnls);
env->DeleteLocalRef((jobject)methodId);
jvm->DetachCurrentThread();
return ;Why do you delete a local reference???
Did you ever call the get local reference?
case 2 :
jmethodID methodId1 ;
SQLUINTEGER* Level;
methodId1 = (env)->GetMethodID(
( odbcconnls,"myFun2","(I)V");
if(methodId1 == NULL){
goto destroy;
Level = (SQLUINTEGER *)Value;
env->CallVoidMethod(dbc->actualConn,methodId1,(int)*Le
el);
dbc->txn_isolation = (SQLUINTEGER)Value;
env->DeleteLocalRef((jobject)res);
env->DeleteLocalRef((jobject)odbcconnls);
env->DeleteLocalRef((jobject)methodId1);
jvm->DetachCurrentThread();
return ;
case 3 :
SQLCHAR* Cate;
jmethodID methodId2 ;
jstring jStrCat;
methodId2 =
(env)->GetMethodID(odbcconnls,"myFun3","(Ljava/lang/St
ing;)V");
if(methodId2 == NULL){
goto destroy;
Cate = new SQLCHAR[20];
strcpy((char *)CCatalog,(char *)Value);
jStrCat = env->NewStringUTF((char *) Cate);
printf("\n got jSTring ");
env->CallVoidMethod(dbc->actualConn,methodId2,jStrCat)
printf("\n after called method ");
int len = strlen((char *)Cate);
dbc->Cate = new SQLCHAR[len+1];
strcpy((char *)dbc->Cate,(char *)Cate);
printf("\n copied result ");
env->DeleteLocalRef((jobject)res);
env->DeleteLocalRef((jobject)odbcconnls);
env->DeleteLocalRef((jobject)methodId2);
jvm->DetachCurrentThread();
return ;
destroy:
if ((env)->ExceptionOccurred()) {
(env)->ExceptionDescribe();
jvm->DetachCurrentThread();
(jvm)->DestroyJavaVM();
return SQL_ERROR;
When case 1 is called second time this error is
thrown..
plz help me..
Thanx
MittalSunita.

Similar Messages

  • Oracle BI EE 11g – Action Framework - Invoke a Java Method from Action links

    Hello All,
       I have a requirement to save OBIEE 11g report into shared drive. I have created a EJB by using the below link and successfully deployed the application in server(bi_server1) .
    http://www.rittmanmead.com/2010/09/oracle-bi-ee-11g-action-framework-java-ejbs-and-pdf-watermarks/
    When Im trying to call Invoke a Java method, it is showing "No Content" . Can anybody please share with me the sample "ActionFrameworkConfig.xml" file used for Invoke a Java method.
    My OBIEE version is : 11.1.1.7.131017
    Thanks.

    1. check your t3 port no, in my case it's 7001.
    so i changed "<jndi-url>t3://localhost:9704</jndi-url>" to "<jndi-url>t3://localhost:7001</jndi-url>"
    2. if you run obiee 11.1.1.6.0 above, you don't need below.
    <credentialmap>oracle.bi.actions</credentialmap>
    so please drop this line.
    3. restart your server and check there's no error log when loading ActionFrameworkConfig.xml.
    Good Luck !!!

  • FATAL ERROR in native method: Wrong Method ID

    I have a piece of C code from which I am trying to launch a piece of Java, but I am having severe problems just trying to get a simple integer value returned from any Java function. I keep getting the error message "FATAL ERROR in native method: Wrong method ID used to invode a Java method"
    My C code looks like :
    JNIEnv *env;
    long result;
    jmethodID mid;
    jclass cls;
    jobjectArray args;
    jstring jstr;
    jint res;
    jobject myObj;
    options[0].optionString = "-Djava.class.path=.";
    options[1].optionString = "-Djava.compiler=NONE";
    options[2].optionString = "-verbose:jni";
    vm_args.version = JNI_VERSION_1_2;
    vm_args.options = options;
    vm_args.nOptions = 2;
    vm_args.ignoreUnrecognized = JNI_FALSE;
    // Create the Java VM
    result = JNI_CreateJavaVM(&jvm,(void **)&env, &vm_args);
    if (result == JNI_ERR )
    printf("Can't create Java VM\n");
    exit(1);
    else
    printf("Java VM created successfully\n");
    cls = (*env)->FindClass(env, "Example1");
    if (cls == 0){
    printf("Can't find Class\n");
    exit(1);
    else
    printf("Class Found\n");
    mid = (*env)->GetMethodID(env, cls, "GetIntValue", "()I" );
    if (mid == 0) {
    printf("Can't find function\n");
    exit(1);
    else
    printf("Function Found\n");
    res = (*env)->CallIntMethod(env, cls, mid);
    if (res != 0)
    char pszTempString[256] = {'\0'};
    sprintf (pszJavaString, "Returned from Java the value of %d", res);
    printf("Returned from Java with ");
    printf(pszJavaString);
    My GetMethodID call works correctly and I have checked the signature (using javap -s) and that works fine. I've seen many references on these forums about using NewObject prior to calling CallIntMethod, but if I try to use that I then get the error message "FATAL ERROR in native method: a non-constructor passed to NewObject".
    Any body got any ideas please.
    Thanks

    What I couldn't figure out from your code is where you create the java object that is supposed to return the integer to your C code.
    Alternatives:
    o This is just code snippets, and you really are creating the object.
    o Error - the object should have been created.
    o Error - it is a static method, and you should be finding a static method and calling it on a class object.
    (Other than that, I didn't see anything obviously wrong.

  • FATAL ERROR in native method

    Dear all,
    I am working on a MacOSX. I am having trouble in using a Dynamic Library generated from C files and accessed from a java project using JNI.
    The loading of the library work well bur when i try to access a method I have the following error:
    FATAL ERROR in native method: JNI received a class argument that is not a class
         at cytosolve.sbmlSolver.SBMLSolver.initSolver(Native Method)
         at cytosolve.sbmlSolver.SBMLSolver.<init>(SBMLSolver.java:87)
         at cytosolve.sbmlSolver.cytosolve.main(cytosolve.java:29)where the Native method inside the C file is the following:
    JNIEXPORT jint JNICALL
    Java_cytosolve_sbmlSolver_SBMLSolver_initSolver(JNIEnv *env, jobject obj, jstring model_filename, jdouble totalTime, jint numSteps)and it is called from the Java file as:
    int successCode = initSolver(model_filename, totalTime, numSteps);Do you have any idea on where is the problem and how to fix it?
    Thank you,
    Eva.

    Everything seems to be right. Maybe you use JNI functions inproperly?

  • Forte debugger exits (FATAL ERROR in native method: JDWP "util.c")

    When debugging my GUI app in Forte on Solaris 8, my debug session exits with the following error:
    FATAL ERROR in native method: JDWP "util.c" (Feb 20 2002), line 1029: Unexpected error, error code = 113 (JVMDI_ERROR_INTERNAL)
    It seems to do so while in the middle of a comm api routine where I'm accessing the serial port. Has anyone else ever seen this error is Solaris? I have all of the patches required by Sun for JDK1.3.1_02 installed with the same version of the JDK.
    The application runs fine when I run it standalone...
    Any suggestions?
    Thanks.

    I've had the same problem. It appears that it occures when an error is thrown that stop a JSP page load.
    Everything will run find up to that point, but after that, the util.c error will not go away except by deinstall and reinstall of Forte. We can't even use Forte at this point since it will start throwing the error within 1 hour of reinstall. Crap.
    I'm on Windows XP also, and this happens with JVM 1.3 or 1.4.

  • Obiee 11.1.1.6  Actions- Invoke a Java Method screen is empty

    Hi All,
    I have created and deployed an EJB for obiee11g by using the example provided in the below link
    http://www.rittmanmead.com/2010/09/oracle-bi-ee-11g-action-framework-java-ejbs-and-pdf-watermarks/
    I have mapped oracle.bi.actions also
    But I am not able to see the java method in the obiee11g Actions- Invoke a Java Method screen .The screen is empty
    I have configured the ActionFrameworkConfig.xml as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <obi-action-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="afconfig.xsd">
    <aliases/>
    <registries>
    <registry>
    <id>reg05</id>
    <name>WaterMark EJBS</name>
    <content-type>java</content-type>
    <provider-class>oracle.bi.action.registry.java.EJBRegistry</provider-class>
    <description>WaterMark BIEE</description>
    <location>
    <path/>
    </location>
    <custom-config>
    <ejb-targets>
    <appserver>
    <context-factory>weblogic.jndi.WLInitialContextFactory</context-factory>
    <jndi-url>t3://localhost:9704</jndi-url>
    <server-name>localhost</server-name>
    <account>WLSJNDI</account>
    <ejb-exclude>mgmt</ejb-exclude>
    <ejb-exclude>PopulationServiceBean</ejb-exclude>
    </appserver>
    <ejb-app>
    <server>localhost</server>
    <app-context>watermark</app-context>
    </ejb-app>
    </ejb-targets>
    </custom-config>
    </registry>
    </registries>
    <content-types>
    <content-type>
    <typename>webservices</typename>
    <displayname>Web Services and BPEL Processes</displayname>
    <actionType>WebServiceActionType</actionType>
    </content-type>
    <content-type>
    <typename>misc</typename>
    <displayname>Mixed Services</displayname>
    <actionType>URLActionType</actionType>
    </content-type>
    <content-type>
    <typename>java</typename>
    <displayname>Java Services</displayname>
    <actionType>JavaActionType</actionType>
    </content-type>
    </content-types>
    <accounts>
    <account>
    <name>WLSJNDI</name>
    <description>Account used to access WLS JNDI.</description>
    <adminonly>false</adminonly>
    <credentialkey>JNDIUser</credentialkey>
    <credentialmap>oracle.bi.actions</credentialmap>
    </account>
    </accounts>
    </obi-action-config>
    Please help me to resolve this issue
    Regards
    Deepz

    1. check your t3 port no, in my case it's 7001.
    so i changed "<jndi-url>t3://localhost:9704</jndi-url>" to "<jndi-url>t3://localhost:7001</jndi-url>"
    2. if you run obiee 11.1.1.6.0 above, you don't need below.
    <credentialmap>oracle.bi.actions</credentialmap>
    so please drop this line.
    3. restart your server and check there's no error log when loading ActionFrameworkConfig.xml.
    Good Luck !!!

  • How to Invoke two java methods parallaly

    Hi,
    I need to invoke two Java methods parallaly ,for example if i am having two methods in a class
    public class Test {
        public Test() {
        public static void main(String[] args)
        Test test = new Test();
        String returnString1 = test.test1();
        String returnString2 = test.test2();
        public String test1(){
        String newString1 = "";
        return newString1;
        public String test2(){
        String newString2 = "";
        return newString2;
    }if i run the above class two methods will be invoked one by one(Sequentially).is there any possibility to invoke these two methods parallaly (ie) both methods need to be invoked at the same time.

    import java.lang.reflect.Method;
    class Paralell implements Runnable{
          private Object srcObject;
          private String methodName;
          private Class parameterTypes[];
          private Object parameterArgs[];
          private Object returnObject;
          public Paralell(Object srcObject, String methodName, Class parameterTypes[], Object parameterArgs[]){
              this.srcObject = srcObject;
              this.methodName = methodName;
              this.parameterTypes = parameterTypes;
              this.parameterArgs = parameterArgs;
          public Object getReturnObject(){
             return this.returnObject;
          public void run(){
               Method method = null;
                try{
                    method =  srcObject.getClass().getDeclaredMethod(this.methodName,this.parameterTypes);
                    this.returnObject =method.invoke(this.srcObject,this.parameterArgs);  
                }catch(Exception exp){
                   exp.printStackTrace();
                }finally{
                    method = null;
    }

  • Graphing engine is not responding.A fatal error occurred while processing the request. The server responded with: java.lang.NumberFormatException.

    Dear Team,
    I have implemented OBIA 7964 for HRA. Some reports throw the error Graphing engine is not responding.A fatal error occurred while processing the request. The server responded with: java.lang.NumberFormatException. It is not happened all reports. Only some of the reports showed this kind of error. Kindly help me to resolve this issue.
    We have used
    OBIA 7964
    OBIEE 11.1.1.7.140527
    Thanks & Regards,
    Gauthaman S

    Issue was, Font been defined as 7.5 (may be font size decimal not supported ).the problem solved

  • Using Arrays in external Java Methods

    Hello,
    I want to write an external Java Method. The method should access an Attribute. The Attribute should store an array of strings (e.g. {"value1", "value2", "..."}).
    Is there a possibility to store a stringarray in an Attribute? How could I access the different values in the external Java Method?
    Thanks for your help.
    Benedikt

    Benedikt,
    I don't think you can.
    But why don't you use a java.util.StringTokenizer object instead ?
    If I look in the workflow db, a value of an attribute is defined as varchar2(4000), so that should give you enough space.
    Grtz,
    Chris.

  • Invoking a Java Method from Peoplecode

    Hello,
    We are tasked to do a Single Sign On from a third-party to PeopleSoft HRHD using 3DES encryption method based from the email of the user from the third party. We managed to get the java program that was used to encrypt the email and use this to process the decryption on the Peoplesoft side.
    First, are we correct in enabling the SignOn Peoplecode and then creating a Record Peoplecode that process the encrypted string that was passed via the URL?
    Supposing we are correct in this first step, how do we call this java method? We have placed the java class in the PS_HOME/appserv/classes directory and we are somehow stuck on this part of the Peoplecode.
    <Peoplecode>
    &oDecrypt = CreateJavaObject("SSOCrpyto");
    &strDecEmail=&oDecrypt.decryptString(&strEncEmail);
    The decryptString part of the Java class is constructed like this.
    public String decryptString(byte[] message) throws Exception {
    ...code here...
    We are not familiar on how the parameter is passed when the datatype in java is an array of byte[] (If I understood it correctly).
    Thank you.
    Jeremy Leung
    Edited by: 934351 on May 15, 2012 12:36 AM

    Hello Hakan and Jim. Thank you for your replies. I, however, was wondering where do the method decryptString come in, in the Peoplecode? Pardon me if I post the entire Java class here. I am not very well-versed with the Java language, but upon reading most Java-related programs regarding Encryption/Decryption they are identical with the Java class pasted below.
    import java.security.MessageDigest;
    import javax.crypto.Cipher;
    import javax.crypto.SecretKey;
    import javax.crypto.spec.IvParameterSpec;
    import javax.crypto.spec.SecretKeySpec;
    public class SAPSSOCrypto {
         public byte[] encrypt(String message) throws Exception {
              final MessageDigest md = MessageDigest.getInstance("md5");
              final byte[] digestOfPassword =
                   md.digest("password".getBytes("utf-8"));
              final byte[] keyBytes = new byte[24];//Arrays.copyOf(digestOfPassword, 24);
              System.arraycopy(digestOfPassword,0,keyBytes,0,digestOfPassword.length);
              for (int j = 0, k = 16; j < 8;) {
                   keyBytes[k++] = keyBytes[j++];
              final SecretKey key = new SecretKeySpec(keyBytes, "DESede");
              final IvParameterSpec iv = new IvParameterSpec(new byte[8]);
              final Cipher cipher = Cipher.getInstance("DESede/CBC/PKCS5Padding");
              cipher.init(Cipher.ENCRYPT_MODE, key, iv);
              final byte[] plainTextBytes = message.getBytes("utf-8");
              final byte[] cipherText = cipher.doFinal(plainTextBytes);
              // final String encodedCipherText = new sun.misc.BASE64Encoder()
              // .encode(cipherText);
              return cipherText;
         public String decryptString(byte[] message) throws Exception {
              final MessageDigest md = MessageDigest.getInstance("md5");
              final byte[] digestOfPassword =
                   md.digest("password".getBytes("utf-8"));
              final byte[] keyBytes = new byte[24]; //Arrays.copyOf(digestOfPassword, 24);
              System.arraycopy(digestOfPassword,0,keyBytes,0,digestOfPassword.length);
              for (int j = 0, k = 16; j < 8;) {
                   keyBytes[k++] = keyBytes[j++];
              final SecretKey key = new SecretKeySpec(keyBytes, "DESede");
              final IvParameterSpec iv = new IvParameterSpec(new byte[8]);
              final Cipher decipher = Cipher.getInstance("DESede/CBC/PKCS5Padding");
              decipher.init(Cipher.DECRYPT_MODE, key, iv);
              // final byte[] encData = new // sun.misc.BASE64Decoder().decodeBuffer(message);
              final byte[] plainText = decipher.doFinal(message);
              return new String(plainText, "UTF-8");
    }

  • FATAL ERROR in native method: Non-array passed to JNI array operations

    After stepping up to JDK 1.4.2 we started getting a hotspot error, I added -Xcheck:jni and it yielded the above error which was not existent in JDK 1.4.1 and for the life of me I cannot find out whats wrong:
    Native method dec:
    private native byte[] cost(final byte[] byte_array,
    final double minCostPerMeter,
    final int costFuncSelection,
    final double maxCostThreshold);
    Method call:
    ByteArrayInputStream
    inputByteStream = new ByteArrayInputStream(
    cost(output_byte_stream.toByteArray(),
    minCostPerMeter,
    costFunctionSelection.length,
    maxCostThreshold));
    An array is being passed I have no idea why it is complaing about the method call.
    Any help would be appreciated.
    -R

    What happens if you remove all the code from the JNI method - so it just calls and then returns?
    If it still occurs then I would expect that you have a memory problem in a piece of code before this one. Such problems can have no impact when run in one environment but cause failures in another becomes some other legitimate piece of data moved.
    If it doesn't then I would expect that the problem is in the method itself and not the call.
    It could be some odd VM problem so trying a different version of 1.4.2 might help (but in of itself would not eliminate the possibility that you have a memory problem.)

  • FATAL ERROR in native method: JNI call made with exception pending

    Hi everyone,
    I am trying to resolve this error exhaustively for the last 3 days.
    I have a 3rd Party DLL library which i am supposed to use from my Java Application. I compiled my own DLL that links(calls methods) the Java code and the the 3rd party DLLs.
    It works fine in my machine and 2 of my other colleagues but does work for the QA tester. The JVM crashes when it comes to the point of loading the DLL with the exception mentioned above.
    For the QA tester, a version of the DLL made in VC7.1 works fine, but the one we are trying to load was made in VC80.
    It also has the dependency dll like msvcr80.dll and msvcp80.dll
    We both have Windows XP and same the JVM (1.4)
    Please Help !!!!!!!
    Thanks,
    Zuber

    I would suggest further investigation of dependencies. If the QA machine doesn't have VC 8 check what the diffs are there.
    Jim

  • Problem when using XSLT Mapping with Java Methods.

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:javamap="java:at.pi.mapping.besoldung.BesoldungMapping">
         <xsl:template match="Messages">
              <Messages>
                   <Message1>
                        <xsl:apply-templates></xsl:apply-templates>
                   </Message1>
              </Messages>
         </xsl:template>
         <xsl:template match="Message1">
              <test></test>
              <xsl:param name="inputparam"></xsl:param>
              <xsl:for-each select="MT_BesoldungConversions">
                   <test1></test1>
                   <!-- Prüfen ob die subtractDates Methode verfügbar ist -->
                   <xsl:if test="function-available('javamap:createWhitespace')">
                        <xsl:if test="function-available('javamap:extendTextWithWhitespaces')">
                             <MT_BesoldungOut>
                                  <EDI_DC40>
                                       <xsl:param name="tablename">
                                            <xsl:value-of select="tablename"></xsl:value-of>
                                       </xsl:param>
                                       <xsl:variable name="constTen">10</xsl:variable>
                                       <xsl:value-of select="javamap:extendTextWithWhitespaces($tablename,$tablename, $inputparam)"></xsl:value-of>
                                  </EDI_DC40>
                             </MT_BesoldungOut>
                        </xsl:if>
                   </xsl:if>
              </xsl:for-each>
         </xsl:template>
    </xsl:stylesheet>

    incomplete post

  • JDWP fatal error from thread.stop()

    I get this message
    FATAL ERROR in native method: JDWP "util.c" (Jan 20 2004), line 1209: Unexpected error, error code = 113 (JVMDI_ERROR_INTERNAL)
    from the target VM when I do thread.stop() on the debugger side. The debugger isn't bothered by the fatal error, but the target dies.
    Can anyone offer a clue to what I did wrong?
    Peter

    FATAL ERROR in native method: JDWP "util.c" (Jan 20
    2004), line 1209: Unexpected error, error code = 113
    (JVMDI_ERROR_INTERNAL)
    from the target VM when I do thread.stop() on the
    debugger side. The debugger isn't bothered by the
    fatal error, but the target dies.
    Can anyone offer a clue to what I did wrong?Lets see... "Jan 20 2004" implies that you are using the Tiger (1.5)
    beta release for this experiment.
    According to the JDWP spec:
    http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdwp/jdwp-protocol.html
    Error 113 is "An unexpected internal error has occurred"
    More information, please...
    - What platform are you running on, and what version(s) of the VM
    are you using?
    - Which thread in the debugee did you send the stop() to?
    - Can you update this article with sample code and a narrative
    describing what happened when?
    - What throwable did you pass to com.sun.jdi.ThreadReference.stop(ObjectReference throwable)

  • JDeveloper & Debug : FATAL ERROR

    Hello,
    when i try to debug any project in JDeveloper, i got the following error:
    FATAL ERROR in native method: No transports initialized
    Transport dt_socket failed to initialize, rc = 509.
    Process exited with exit code 1.
    Debugger unable to connect to local process.
    I allready reinstall JDeveloper in JDK, but no luck. Please, help. Thank you.

    hello,
    i am also getting the erro while executing project on jdeveloper using ejb and jpa entities the error is as follows :
    [EclipseLink/JPA Client] Adding Java options: -javaagent:C:\middleware\jdeveloper\..\modules\org.eclipse.persistence_1.0.0.0_2-1.jar
    c:\middleware\jdk160_21\bin\javaw.exe -client -classpath C:\Users\eaurgta\Documents\JDeveloper\mywork\cab_ejb_jpa_app\.adf;C:\Users\eaurgta\Documents\JDeveloper\mywork\cab_ejb_jpa_app\cabejbmodel\classes;C:\middleware\modules\com.oracle.toplink_1.0.0.0_11-1-1-4-0.jar;C:\middleware\modules\org.eclipse.persistence_1.0.0.0_2-1.jar;C:\middleware\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\middleware\oracle_common\modules\oracle.toplink_11.1.1\javax.persistence_2.0_preview.jar;C:\middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\middleware\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;C:\middleware\modules\javax.jsf_1.1.0.0_1-2.jar;C:\middleware\modules\javax.ejb_3.0.1.jar;C:\middleware\modules\javax.enterprise.deploy_1.2.jar;C:\middleware\modules\javax.interceptor_1.0.jar;C:\middleware\modules\javax.jms_1.1.1.jar;C:\middleware\modules\javax.jsp_1.2.0.0_2-1.jar;C:\middleware\modules\javax.jws_2.0.jar;C:\middleware\modules\javax.activation_1.1.0.0_1-1.jar;C:\middleware\modules\javax.mail_1.1.0.0_1-4-1.jar;C:\middleware\modules\javax.xml.soap_1.3.1.0.jar;C:\middleware\modules\javax.xml.rpc_1.2.1.jar;C:\middleware\modules\javax.xml.ws_2.1.1.jar;C:\middleware\modules\javax.management.j2ee_1.0.jar;C:\middleware\modules\javax.resource_1.5.1.jar;C:\middleware\modules\javax.servlet_1.0.0.0_2-5.jar;C:\middleware\modules\javax.transaction_1.0.0.0_1-1.jar;C:\middleware\modules\javax.xml.stream_1.1.1.0.jar;C:\middleware\modules\javax.security.jacc_1.0.0.0_1-1.jar;C:\middleware\modules\javax.xml.registry_1.0.0.0_1-0.jar;C:\middleware\modules\javax.persistence_1.0.0.0_1-0-2.jar;C:\middleware\wlserver_10.3\server\lib\weblogic.jar -Djavax.net.ssl.trustStore=C:\middleware\wlserver_10.3\server\lib\DemoTrust.jks -javaagent:C:\middleware\jdeveloper\..\modules\org.eclipse.persistence_1.0.0.0_2-1.jar oracle.cab_facadeClient
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
         at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializerAgent.initializeFromAgent(JavaSECMPInitializerAgent.java:45)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializerAgent.premain(JavaSECMPInitializerAgent.java:38)
         ... 6 more
    Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [cabejbmodel] failed.
    Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class oracle.T76] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1014)
         at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(JPAInitializer.java:88)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:256)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:216)
         at org.eclipse.persistence.internal.jpa.deployment.JavaSECMPInitializer.initializeFromAgent(JavaSECMPInitializer.java:159)
         ... 12 more
    Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [cabejbmodel] failed.
    Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class oracle.T76] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:210)
         ... 17 more
    Caused by: Exception [EclipseLink-7161] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Entity class [class oracle.T76] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy.
         at org.eclipse.persistence.exceptions.ValidationException.noPrimaryKeyAnnotationsFound(ValidationException.java:1374)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.validatePrimaryKey(EntityAccessor.java:1366)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.processAccessors(EntityAccessor.java:885)
         at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.process(EntityAccessor.java:691)
         at org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processStage2(MetadataProject.java:1531)
         at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:474)
         at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:441)
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:968)
         ... 16 more
    FATAL ERROR in native method: processing of -javaagent failed
    Exception in thread "main" Process exited with exit code 1.
    thanks and regards
    ankur

Maybe you are looking for

  • Can you delete an Apple ID?, Can you delete an Apple ID?

    I have an Apple ID but I had forgotten my password so my mom made me another and I found my password for my first account. I would like to delete my new one. Is there any way I can do that?

  • How to put main process to sleep??

    Hi experts I have another problem in my ajav application , When I press execute button, it creates a process which run a bat file. the bat file actuallty run something and produce the output file. then main process read that output file and show the

  • Can' extract the bootcamp .exe file?

    I'm not able to extract the .exe file (http://support.apple.com/kb/DL996) so I can update my 3.0.1 boot camp to 3.1. I'm I doing something wrong? I thought Unarchiver would be able to extract exe-files? Is there another way to update boot camp (i do

  • How to track ipod touch that was stolen?

    how to track ipod touch that was stolen?

  • Various VPLS Mode

    Hi, I would like to know various types or mode of VPLS. As per Cisco standerds its: Port mode and VLAN mode. Now I would like to know if I can use the PE interface connected to CE as a trunk interface and carry all customer VLAN via that port? Instre