issue with 0.0.8 plugin for java projects

657 views
Skip to first unread message

ganesh n

unread,
May 12, 2015, 2:18:06 AM5/12/15
to getg...@googlegroups.com
Hi,

I tried updating my Gauge plugin to 0.0.8 when i try running the code, i get the following error. 

"Exception in thread "main" process C:\Windows\system32\java.exe with pid 2000 quit unexpectedly. exit status 1
10:12:32.356 [CRIT] Failed to start a runner. Runner exited with error: exit status 1"

I have gauge  java plugin 0.0.7 and i think this version mismatch is causing this issue. java 0.0.8 is unavailable. 

Let me know how this can be fixed.

Prateek Kumar Baheti

unread,
May 12, 2015, 3:03:12 AM5/12/15
to ganesh n, getg...@googlegroups.com
Hi,

Is the project compiling in intellij ? Gauge java plugin 0.0.7 is compatible with the Intellij gauge plugin 0.0.8.
You may have to reopen the gauge project on Intellij if you did a gauge-java plugin update while the intellij project was open.

Can you remove previously existing gauge java versions (< 0.0.7) from %APPDATA%gauge/plugins/java and try again.

Please do let us know if this resolves it.


--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/a978e2ed-3fdb-4527-947c-a717f76a6c0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sarita Pol

unread,
May 21, 2015, 2:58:46 AM5/21/15
to getg...@googlegroups.com
Even I am facing same issue when running in debug mode.

There are no stale instances of guage running still getting the same error. I dont have any other versions of guage java plugin apart from 0.0.7

Sarita Pol

unread,
May 21, 2015, 3:04:07 AM5/21/15
to getg...@googlegroups.com
Even I am facing same issue when running in debug mode.

There are no stale instances of guage running still getting the same error. I dont have any other versions of guage java plugin apart from 0.0.7

In debug mode I get below execption:

~gauge.exe --simple-console E:/TestGaugeProject/specs/02-01-01-VrfyDefaultFldsLHPandAddFlds.spec
Listening for transport dt_socket at address: 50005
ERROR: transport error 203: timed out waiting for connection
JDWP exit error JVMTI_ERROR_NONE(0): could not connect, timeout or fatal error [../../../src/share/back/transport.c:321]
Listening for transport dt_socket at address: 50005
12:30:13.808 [CRIT] Failed to start a runner. Timed out connecting to [::]:64586
%!(EXTRA []interface {}=[])

Process finished with exit code 1

While I run the spec I get below error:

~gauge.exe --simple-console E:/TestGaugeProject/specs/02-01-01-VrfyDefaultFldsLHPandAddFlds.spec
Exception in thread "main" java.lang.VerifyError: class gauge.messages.Api$GetStepValueRequest overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at com.thoughtworks.gauge.GaugeConnection.getStepValueRequest(GaugeConnection.java:191)
    at com.thoughtworks.gauge.GaugeConnection.getStepValue(GaugeConnection.java:136)
    at com.thoughtworks.gauge.GaugeConnection.getStepValue(GaugeConnection.java:132)
    at com.thoughtworks.gauge.GaugeRuntime.scanForStepImplementations(GaugeRuntime.java:170)
    at com.thoughtworks.gauge.GaugeRuntime.main(GaugeRuntime.java:143)
process C:\Program Files (x86)\Java\jdk1.7.0_21\jre\bin\java.exe with pid 10200 quit unexpectedly. exit status 1
Exception in thread "main" java.lang.VerifyError: class gauge.messages.Api$GetStepValueRequest overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at com.thoughtworks.gauge.GaugeConnection.getStepValueRequest(GaugeConnection.java:191)
    at com.thoughtworks.gauge.GaugeConnection.getStepValue(GaugeConnection.java:136)
    at com.thoughtworks.gauge.GaugeConnection.getStepValue(GaugeConnection.java:132)
    at com.thoughtworks.gauge.GaugeRuntime.scanForStepImplementations(GaugeRuntime.java:170)
    at com.thoughtworks.gauge.GaugeRuntime.main(GaugeRuntime.java:143)
12:32:48.772 [WARN] Validation failed. The following steps have errors
E:\TestGaugeProject\specs\02-01-01-VrfyDefaultFldsLHPandAddFlds.spec:15: Connection closed [127.0.0.1:64626] cause: WSARecv tcp 127.0.0.1:64623: An existing connection was forcibly closed by the remote host.. Step "1"
E:\TestGaugeProject\specs\02-01-01-VrfyDefaultFldsLHPandAddFlds.spec:16: use of closed network connection. Login with "username" "pwd"
process C:\Program Files (x86)\Java\jdk1.7.0_21\jre\bin\java.exe with pid 11372 quit unexpectedly. exit status 1


Sarita Pol

unread,
May 21, 2015, 10:00:39 AM5/21/15
to getg...@googlegroups.com
I tried configuring the debug port as given in the documentation:

5.3. Debugging

http://getgauge.io/documentation/user/current/ide_support/features.html

I tried changing the debug port in remote run configuration but I see by default it looks for 50005 port and I am unable to debug.

Any help is appreciated.

Thanks,
Sarita

Prateek Kumar Baheti

unread,
May 21, 2015, 12:42:33 PM5/21/15
to Sarita Pol, getg...@googlegroups.com
Did you create a new Remote configuration with the port set to 50005 ? This needs to be launched after launching the spec in debug mode as mentioned in the documentation. If it does not connect for the first time run the remote configuration for the second time.

There is an issue tracking this behavior and it should be made simpler soon.

Exception in thread "main" java.lang.VerifyError: class gauge.messages.Api$GetStepValueRequest overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;

The above exception that you see could be most likely because of multiple versions of the gauge-java jar in your project classpath. Can you check your project dependencies to ensure that there are no multiple gauge-java jars either in the libs directory or referenced as dependency under your Intellij module settings?



--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.

Sarita Pol

unread,
May 22, 2015, 3:33:30 AM5/22/15
to getg...@googlegroups.com, sarit...@gmail.com
Yes I did create the remote configuration as specified in the documentation for port 50005. I tried connecting second time as well when it didnt connect for the first time for port 50005. Still no success and I am still getting the same exception.


~ gauge.exe --simple-console E:/TestGaugeProject/specs/hello_world.spec

Listening for transport dt_socket at address: 50005
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:741]
process C:\Program Files (x86)\Java\jdk1.7.0_21\jre\bin\java.exe with pid 6552 quit unexpectedly. exit status 1

ERROR: transport error 203: timed out waiting for connection
JDWP exit error JVMTI_ERROR_NONE(0): could not connect, timeout or fatal error [../../../src/share/back/transport.c:321]
12:57:43.857 [CRIT] Failed to start a runner. Runner exited with error: exit status 1


%!(EXTRA []interface {}=[])

Process finished with exit code 1


Related to Exception in thread "main" java.lang.VerifyError: class gauge.messages.Api$GetStepValueRequest

I checked project classpath , project dependencies and module dependencies. I am using only once java-guage jar.

I have below config
Intellij IDEA 13.1 community edition
JDK1.7.0_21
guage java plugin 0.0.7
Intellij guage plugin 0.08

Thanks for the quick response.
Sarita

On Thursday, 21 May 2015 22:12:33 UTC+5:30, prateekb wrote:
Did you create a new Remote configuration with the port set to 50005 ? This needs to be launched after launching the spec in debug mode as mentioned in the documentation. If it does not connect for the first time run the remote configuration for the second time.

There is an issue tracking this behavior and it should be made simpler soon.

Exception in thread "main" java.lang.VerifyError: class gauge.messages.Api$GetStepValueRequest overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;

The above exception that you see could be most likely because of multiple versions of the gauge-java jar in your project classpath. Can you check your project dependencies to ensure that there are no multiple gauge-java jars either in the libs directory or referenced as dependency under your Intellij module settings?


prateekb

unread,
May 25, 2015, 7:07:21 AM5/25/15
to getg...@googlegroups.com, sarit...@gmail.com
A new update of the Gauge Intellij plugin and gauge has been released. This provides improved debugging support. You do not need to launch the remote configuration anymore after launching specs in debug mode.
It should resolve the issues you are facing

Sarita Pol

unread,
May 26, 2015, 6:51:46 AM5/26/15
to getg...@googlegroups.com, sarit...@gmail.com
I've updated the Gauge Intellij plugin (0.0.9) and gauge(0.1.4)

I'm still facing the issue while running as well as debugging.

E:\SynDev\Gauge\bin\gauge.exe --simple-console E:/TestGaugeProject/specs/02-01-02-VrfyAddFldsWithDone.spec

Exception in thread "main" java.lang.VerifyError: class gauge.messages.Api$GetStepValueRequest overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at com.thoughtworks.gauge.GaugeConnection.getStepValueRequest(GaugeConnection.java:191)
    at com.thoughtworks.gauge.GaugeConnection.getStepValue(GaugeConnection.java:136)
    at com.thoughtworks.gauge.GaugeConnection.getStepValue(GaugeConnection.java:132)
    at com.thoughtworks.gauge.GaugeRuntime.scanForStepImplementations(GaugeRuntime.java:170)
    at com.thoughtworks.gauge.GaugeRuntime.main(GaugeRuntime.java:143)
process C:\Program Files (x86)\Java\jdk1.7.0_21\jre\bin\java.exe with pid 6288 quit unexpectedly. exit status 1
16:18:43.995 [WARN] Validation failed. The following steps have errors
E:/TestGaugeProject/specs/02-01-02-VrfyAddFldsWithDone.spec:14: use of closed network connection. Step "1"
E:\TestGaugeProject\specs\02-01-02-VrfyAddFldsWithDone.spec:15: use of closed network connection. Login with "username" "pwd"
E:\TestGaugeProject\specs\02-01-02-VrfyAddFldsWithDone.spec:16: use of closed network connection. Navigate app "Feature1"
E:\TestGaugeProject\specs\02-01-02-VrfyAddFldsWithDone.spec:19: use of closed network connection. User is on "Feature1" page

Prateek Kumar Baheti

unread,
May 26, 2015, 2:57:02 PM5/26/15
to Sarita Pol, getg...@googlegroups.com
Hi Sarita,

This issue does not seem specific to debugging of a spec. Do you get the same error if you create a new gauge project in Intellij and execute the example spec ?

Sarita Pol

unread,
May 28, 2015, 3:14:40 AM5/28/15
to getg...@googlegroups.com, sarit...@gmail.com
Yes this issue is not there when we create a new gauge project. I'm trying to find out what lead to this issue.

Thanks for the direction.

Griffin Kelley

unread,
May 28, 2015, 3:28:20 PM5/28/15
to getg...@googlegroups.com
I am experiencing this exact same issue. I'll post if I find a solution!

Sarita Pol

unread,
Jun 1, 2015, 3:11:27 AM6/1/15
to getg...@googlegroups.com
I could find out this is related to module dir path but still unable to resolve excat root cause. I'm attaching the exception I'm getting.



Thanks,
Sarita.

Sarita Pol

unread,
Jun 1, 2015, 3:15:49 AM6/1/15
to getg...@googlegroups.com


On Monday, 1 June 2015 12:41:27 UTC+5:30, Sarita Pol wrote:
I could find out this is related to module dir path but still unable to resolve excat root cause. I'm attaching the exception I'm getting.

null
java.lang.NullPointerException
    at com.thoughtworks.gauge.util.GaugeUtil.moduleDirPath(GaugeUtil.java:95)
    at com.thoughtworks.gauge.util.GaugeUtil.moduleDir(GaugeUtil.java:91)
    at com.thoughtworks.gauge.execution.GaugeRunConfiguration.addFlags(GaugeRunConfiguration.java:124)
    at com.thoughtworks.gauge.execution.GaugeRunConfiguration.access$000(GaugeRunConfiguration.java:54)
    at com.thoughtworks.gauge.execution.GaugeRunConfiguration$1.startProcess(GaugeRunConfiguration.java:97)
    at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:74)
    at com.thoughtworks.gauge.execution.GaugeTestRunner.doExecute(GaugeTestRunner.java:45)
    at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:48)
    at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:208)
    at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:95)
    at com.intellij.execution.impl.ExecutionManagerImpl$1$1.run(ExecutionManagerImpl.java:172)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
 

Prateek Kumar Baheti

unread,
Jun 1, 2015, 5:05:54 AM6/1/15
to Sarita Pol, getg...@googlegroups.com
Thanks for the stacktrace but unfortunately that is not the cause for the error (java.lang.VerifyError) during execution.
You should be able to delete the existing run configuration that you ran and this should be resolved.

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.

Sarita Pol

unread,
Jun 1, 2015, 5:23:25 AM6/1/15
to getg...@googlegroups.com
At last I could reproduce the issue.

Create a new gauge project. Create a folder called "core" as \src\test\java\core. Move the StepImplementation.java into core folder. If you run hello_world.spec you will get exception


Exception in thread "main" java.lang.VerifyError: class gauge.messages.Api$GetStepValueRequest overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;


prateekb : Whether nested folder structure is not supported for step implementations?

Please let us know as we have such directroy structure to have cleaner organisation of code.

Thanks,
Sarita




Sarita Pol

unread,
Jun 1, 2015, 5:30:29 AM6/1/15
to getg...@googlegroups.com
One more thing to add this happens only when you run from IntelliJ.  If I run specs from command prompt they run fine.

Thanks,
Sarita

Prateek Kumar Baheti

unread,
Jun 1, 2015, 6:15:20 AM6/1/15
to Sarita Pol, getg...@googlegroups.com
In a Gauge java project src/test/java is the root directory to your test sources. Its where the Java classes in the default package are kept. Any nested directory follows the java convention of packages. Any Java class in the src/test/java/core directory should be under the core package in java for example.

I was unable to reproduce the issue with the steps you mentioned, can you send us the .iml file from your Gauge Intellij project where the error occurs ?





--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.

Sarita Pol

unread,
Jun 1, 2015, 6:30:00 AM6/1/15
to getg...@googlegroups.com, sarit...@gmail.com
Please find the attached .iml file.
GaugeValidation.iml

Sarita Pol

unread,
Jun 4, 2015, 7:33:53 AM6/4/15
to getg...@googlegroups.com
Hi,

Even if I change the project SDK and project language( to 1.6 or 1.8), still in the error message I see JDK1.7 ? why?


Exception in thread "main" java.lang.VerifyError: class gauge.messages.Api$GetStepValueRequest overrides final method getUnknownFields.()Lcom/google/protobuf/UnknownFieldSet;
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at com.thoughtworks.gauge.GaugeConnection.getStepValueRequest(GaugeConnection.java:233)
    at com.thoughtworks.gauge.GaugeConnection.getStepValue(GaugeConnection.java:162)
    at com.thoughtworks.gauge.GaugeConnection.getStepValue(GaugeConnection.java:152)
    at com.thoughtworks.gauge.GaugeRuntime.scanForStepImplementations(GaugeRuntime.java:168)
    at com.thoughtworks.gauge.GaugeRuntime.main(GaugeRuntime.java:141)
17:01:34.860 [WARN] Validation failed. The following steps have errors
E:\GaugeValidation\specs\hello_world.spec:10: use of closed network connection. A context step which gets executed before every scenario
E:\GaugeValidation\specs\hello_world.spec:17: use of closed network connection. Say "hello" to "gauge"
E:\GaugeValidation\specs\hello_world.spec:26: use of closed network connection. Step that takes a table <table>
process C:\Program Files (x86)\Java\jdk1.7.0_21\jre\bin\java.exe with pid 3716 quit unexpectedly. exit status 1

Thanks for the help,
Sarita

Prateek Kumar Baheti

unread,
Jun 4, 2015, 8:02:39 AM6/4/15
to Sarita Pol, getg...@googlegroups.com
In your Gauge Intellij project can you press ctrl+shift+n and do a file name search for Api.class and send the path to the library where it is located in your project dependencies. Also can you search for UnknownFieldSet.class and send the path of the jar where it is located.
If there are more than one entries please do send the path to all of them.

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.

Sarita Pol

unread,
Jun 4, 2015, 9:28:44 AM6/4/15
to getg...@googlegroups.com, sarit...@gmail.com
Thanks a lot Prateek

I added those jars to SDK's classpath and now the issue is resolved. Now I'm able to run as well as debug the scenarios from IntelliJ.

Thanks once again.
Sarita



Sarita Pol

unread,
Jun 4, 2015, 9:30:50 AM6/4/15
to getg...@googlegroups.com
Just one point to add.
I tried adding these jars to Libraries as well as Project dependenices but the issue was there.
When I added to SDK's classpath then the issue got resolved.

Sarita Pol

unread,
Jun 4, 2015, 9:30:58 AM6/4/15
to getg...@googlegroups.com
Just one point to add.
I tried adding these jars to Libraries as well as Project dependenices but the issue was there.
When I added to SDK's classpath then the issue got resolved.

Reply all
Reply to author
Forward
0 new messages