I'm doing system update from hac. But I'm getting following error in the console. I looked in the *-items.xml for cxabstractaction itemtype, but couldn't find it. I am using SAP Hybris 1808 version with mysql 8.x version.
[java] Caused by: java.sql.SQLSyntaxErrorException: Table 'hybrisD2C.cxabstractaction' doesn't exist
[java] at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)
[java] at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
[java] at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
[java] at com.mysql.cj.jdbc.StatementImpl.executeQuery(StatementImpl.java:1200)
[java] at de.hybris.platform.jdbcwrapper.interceptor.StatementWithJDBCInterceptor.lambda$2(StatementWithJDBCInterceptor.java:53)
[java] at de.hybris.platform.jdbcwrapper.interceptor.recover.SQLRecoverableExceptionHandler.passThrough(SQLRecoverableExceptionHandler.java:101)
[java] at de.hybris.platform.jdbcwrapper.interceptor.recover.SQLRecoverableExceptionHandler.get(SQLRecoverableExceptionHandler.java:59)
[java] at de.hybris.platform.jdbcwrapper.interceptor.JDBCInterceptor.get(JDBCInterceptor.java:69)
[java] at de.hybris.platform.jdbcwrapper.interceptor.StatementWithJDBCInterceptor.executeQuery(StatementWithJDBCInterceptor.java:53)
[java] at de.hybris.platform.jdbcwrapper.StatementImpl.executeQuery(StatementImpl.java:161)
[java] at org.apache.ddlutils.platform.JdbcModelReader.determineAutoIncrementFromResultSetMetaData(JdbcModelReader.java:1064)
[java] at org.apache.ddlutils.platform.mysql.MySqlModelReader.readTable(MySqlModelReader.java:67)
[java] at org.apache.ddlutils.platform.JdbcModelReader.readTables(JdbcModelReader.java:516)
[java] at org.apache.ddlutils.platform.JdbcModelReader.getDatabase(JdbcModelReader.java:472)
[java] at org.apache.ddlutils.platform.JdbcModelReader.getDatabase(JdbcModelReader.java:432)
[java] at org.apache.ddlutils.platform.PlatformImplBase.readModelFromDatabase(PlatformImplBase.java:1884)
[java] ... 41 more
It is part of personalizationservices extension. Check the hybris/bin/modules/personalization/personalizationservices/resources/personalizationservices-items.xml file.
Related
how to resolve Error: Relation "schema_version
[java] at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98) [dspace-api-7.3.jar:7.3]
[java] Caught exception:
[java] org.postgresql.util.PSQLException: ERROR: relation "schema_version" does not exist
[java] Position: 23
[java] at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2675)
[java] at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2365)
[java] at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:355)
[java] at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:490)
[java] at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:408)
I am getting NPE while trying to deploy ear file in WL 12.2.1 server. The ear gets deployed without issue in Weblogic 12.1.3. Here is the error log.
Being trying to resolve this for few days without any success. Any idea why NPE comes from WebLogic packages?
Error:: "Deployer BEA-149265 Failure occurred in the execution of
deployment request with ID "17802533653132"for task "1" on
[partition-name: DOMAIN].
Error is: "weblogic.utils.ErrorCollectionException:
[java] WLST-WLS-1529953358794:
[java] WLST-WLS-1529953358794: There are 2 nested errors:
[java] WLST-WLS-1529953358794:
[java] WLST-WLS-1529953358794: weblogic.application.ModuleException: java.lang.NullPointerException
[java] WLST-WLS-1529953358794: at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:192)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:187)
[java] WLST-WLS-1529953358794: at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:83)
[java] WLST-WLS-1529953358794: at weblogic.work.ContextWrap.run(ContextWrap.java:46)
[java] WLST-WLS-1529953358794: at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:666)
[java] WLST-WLS-1529953358794: at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
[java] WLST-WLS-1529953358794: at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
[java] WLST-WLS-1529953358794: at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
[java] WLST-WLS-1529953358794: at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
[java] WLST-WLS-1529953358794: at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)
[java] WLST-WLS-1529953358794: at weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)
[java] WLST-WLS-1529953358794: at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)"
"Caused by: java.lang.NullPointerException
[java] WLST-WLS-1529953358794: at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
[java] WLST-WLS-1529953358794: at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
[java] WLST-WLS-1529953358794: at weblogic.spring.monitoring.instrumentation.SpringClassPreprocessor.createSpringInstrumentorEngineIfNecessary(SpringClassPreprocessor.java:67)
[java] WLST-WLS-1529953358794: at weblogic.spring.monitoring.instrumentation.SpringClassPreprocessor.(SpringClassPreprocessor.java:26)
[java] WLST-WLS-1529953358794: at weblogic.spring.monitoring.instrumentation.SpringInstrumentationUtils.addSpringInstrumentor(SpringInstrumentationUtils.java:87)
[java] WLST-WLS-1529953358794: at weblogic.servlet.internal.WebAppInternalModuleExtension$SpringInstrumentationExtension.doInstrumentation(WebAppInternalModuleExtension.java:113)
[java] WLST-WLS-1529953358794: at weblogic.servlet.internal.WebAppInternalModuleExtension$SpringInstrumentationExtension.access$400(WebAppInternalModuleExtension.java:102)
[java] WLST-WLS-1529953358794: at weblogic.servlet.internal.WebAppInternalModuleExtension.prePrepare(WebAppInternalModuleExtension.java:57)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:293)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:285)
[java] WLST-WLS-1529953358794: at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:109)
[java] WLST-WLS-1529953358794: ... 13 more
[java] WLST-WLS-1529953358794:
[java] WLST-WLS-1529953358794: and
[java] WLST-WLS-1529953358794:
[java] WLST-WLS-1529953358794: weblogic.application.ModuleException: java.lang.NullPointerException
[java] WLST-WLS-1529953358794: at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:192)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:187)
[java] WLST-WLS-1529953358794: at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:83)
[java] WLST-WLS-1529953358794: at weblogic.application.utils.StateMachineDriver.nextStateInParallel(StateMachineDriver.java:144)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.flow.ModuleStateDriver.parallelPrepare(ModuleStateDriver.java:46)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:75)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:55)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:727)
[java] WLST-WLS-1529953358794: at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:239)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:66)
[java] WLST-WLS-1529953358794: at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
[java] WLST-WLS-1529953358794: at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:65)
[java] WLST-WLS-1529953358794: at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:229)
[java] WLST-WLS-1529953358794: at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:103)
[java] WLST-WLS-1529953358794: at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:241)
[java] WLST-WLS-1529953358794: at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:794)
[java] WLST-WLS-1529953358794: at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1340)
[java] WLST-WLS-1529953358794: at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:267)
[java] WLST-WLS-1529953358794: at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:177)
[java] WLST-WLS-1529953358794: at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:186)
[java] WLST-WLS-1529953358794: at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:14)
[java] WLST-WLS-1529953358794: at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:47)
[java] WLST-WLS-1529953358794: at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:666)
[java] WLST-WLS-1529953358794: at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
[java] WLST-WLS-1529953358794: at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
[java] WLST-WLS-1529953358794: at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
[java] WLST-WLS-1529953358794: at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
[java] WLST-WLS-1529953358794: at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)
[java] WLST-WLS-1529953358794: at weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)
[java] WLST-WLS-1529953358794: at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)"
Finally the solution was found, it was issue with the jar antlr-2.7.6.jar packaged with the ear file conflicting with the default class loader.
Solution : -Changed the weblogic.xml to add antlr package to be loaded from an application and not from default class loader.
Another solution : adding
set JAVA_OPTIONS=%JAVA_OPTIONS% -DANTLR_USE_DIRECT_CLASS_LOADING=true
… at setDomainEnv.cmd also worked for me
i am using testng to run my testcases written in Java but its failing by giving this error.
As a lack of developing knowledge i am unable to find out the exact root cause of following error :
[2013-11-11 08:31:57,401] ERROR PoolService-0 com.zycus.testautomation.common.Utility afterExecutionOfTestcase - Logout Failed =>java.lang.NullPointerException: null value in entry: url=null
[java] java.lang.NullPointerException: null value in entry: url=null
[java] at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:235)
[java] at com.google.common.collect.ImmutableBiMap.of(ImmutableBiMap.java:61)
[java] at com.google.common.collect.ImmutableMap.of(ImmutableMap.java:80)
[java] at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:276)
[java] at com.zycus.testautomation.common.LoginLogoutUtil.iAnalyzeLogout(LoginLogoutUtil.java:92)
[java] at com.zycus.testautomation.common.Utility.afterExecutionOfTestcase(Utility.java:1256)
[java] at com.zycus.testautomation.ianalyze.testcase.ABCPartTwo.checkUnsavedReportPopUp(ABCPartTwo.java:202)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[java] at java.lang.reflect.Method.invoke(Unknown Source)
[java] at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
[java] at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
[java] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
[java] at org.testng.internal.TestMethodWithDataProviderMethodWorker.call(TestMethodWithDataProviderMethodWorker.java:73)
[java] at org.testng.internal.TestMethodWithDataProviderMethodWorker.call(TestMethodWithDataProviderMethodWorker.java:14)
[java] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
[java] at java.util.concurrent.FutureTask.run(Unknown Source)
[java] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[java] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
[java] at java.util.concurrent.FutureTask.run(Unknown Source)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[java] at java.lang.Thread.run(Unknown Source)
A little help would be appreciated, thanks in advance
I'm new to selenium.
I am running an existing selenium RC code.
When i try to launch the hub I got the following error
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
Buildfile: build.xml does not exist!
Build failed
So I downloaded JDK files. Then I changed the system variables
Now it is pointing to
C:\>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.7.0_11
C:\>echo %PATH%
c:\ruby\bin;C:\ant\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C
:\Program Files\Windows Imaging\;C:\Program Files\Common Files\Roxio Shared\DLLS
hared\;C:\Program Files\Java\jre1.6.0_05\bin;C:\Program Files\Java\jdk1.7.0_11
C:\>echo %ANT_HOME%
C:\ant\bin\ant.bat
I ran the following bat file to launch the hub - launch hub.bat
title Hub
cd C:\selenium\Grid\selenium-grid-1.0.4
c:\ant\bin\ant launch-hub
OUTPUT
C:\selenium\Grid\selenium-grid-1.0.4>c:\ant\bin\ant launch-hub
Buildfile: build.xml
launch-hub:
[java] jan 16, 2013 2:45:25 PM com.thoughtworks.selenium.grid.hub.HubRegist
ry gridConfiguration
[java] INFO: Loaded grid configuration:
[java] ---
[java] hub:
[java] environments:
[java] -
[java] browser: "*firefox"
[java] name: Firefox on Windows
[java] -
[java] browser: "*firefox"
[java] name: Firefox on OS X
[java] -
[java] browser: "*firefox"
[java] name: Firefox on Linux
[java] -
[java] browser: "*iehta"
[java] name: IE on Windows
[java] -
[java] browser: "*safari"
[java] name: Safari on OS X
[java] -
[java] browser: "*firefox"
[java] name: "*firefox"
[java] -
[java] browser: "*firefox2"
[java] name: "*firefox2"
[java] -
[java] browser: "*firefox3"
[java] name: "*firefox3"
[java] -
[java] browser: "*chrome"
[java] name: "*chrome"
[java] -
[java] browser: "*iexplore"
[java] name: "*iexplore"
[java] -
[java] browser: "*iehta"
[java] name: "*iehta"
[java] -
[java] browser: "*safari"
[java] name: "*safari"
[java] -
[java] browser: "*opera"
[java] name: "*opera"
[java] -
[java] browser: "*googlechrome"
[java] name: "*googlechrome"
[java] -
[java] browser: "*firefoxproxy"
[java] name: "*firefoxproxy"
[java] -
[java] browser: "*pifirefox"
[java] name: "*pifirefox"
[java] -
[java] browser: "*iexploreproxy"
[java] name: "*iexploreproxy"
[java] -
[java] browser: "*piiexplore"
[java] name: "*piiexplore"
[java] -
[java] browser: "*safariproxy"
[java] name: "*safariproxy"
[java]
[java] 2013-01-16 14:45:25.161::INFO: Logging to STDERR via org.mortbay.lo
g.StdErrLog
[java] 2013-01-16 14:45:25.224::INFO: jetty-6.0.x
[java] 2013-01-16 14:45:25.364::WARN: failed SocketConnector # 0.0.0.0:444
4
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.TwoStacksPlainSocketImpl.socketBind(Native Method)
[java] at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl
.java:376)
[java] at java.net.TwoStacksPlainSocketImpl.bind(TwoStacksPlainSocketIm
pl.java:101)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175)
[java] at java.net.ServerSocket.bind(ServerSocket.java:376)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:237)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:181)
[java] at org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketC
onnector.java:78)
[java] at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.ja
va:72)
[java] at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector
.java:251)
[java] at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector
.java:145)
[java] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCyc
le.java:40)
[java] at org.mortbay.jetty.Server.doStart(Server.java:239)
[java] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCyc
le.java:40)
[java] at com.thoughtworks.selenium.grid.hub.HubServer.main(HubServer.j
ava:39)
[java] 2013-01-16 14:45:25.364::WARN: failed Server#d38c3d
[java] java.net.BindException: Address already in use: JVM_Bind
[java] at java.net.TwoStacksPlainSocketImpl.socketBind(Native Method)
[java] at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl
.java:376)
[java] at java.net.TwoStacksPlainSocketImpl.bind(TwoStacksPlainSocketIm
pl.java:101)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175)
[java] at java.net.ServerSocket.bind(ServerSocket.java:376)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:237)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:181)
[java] at org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketC
onnector.java:78)
[java] at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.ja
va:72)
[java] at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector
.java:251)
[java] at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector
.java:145)
[java] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCyc
le.java:40)
[java] at org.mortbay.jetty.Server.doStart(Server.java:239)
[java] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCyc
le.java:40)
[java] at com.thoughtworks.selenium.grid.hub.HubServer.main(HubServer.j
ava:39)
[java] Exception in thread "main" java.net.BindException: Address already i
n use: JVM_Bind
[java] at java.net.TwoStacksPlainSocketImpl.socketBind(Native Method)
[java] at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl
.java:376)
[java] at java.net.TwoStacksPlainSocketImpl.bind(TwoStacksPlainSocketIm
pl.java:101)
[java] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175)
[java] at java.net.ServerSocket.bind(ServerSocket.java:376)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:237)
[java] at java.net.ServerSocket.<init>(ServerSocket.java:181)
[java] at org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketC
onnector.java:78)
[java] at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.ja
va:72)
[java] at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector
.java:251)
[java] at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector
.java:145)
[java] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCyc
le.java:40)
[java] at org.mortbay.jetty.Server.doStart(Server.java:239)
[java] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCyc
le.java:40)
[java] at com.thoughtworks.selenium.grid.hub.HubServer.main(HubServer.j
ava:39)
My training document says I should
• Wait to see the ‘started Socket Connector’ statement and ‘44’;
But I didn't get it.
I think it is because of failed SocketConnector.
Please help me to fix it.
These lines tells you that the port 4444 is already opened by another process
[java] 2013-01-16 14:45:25.364::WARN: failed SocketConnector # 0.0.0.0:4444
[java] java.net.BindException: Address already in use: JVM_Bind
You should check what this process could be and shut it, or modify your build.xml to change the port on which the hub is to start
Use netstat -an on Windows
NOTE : If you've run your ant file multiple times, the process that opened the 4444 port is maybe the same that you're trying to launch, which has no yet be terminated.
I certainly make wrong, but antlr's gunit seems to have no option for the users.
bash-3.2$ java org.antlr.gunit.Interp --help
Exception in thread "main" java.io.FileNotFoundException: --help (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at java.io.FileInputStream.<init>(FileInputStream.java:79)
at org.antlr.runtime.ANTLRFileStream.load(ANTLRFileStream.java:59)
at org.antlr.runtime.ANTLRFileStream.<init>(ANTLRFileStream.java:47)
at org.antlr.runtime.ANTLRFileStream.<init>(ANTLRFileStream.java:42)
at org.antlr.gunit.Interp.main(Interp.java:62)
bash-3.2$
Especially, I would like to turn on verbose option, otherwise it tells really little when error occurs.
Do you know how to turn on its verbose/debug option?
[java] -----------------------------------------------------------------------
[java] executing testsuite for grammar:while with 31 tests
[java] -----------------------------------------------------------------------
[java] 2 failures found:
[java] test15 (variables, line20) -
[java] expected: OK
[java] actual: FAIL
[java]
[java] test20 (read, line27) -
[java] expected: OK
[java] actual: FAIL
[java]
Assuming you're using antlr3, looking at the source on GitHub (https://github.com/antlr/antlr3/blob/master/gunit/src/main/java/org/antlr/gunit/Interp.java) you are correct that there is no verbose option.
A way to verify why your tests are failing would be to run the input through AntlrWorks in debug mode, so that you can see what rules are matching.