FATAL ERROR in native method: processing of -javaagent failed

I have been trying to get odk-aggregate up and running in eclipse so that I
can make some additions but I have run into problems getting it to run.
Does anyone know what the source of the following error might be? I have
tried to pinpoint the possible problem and have run out of ideas.

objc[11954]: Class JavaLaunchHelper is implemented in both
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java and
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libinstrument.dylib.
One of the two will be used. Which one is undefined.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:491)
at
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
at
sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
Caused by: java.lang.NoSuchMethodError:
sun.reflect.Reflection.getCallerClass(I)Ljava/lang/Class;
at
com.google.apphosting.utils.clearcast.ClearCast$1.run(ClearCast.java:293)
at
com.google.apphosting.utils.clearcast.ClearCast$1.run(ClearCast.java:291)
at java.security.AccessController.doPrivileged(Native Method)
at
com.google.apphosting.utils.clearcast.ClearCast.maybeSetClassLoader(ClearCast.java:291)
at
com.google.apphosting.utils.clearcast.ClearCast.staticCast(ClearCast.java:263)
at
com.google.appengine.tools.development.agent.AppEngineDevAgent.premain(AppEngineDevAgent.java:61)
... 6 more
FATAL ERROR in native method: processing of -javaagent failed

Best,
Dan

Dan,

Er. You probably have two Java executables and some script is calling
one instead of the other.

No idea really, but
https://code.google.com/p/googleappengine/issues/detail?id=9562 might
help.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Mon, Mar 3, 2014 at 12:38 PM, Dan Lasaga dalasaga14@gmail.com wrote:

I have been trying to get odk-aggregate up and running in eclipse so that I
can make some additions but I have run into problems getting it to run. Does
anyone know what the source of the following error might be? I have tried to
pinpoint the possible problem and have run out of ideas.

objc[11954]: Class JavaLaunchHelper is implemented in both
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java and
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libinstrument.dylib.
One of the two will be used. Which one is undefined.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:491)
at
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
at
sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
Caused by: java.lang.NoSuchMethodError:
sun.reflect.Reflection.getCallerClass(I)Ljava/lang/Class;
at
com.google.apphosting.utils.clearcast.ClearCast$1.run(ClearCast.java:293)
at
com.google.apphosting.utils.clearcast.ClearCast$1.run(ClearCast.java:291)
at java.security.AccessController.doPrivileged(Native Method)
at
com.google.apphosting.utils.clearcast.ClearCast.maybeSetClassLoader(ClearCast.java:291)
at
com.google.apphosting.utils.clearcast.ClearCast.staticCast(ClearCast.java:263)
at
com.google.appengine.tools.development.agent.AppEngineDevAgent.premain(AppEngineDevAgent.java:61)
... 6 more
FATAL ERROR in native method: processing of -javaagent failed

Best,
Dan

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yaw,

Thank you for the nudge in the right direction. It was not a problem of
multiple jdks but a problem with eclipse mistakenly thinking that I had a
later version of java than I actually had. I only had jdk 6 which causes
problems with appengine. I upgraded my jdk and the below error message goes
away.

Thank you,
Dan

The current stable release of Java is 1.7 (Java 7)

Uninstall your 1.8 (Java 8) version and install a stable one from here:
http://java.com/en/download/index.jsp

Or adjust your PATH and JAVA_HOME so that Eclipse and Maven do not attempt
to use 1.8

··· On Mon, Mar 3, 2014 at 5:03 PM, Yaw Anokwa wrote:

Dan,

Er. You probably have two Java executables and some script is calling
one instead of the other.

No idea really, but
https://code.google.com/p/googleappengine/issues/detail?id=9562 might
help.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Mon, Mar 3, 2014 at 12:38 PM, Dan Lasaga dalasaga14@gmail.com wrote:

I have been trying to get odk-aggregate up and running in eclipse so
that I
can make some additions but I have run into problems getting it to run.
Does
anyone know what the source of the following error might be? I have
tried to
pinpoint the possible problem and have run out of ideas.

objc[11954]: Class JavaLaunchHelper is implemented in both
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java and

/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libinstrument.dylib.

One of the two will be used. Which one is undefined.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:491)
at

sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)

at

sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)

Caused by: java.lang.NoSuchMethodError:
sun.reflect.Reflection.getCallerClass(I)Ljava/lang/Class;
at
com.google.apphosting.utils.clearcast.ClearCast$1.run(ClearCast.java:293)
at
com.google.apphosting.utils.clearcast.ClearCast$1.run(ClearCast.java:291)
at java.security.AccessController.doPrivileged(Native Method)
at

com.google.apphosting.utils.clearcast.ClearCast.maybeSetClassLoader(ClearCast.java:291)

at

com.google.apphosting.utils.clearcast.ClearCast.staticCast(ClearCast.java:263)

at

com.google.appengine.tools.development.agent.AppEngineDevAgent.premain(AppEngineDevAgent.java:61)

... 6 more

FATAL ERROR in native method: processing of -javaagent failed

Best,
Dan

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Yup that is what I just did and things work great now. I can get down to
business.

Thank you!
Dan

··· On Monday, March 3, 2014 8:11:11 PM UTC-5, Mitch wrote: > > The current stable release of Java is 1.7 (Java 7) > > Uninstall your 1.8 (Java 8) version and install a stable one from here: > http://java.com/en/download/index.jsp > > Or adjust your PATH and JAVA_HOME so that Eclipse and Maven do not attempt > to use 1.8 > > > > > > On Mon, Mar 3, 2014 at 5:03 PM, Yaw Anokwa <yan...@nafundi.com wrote: > >> Dan, >> >> Er. You probably have two Java executables and some script is calling >> one instead of the other. >> >> No idea really, but >> https://code.google.com/p/googleappengine/issues/detail?id=9562 might >> help. >> >> Yaw >> -- >> Need ODK services? http://nafundi.com provides form design, server >> setup, professional support, and software development for ODK. >> >> On Mon, Mar 3, 2014 at 12:38 PM, Dan Lasaga <dalas...@gmail.com> wrote: >> > I have been trying to get odk-aggregate up and running in eclipse so >> that I >> > can make some additions but I have run into problems getting it to run. >> Does >> > anyone know what the source of the following error might be? I have >> tried to >> > pinpoint the possible problem and have run out of ideas. >> > >> > >> > objc[11954]: Class JavaLaunchHelper is implemented in both >> > /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java >> and >> > >> /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libinstrument.dylib. >> > One of the two will be used. Which one is undefined. >> > Exception in thread "main" java.lang.reflect.InvocationTargetException >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> > at >> > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >> > at >> > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> > at java.lang.reflect.Method.invoke(Method.java:491) >> > at >> > >> sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382) >> > at >> > >> sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397) >> > Caused by: java.lang.NoSuchMethodError: >> > sun.reflect.Reflection.getCallerClass(I)Ljava/lang/Class; >> > at >> > >> com.google.apphosting.utils.clearcast.ClearCast$1.run(ClearCast.java:293) >> > at >> > >> com.google.apphosting.utils.clearcast.ClearCast$1.run(ClearCast.java:291) >> > at java.security.AccessController.doPrivileged(Native Method) >> > at >> > >> com.google.apphosting.utils.clearcast.ClearCast.maybeSetClassLoader(ClearCast.java:291) >> > at >> > >> com.google.apphosting.utils.clearcast.ClearCast.staticCast(ClearCast.java:263) >> > at >> > >> com.google.appengine.tools.development.agent.AppEngineDevAgent.premain(AppEngineDevAgent.java:61) >> > ... 6 more >> > FATAL ERROR in native method: processing of -javaagent failed >> > >> > >> > Best, >> > Dan >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups >> > "ODK Developers" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an >> > email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >