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.
Similar Messages
-
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.
ThanksWhat 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. -
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?
-
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. -
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.
-RWhat 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,
ZuberI would suggest further investigation of dependencies. If the QA machine doesn't have VC 8 check what the diffs are there.
Jim -
ERROR_WAIT_NO_CHILDREN error while native method calling
I have some self-made DLL and call it from Java over JNI.
Under 100% repeatable conditions, the calling of the native method conduce to
java.exe(JVM) termination with errorlevel 128L. Without any trace or reports.
If to assume, that java.exe uses OS error codes, then 128L is
'ERROR_WAIT_NO_CHILDREN - There are no child processes to wait for.'
What that? JVM crashed by the Dll?
Some additional information:
I found the position(approximately) in C code where the execution is stopping.
It far from JNI/C function declaration.
Dll is compiled by Watcom C/C++32 Compiler and Linker, Version 11.0.
I tried to compile Dll by Borland C++ 5.5.1 free command-line compiler, and error
disappears. But I don't think it right way to refer the error to compiler.
And something else. Native code work fine, if it was called not from Java but
from native application.
Any ideas?
Thanks.Hmm, could You send the header of the method from Your
DLL which you are calling from Java?Sure.
JNIEXPORT jint JNICALL Java_mypackage_NativeBuilder_build
(JNIEnv *env, jobject obj, jstring project) -
HI
I declared a static native method in a class and using the System.loadLibrary() method i load the dll.
Now if i want to call the method from another class using instance of that class where i declare the native method, it shows an error
java.lang.SpecifiedPathLink error. I have put the dll outside the package in the same directory.
can anyone help me regarding this problemit shows this exception
Exception in thread "main" java.lang.UnsatisfiedLinkError: no PerfMonitor in jav
a.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at C3.CPUMemoryUsage.<clinit>(CPUMemoryUsage.java:6)
at C3.Node.main(Node.java:18) -
Forte Debugger crashes in Solaris 8 on Sparc
Just did a brand new install of Forte4J 3 on my Sparc Ultra 30 and am experiencing a crash problem while debugging my swing application. The debug process exits intermittently although when the code is executed standalone it runs fine. The error thrown is:
FATAL ERROR in native method: JDWP "util.c" (Feb 20 2002), line 1029: Unexpected error, error code = 113 (JVMDI_ERROR_INTERNAL)
Has anyone else experienced this?Well, looks like I didn't have an OS patch installed correctly. After re-installing all of the listed patches required, the crash stopped happening.
When all else fails, RTFM. -
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?
PeterFATAL 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 -
JNI Unsatisfied Link Error at Runtime on Native method
I wnat USe C functionality In My Java Program so that I Use JNI.In My Java Program i use dll file of c program using System.load("");.when iam compiling my Java Program it works Fine But When Iam Run My Java Program It Displays Unsatisfied Lik Error on Native method oh C Program.
RAGHUKUMAR_KOLIKINENI wrote:
I wnat USe C functionality In My Java Program so that I Use JNI.In My Java Program i use dll file of c program using System.load("");.when iam compiling my Java Program it works Fine But When Iam Run My Java Program It Displays Unsatisfied Lik Error on Native method oh C Program.As noted that requires a resolvable path - either it must be absolute or relative to the current working directory.
However if you failed to load the library then you cannot get the error that you posted unless you are ignoring the exception from the load() call. And doing that is a bad idea.
At least if the library is not loading.
If it is loading then the method that you use to load it has nothing to do with your problem. -
Fatal error LNK1181: cannot open input file"OLDNAMES.LIB
Hello, everybody.
My problem is :'fatal error LNK1181: cannot open input file "OLDNAMES.LIB"'
Somebody can help me?
Thanks a lot for your assistance.
I tried to passe a C structure between Forte and C.
I taked the exemple of forté : technote ID : 10637.
We use Forte 3.0.j.1 and I try the example on a NT4 server.
There are several projects that make up this application. They are as follows:
StructExampleGUI - This is this project. It is the GUI front
(File: StructGu.Pex) end that calls the C wrapper.
StructSharedObjects - This project defines the Employee object
(File: StructSh.Pex) that is needed for both the GUI and
for the StructExampleServices project.
StructExampleServices - This project defines the StructExample
(File: StructSO.Pex) services object. This is a restricted
project whose purpose is to actually call
the C project.
StructExampleProject - This is the External C Project that defines
(File: Struct.Pex) the interface necessary for Forte to generate
the wrapper code needed to call the C file.
StructEX.c - This is the C code that is being wrappered. It
has one function getemployee that modifies an
input output structure. The memory allocation is
done by Forte in the StructExampleServices
project.
First of all, I compile the StructEx.C
After, in the Struct.pex, I set the parameter :
HAS PROPERTY
CompatibilityLevel = 0;
ProjectType = LIBRARY;
Restricted = TRUE;
MultiThreaded = TRUE;
LibraryName = 'struct';
extended = (Externalincludedirectories='e:/Pgmprod/cpp/50/include
e:/Pgmprod/cpp/50/lib',
ExternalObjectFiles = 'O:/Herve/ForteAPI/structex');
I load the struct.pex.
Double click on the StructExampleProject
File:Configure As:Library
Make distibution and select Full make, Install in current Environment & Auto
Compile
When I tried this in the first time, I has a probleme with struct.bom. I
resolved
that. (technote 11431:Autocompile on NT fails to build the compiled partition)
But now, I'm another problem (see below) and I don't find the solution.
Somebody can help me? Thanks a lot for your assistance.
The problem : Forté say 'fatal error LNK1181: cannot open input file
"OLDNAMES.LIB"'
BEGIN FILE
Working directory is e:\pgmprod\forte\30J1\tmp\cg4\pc_nt\struct
Processing BOM file: struct.bom
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 11.00.7022 for 80x86
Copyright (C) Microsoft Corp 1984-1997. All rights reserved.
struct.cc
Microsoft (R) 32-Bit Incremental Linker Version 5.00.7022
Copyright (C) Microsoft Corp 1992-1997. All rights reserved.
/DLL /NOD
/OUT:struct.dll
/DEF:struct.nti
struct.obj
O:\Herve\ForteAPI\structex.obj
e:\pgmprod\forte\30J1\install\lib\qqsm.lib
e:\pgmprod\forte\30J1\install\lib\qqfo.lib
e:\pgmprod\forte\30J1\install\lib\qqdo.lib
e:\pgmprod\forte\30J1\install\lib\qqsh.lib
e:\pgmprod\forte\30J1\install\lib\qqcm.lib
e:\pgmprod\forte\30J1\install\lib\qqkn.lib
e:\pgmprod\forte\30J1\install\lib\MSVCRT.LIB
e:\pgmprod\forte\30J1\install\lib\qqsh.lib
OLDNAMES.LIB OLDNAMES.LIB KERNEL32.LIB USER32.LIB GDI32.LIB WINSPOOL.LIB
COMDLG32.LIB SHELL32.LIB WSOCK32.LIB NETAPI32.LIB WINMM.LIB ADVAPI32.LIB
LINK : fatal error LNK1181: cannot open input file "OLDNAMES.LIB"
cl /W3 /Gf /GX /MD /c /Ob1 /vmg /DSTRICT /DWIN32 /D__WIN32__ /DLIBOO_DLL
/DWIN32_LEAN_AND_MEAN /Ie:\pgmprod\forte\30J1\install\inc\cmn
/Ie:\pgmprod\forte\30J1\install\inc\os
/Ie:\pgmprod\forte\30J1\install\inc\ds
/Ie:\pgmprod\forte\30J1\install\inc\handles /Ie:\pgmprod\forte\30J1
/Ie:\Pgmprod\cpp\50\include /Ie:\Pgmprod\cpp\50\lib /Fostruct.obj /Tp struct.cc
link @linkopt.lrf
Error during compilation, aborting.
END FILE
Completed compilation for PC NT.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Hussein,
Please find below the requested information,
1. Path variable value after sourcing the apps env file,
D:\oracle\VIS\apps\apps_st\appl>APPSVIS_oracletemp.cmd
ECHO is off.
ECHO is off.
Tue 11/23/2010 02:36 PM
ECHO is off.
ECHO is off.
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
APPSORA.cmd exiting with status 0
D:\oracle\VIS\apps\apps_st\appl>
D:\oracle\VIS\apps\apps_st\appl>echo %path%
C:\VS2008\Common7\IDE;C:\VS2008\VC\BIN;C:\VS2008\Common7\Tools;C:\Windows\Micros
oft.NET\Framework\v3.5;C:\Windows\Microsoft.NET\Framework\v2.0.50727;C:\VS2008\V
C\VCPackages;C:\Program Files\\Microsoft SDKs\Windows\v6.0A\bin;D:\oracle\VIS\ap
ps\apps_st\appl\au\12.0.0\bin;D:\oracle\VIS\apps\apps_st\appl\fnd\12.0.0\bin;D:\
oracle\VIS\apps\apps_st\appl\ad\12.0.0\bin;D:\oracle\VIS\apps\tech_st\10.1.3\app
sutil\jdk\jre\bin;D:\oracle\VIS\apps\tech_st\10.1.3\perl\5.8.3\bin\MSWin32-x86-m
ulti-thread\;D:\oracle\VIS\apps\apps_st\comn\util\unzip\unzip;D:\oracle\VIS\apps
\tech_st\10.1.3\appsutil\jdk\bin;D:\oracle\VIS\apps\tech_st\10.1.2\bin;D:\oracle
\VIS\apps\tech_st\10.1.3\appsutil\jdk\bin;D:\oracle\VIS\apps\tech_st\10.1.3\apps
util\jdk\jre\bin;C:\cygwin\bin;C:\Windows;C:\Windows\system32;D:\oracle\VIS\apps
\tech_st\10.1.3\ant\bin
D:\oracle\VIS\apps\apps_st\appl>
2. gnumake version is as follows,
D:\oracle\VIS\apps\apps_st\appl>gnumake --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-pc-mingw32
D:\oracle\VIS\apps\apps_st\appl>
Thanks,
Rajesh. -
Testing ActionScript classes with native methods?
Hi,
I have an ActionScript class that I'm writing and would like to test using FlexUnit.
The only issue is that the ActionScript class has a member in it that is a class with native methods.
So, I get the following error when trying to run a test of that ActionScript class:
VerifyError: Error #1079: Native methods are not allowed in loaded code.
Does anyone know of a way to get around this? FlexUnit seems not to like native methods being present.
Thanks,
MattHi casdvm,
by definition, you only own objects that you created using one of the alloc* methods, copy: or new:. All other objects (IIRC with a few noted exceptions) are autoreleased.
If you create convenience methods in your own class, you should follow the same rule. For example, if you have a class Pet and want to implement the method +petWithName, your code might look something like that:
+ petWithName: (NSString *)name
return [[[Pet alloc] initWithName: name] autorelease];
Alex -
Re: fatal error LNK1181: cannot open input file"OLDNAMES.LIB
Hi,
May be it is because it appears twice on your script :
OLDNAMES.LIB OLDNAMES.LIB KERNEL32.LIB USER32.LIB GDI32.LIB WINSPOOL.LIB
Hope this helps,
Daniel Nguyen
Freelance Forte Consultant
At 18:40 18/12/98 +0100, Hervé Depoorter wrote:
Hello, everybody.
My problem is :'fatal error LNK1181: cannot open input file "OLDNAMES.LIB"'
Somebody can help me?
Thanks a lot for your assistance.
>
I tried to passe a C structure between Forte and C.
I taked the exemple of forté : technote ID : 10637.
We use Forte 3.0.j.1 and I try the example on a NT4 server.
There are several projects that make up this application. They are asfollows:
StructExampleGUI - This is this project. It is the GUI front
(File: StructGu.Pex) end that calls the C wrapper.
StructSharedObjects - This project defines the Employee object
(File: StructSh.Pex) that is needed for both the GUI and
for the StructExampleServices project.
StructExampleServices - This project defines the StructExample
(File: StructSO.Pex) services object. This is a restricted
project whose purpose is to actually call
the C project.
StructExampleProject - This is the External C Project that defines
(File: Struct.Pex) the interface necessary for Forte to generate
the wrapper code needed to call the C file.
StructEX.c - This is the C code that is being wrappered. It
has one function getemployee that modifies an
input output structure. The memory allocation is
done by Forte in the StructExampleServices
project.
>
First of all, I compile the StructEx.C
After, in the Struct.pex, I set the parameter :
HAS PROPERTY
CompatibilityLevel = 0;
ProjectType = LIBRARY;
Restricted = TRUE;
MultiThreaded = TRUE;
LibraryName = 'struct';
extended = (Externalincludedirectories='e:/Pgmprod/cpp/50/include
e:/Pgmprod/cpp/50/lib',
ExternalObjectFiles = 'O:/Herve/ForteAPI/structex');
I load the struct.pex.
Double click on the StructExampleProject
File:Configure As:Library
Make distibution and select Full make, Install in current Environment & Auto
Compile
When I tried this in the first time, I has a probleme with struct.bom. I
resolved
that. (technote 11431:Autocompile on NT fails to build the compiled
partition)
>
But now, I'm another problem (see below) and I don't find the solution.
Somebody can help me? Thanks a lot for your assistance.
The problem : Forté say 'fatal error LNK1181: cannot open input file
"OLDNAMES.LIB"'
BEGIN FILE
Working directory is e:\pgmprod\forte\30J1\tmp\cg4\pc_nt\struct
Processing BOM file: struct.bom
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 11.00.7022 for 80x86
Copyright (C) Microsoft Corp 1984-1997. All rights reserved.
struct.cc
Microsoft (R) 32-Bit Incremental Linker Version 5.00.7022
Copyright (C) Microsoft Corp 1992-1997. All rights reserved.
/DLL /NOD
/OUT:struct.dll
/DEF:struct.nti
struct.obj
O:\Herve\ForteAPI\structex.obj
e:\pgmprod\forte\30J1\install\lib\qqsm.lib
e:\pgmprod\forte\30J1\install\lib\qqfo.lib
e:\pgmprod\forte\30J1\install\lib\qqdo.lib
e:\pgmprod\forte\30J1\install\lib\qqsh.lib
e:\pgmprod\forte\30J1\install\lib\qqcm.lib
e:\pgmprod\forte\30J1\install\lib\qqkn.lib
e:\pgmprod\forte\30J1\install\lib\MSVCRT.LIB
e:\pgmprod\forte\30J1\install\lib\qqsh.lib
OLDNAMES.LIB OLDNAMES.LIB KERNEL32.LIB USER32.LIB GDI32.LIB WINSPOOL.LIB
COMDLG32.LIB SHELL32.LIB WSOCK32.LIB NETAPI32.LIB WINMM.LIB ADVAPI32.LIB
LINK : fatal error LNK1181: cannot open input file "OLDNAMES.LIB"
cl /W3 /Gf /GX /MD /c /Ob1 /vmg /DSTRICT /DWIN32 /D__WIN32__ /DLIBOO_DLL
/DWIN32_LEAN_AND_MEAN /Ie:\pgmprod\forte\30J1\install\inc\cmn
/Ie:\pgmprod\forte\30J1\install\inc\os
/Ie:\pgmprod\forte\30J1\install\inc\ds
/Ie:\pgmprod\forte\30J1\install\inc\handles /Ie:\pgmprod\forte\30J1
/Ie:\Pgmprod\cpp\50\include /Ie:\Pgmprod\cpp\50\lib /Fostruct.obj /Tpstruct.cc
link @linkopt.lrf
Error during compilation, aborting.
END FILE
Completed compilation for PC NT.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>ex_rep_chan is dependent on the db library, which judging by your printout, has not finished building. Which is odd, since Visual Studio is usually smarter about dependencies. Just rebuild ex_rep_chan and you should be fine.
Lauren Foutz
Maybe you are looking for
-
Family Sharing vs One Apple ID
Scenario before IOS 8: My iPhone 5S linked to iCloud with MY AppleId. iMessage - MY AppleId & my phone number. FaceTime - MY AppleId & my phone number. Find my Friends - MY AppleId AppleStore - MY AppleId. Home Sharing - MY A
-
ExecuteUpdate() returns 1 , but actually it has'nt updated the DB tables
DATABASE USED : ORACLE 9i This is the function that is been called. althou, this returns a +ve ans. , saying that the db has been updated ; but when i login into the DB, i donot find the row updated. public void process(File dir) throws Exception
-
Alright so two days ago my iphone worked just fine. Around lunch it would not turn on I had about 20 battery when I checked in the morning so I thought it was just dead. When I went home to plug it in for a little bit, it would not turn on any more.
-
Both thunderbolt display and ethernet stopped working at the same time
I use recent Macbook pro 13inch retina. I use both of thunderbolt ports on ethernet and display. I was messing around with application, and I found chess game. I played it for while than my display and ethernet suddenly stopped working. I do know et
-
I have moved from the UK to the USA and have a new phone, I try to change my country location on the store and get an error message saying I have to cancel my itunes match and also that I have a pass incomplete, any ideas how to fix and change the st