Gauge intellIJ plugin exception

108 views
Skip to first unread message

Arish Arbab

unread,
Mar 8, 2017, 8:48:08 PM3/8/17
to getgauge
I am getting the below exception when running using intellIJ plugin, however running from command line is working fine.

"C:\Program Files\Gauge\bin\gauge.exe" --simple-console --env custom C:/MasterSourceCode/specs/SubmitOrder.spec
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/MasterSourceCode/lib/cxf/slf4j-jdk14-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/MasterSourceCode/lib/soapUILib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/MasterSourceCode/tools/app/allure-bundle.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/MasterSourceCode/tools/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/MasterSourceCode/lib/hve.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
Mar 09, 2017 9:46:18 AM org.reflections.Reflections scan
INFO: Reflections took 20127 ms to scan 387 urls, producing 28477 keys and 188372 values 
Exception in thread "main" java.lang.IllegalAccessError: tried to access field com.google.protobuf.AbstractMessage.memoizedSize from class gauge.messages.Api$APIMessage
at gauge.messages.Api$APIMessage.getSerializedSize(Api.java:21720)
at com.google.protobuf.AbstractMessageLite.toByteArray(AbstractMessageLite.java:62)
at com.thoughtworks.gauge.connection.GaugeConnection.getAPIResponse(GaugeConnection.java:149)
at com.thoughtworks.gauge.connection.GaugeConnection.getStepValue(GaugeConnection.java:198)
at com.thoughtworks.gauge.connection.GaugeConnection.getStepValue(GaugeConnection.java:184)
at com.thoughtworks.gauge.scan.StepsScanner.buildStepRegistry(StepsScanner.java:47)
at com.thoughtworks.gauge.scan.StepsScanner.scan(StepsScanner.java:39)
at com.thoughtworks.gauge.scan.ClasspathScanner.scan(ClasspathScanner.java:39)
at com.thoughtworks.gauge.GaugeRuntime.connectSynchronously(GaugeRuntime.java:81)
at com.thoughtworks.gauge.GaugeRuntime.main(GaugeRuntime.java:53)
[ValidationError] C:\MasterSourceCode\specs\SubmitOrder.spec:10 Connection closed [127.0.0.1:51992] cause: read tcp 127.0.0.1:51989->127.0.0.1:51992: wsarecv: An existing connection was forcibly closed by the remote host. => 'Place Initial "META" Order which has startdate as "12" months back <table>'
[ValidationError] C:\MasterSourceCode\specs\SubmitOrder.spec:15 write tcp 127.0.0.1:51989->127.0.0.1:51992: use of closed network connection => 'Connect to "TIBCO" DB'
[ValidationError] C:\MasterSourceCode\specs\SubmitOrder.spec:17 write tcp 127.0.0.1:51989->127.0.0.1:51992: use of closed network connection => 'Validate TIBCO "SubmitOrder,CreateOrder" process for the BizObjID generated'
[ValidationError] C:\MasterSourceCode\specs\SubmitOrder.spec:19 write tcp 127.0.0.1:51989->127.0.0.1:51992: use of closed network connection => 'Get OrderNumber from TIBCO'
process C:\java8\jre\bin\java.exe with pid 4232 quit unexpectedly. exit status 1
  Failed to initialize suite datastore. Error: write tcp 127.0.0.1:51989->127.0.0.1:51992: use of closed network connection
Successfully generated html-report to => C:\MasterSourceCode\reports\html-report
Specifications: 0 executed 0 passed 0 failed 0 skipped
Scenarios: 0 executed 0 passed 0 failed 0 skipped

Total time taken: 150ms

Process finished with exit code 0



Can you please suggest whats causing it ?

Srikanth V

unread,
Mar 8, 2017, 8:54:37 PM3/8/17
to getgauge
Hi,

Can you please make sure you have Gauge IntelliJ plugin version: 0.3.1.
The  Gauge version should be `0.8.1` and  Gauge-Java version should be  `0.6.1`. You can verify this by running `gauge -v` command on terminal

Gauge version: 0.8.1

Plugins
-------
html-report (3.1.0)
java (0.6.1)

Please raise an issue on https://github.com/getgauge/intellij-plugin if you are still facing problems.

best
Srikanth

Arish Arbab

unread,
Mar 9, 2017, 12:43:44 AM3/9/17
to getgauge
I have all the correct versions.
Reply all
Reply to author
Forward
0 new messages