[GLASSFISH-21515] Possible null pointer dereference Created: 12/Feb/16  Updated: 12/Feb/16

Status: Open
Project: glassfish
Component/s: verifier
Affects Version/s: 4.1.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: AppChecker Assignee: Sanjeeb Sahoo
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: 30 seconds
Time Spent: Not Specified
Original Estimate: 30 seconds


 Description   

Strangely that variable specMappingInfo was used before it was checked:

  if (specMappingInfo.length()!=0 && specMappingInfo!=null)

it seems it should be

  if (specMappingInfo!=null && specMappingInfo.length()!=0)

File: appserver/verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/Result.java
Line: 119

This possible defect found by static analyzer AppChecker






[GLASSFISH-21495] Transaction Rolled back due to timeout Created: 26/Jan/16  Updated: 12/Feb/16

Status: Open
Project: glassfish
Component/s: ejb_container
Affects Version/s: 4.1.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: cghislai Assignee: Srini
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

After upgrade from GF 4.1 to Glassfish 4.1.1, I get timed out transactions, with a warning in the log:
Warning: EJB5123:Rolling back timed out transaction [JavaEETransactionImpl: txId=51 nonXAResource=9 jtsTx=null localTxStatus=1 syncs=[com.sun.ejb.containers.SimpleEjbResourceHandlerImpl@2df56bef, com.sun.ejb.containers.ContainerSynchronization@3f02d7bb, org.eclipse.persistence.internal.jpa.transaction.JTATransactionWrapper$1@5fd05f0e, org.eclipse.persistence.transaction.JTASynchronizationListener@6a5a3c2b, com.sun.enterprise.resource.pool.PoolManagerImpl$SynchronizationListener@6cf6889c, org.eclipse.persistence.transaction.JTASynchronizationListener@456035b6]] for [PlaineService]

The method triggering this rollback imports a fair amount of data and regularly flushes the persistence context. Yet, once completed after several minutes, the warning and rollback occur.

The presence of @Asynchronous or @TransactionAttribute annotations to the method does not seem to have any impact on this issue.

Using GF 4.1, the method worked correctly.



 Comments   
Comment by napu [ 12/Feb/16 ]

I can confirm the same issue.





[GLASSFISH-21509] AsyncRunLevelContext (from hk2-runlevel.jar) is not on the classpath Created: 04/Feb/16  Updated: 10/Feb/16

Status: Open
Project: glassfish
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: daniel_armbrust Assignee: Joe Di Pol
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

It appears that the way that GlassFish is configuring the classloader for a deployed war is preventing the class AsyncRunLevelContext from being visible.

This breaks the ability to deploy code that utilizes HK2 internally, with the RunLevelController - any attempt to use the RunLevelController results in failure.

While debugging this issue: http://stackoverflow.com/questions/35190359/hk2-glassfish-jersey-incompatibility

I noticed that if I deploy code that attempts to do this:

ServiceLocator locator = ServiceLocatorUtilities.createAndPopulateServiceLocator();
looker.getService(RunLevelController.class));
locator.getService(AsyncRunLevelContext.class));

It will result in the RunLevelController service coming back with null, and the AsyncRunLevelContext doing this:

[2016-02-03T21:14:30.483-0500] [glassfish 4.1] [SEVERE] [] [javax.enterprise.web] [tid: _ThreadID=46 _ThreadName=admin-listener(1)] [timeMillis: 1454552070483] [levelValue: 1000] [[
  WebModule[/isaac-rest-1.0-SNAPSHOT]StandardWrapper.Throwable
java.lang.NoClassDefFoundError: org/glassfish/hk2/runlevel/internal/AsyncRunLevelContext
    at gov.vha.isaac.ochre.api.LookupService.get(LookupService.java:114)
    at gov.vha.isaac.rest.ApplicationConfig.onStartup(ApplicationConfig.java:55)
    at org.glassfish.jersey.server.ApplicationHandler.onStartup(ApplicationHandler.java:1165)
    at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:172)
    at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:362)
    at javax.servlet.GenericServlet.init(GenericServlet.java:244)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1583)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1382)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5732)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5977)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:691)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2286)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1932)
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:139)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Unknown Source)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Unknown Source)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
    at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:253)
    at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:231)
    at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:275)
    at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:133)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
    at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
    at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
    at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
    at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
    at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:309)
    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
    at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
    at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292)
    at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139)
    at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:375)
    at org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:316)
    at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179)
    at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
    at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
    at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
    at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
    at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
    at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
    at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
    at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
    at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
    at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
    at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext
    at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1783)
    at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633)
    ... 84 more
]]

Not sure if this has anything to do with it, but both of those implementation classes are flagged as:

@Visibility(DescriptorVisibility.LOCAL)
public class RunLevelControllerImpl implements RunLevelController {

The docs for DescriptorVisiblity don't say anything about impacting the classpath.

Why are these classes which are provided by the hk2-runlevel.jar file - which is in the modules folder of GlassFish - available to a ServiceLocator I construct?

If I provide my own copy of the hk2-runlevel.jar file - then these classes are available - but classloader confusion seems to take over, and the ServiceLocator can't seem to locate any of my other HK2 annotated services.



 Comments   
Comment by daniel_armbrust [ 04/Feb/16 ]

The question at the end should say "Why are these classses ... NOT available" .... - I guess I'm not allowed to edit the submission to make corrections.

Comment by jwells [ 04/Feb/16 ]

The DescriptorVisibility is (probably) not part of the problem, all that controls is whether or not children of a ServiceLocator can see the service. This is much more likely some problem with the configuration of the Application classloader.

Comment by daniel_armbrust [ 10/Feb/16 ]

I have also verified at this point that my code which utilizes HK2 deploys fine on Tomcat, WebLogic and Wildfly.

So, not an HK2 issue, purely a Glassfish / Classpath issue with how it is exposing HK2 services (and/or not letting applications deploy their own versions of HK2)





[GLASSFISH-21514] HTTP errors: Connection is closed, Broken Pipe, TimeoutException Created: 09/Feb/16  Updated: 09/Feb/16

Status: Open
Project: glassfish
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: pranahata Assignee: Joe Di Pol
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

GF 4.1.1.
JDK 1.8 u72
CentOS 64 bit VM



 Description   

Lots of these recently, most of our HTTP calls are used for transmitting serialized data or uploading files.

2016-02-09 08:12:53,288 ryan 58.110.161.175 http-listener-1(3) ERROR c.a.util.transport.rpc.client.server.RpcServlet Exception serializing response from Rpc
Request

{clazzName=com.tbi.bms.service.InspectionDashboardService, methodName=findAll, methodParamTypeNames=[com.tbi.bms.model.inspection.InspectionStatus, java.lang.String, com.tb i.bms.model.user.AppUser, java.util.Date, java.util.Date], args=[null, , null, Fri Jan 09 00:00:00 AWST 2015, Wed Mar 09 08:07:26 AWST 2016]}

org.apache.commons.lang3.SerializationException: java.io.IOException: Connection is closed
at org.apache.commons.lang3.SerializationUtils.serialize(SerializationUtils.java:157) ~[commons-lang3-3.3.2.jar:3.3.2]
at com.anahata.util.transport.rpc.RpcStreamer.serialize(RpcStreamer.java:185) ~[anahata-util-1.5.10-SNAPSHOT.jar:na]
at com.anahata.util.transport.rpc.RpcStreamer.stream(RpcStreamer.java:241) ~[anahata-util-1.5.10-SNAPSHOT.jar:na]
at com.anahata.util.transport.rpc.client.server.RpcServlet.service(RpcServlet.java:145) ~[anahata-util-1.5.10-SNAPSHOT.jar:na]
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682) [web-core.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344) [web-core.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [web-core.jar:na]
at com.anahata.util.web.remoteinfo.RemoteInfoFilter.doFilter(RemoteInfoFilter.java:48) [yam-server-1.6.4-SNAPSHOT.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [web-core.jar:na]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316) [web-core.jar:na]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160) [web-core.jar:na]
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734) [web-core.jar:na]
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673) [web-core.jar:na]
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99) [web-glue.jar:na]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174) [web-core.jar:na]
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:416) [web-core.jar:na]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:283) [web-core.jar:na]
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) [kernel.jar:na]
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) [kernel.jar:na]
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.Proc

Also lots of these:

2016-02-05 16:34:47,514 Tony 60.224.19.14 http-listener-1(18) ERROR c.a.util.transport.rpc.client.server.RpcServlet Exception caught from service invocation
org.apache.commons.lang3.SerializationException: java.io.IOException: java.util.concurrent.TimeoutException
at org.apache.commons.lang3.SerializationUtils.deserialize(SerializationUtils.java:232) ~[commons-lang3-3.3.2.jar:3.3.2]
at com.anahata.util.transport.rpc.RpcStreamer.deserialize(RpcStreamer.java:299) ~[anahata-util-1.5.10-SNAPSHOT.jar:na]
at com.anahata.util.transport.rpc.RpcStreamer.receiveStreaming(RpcStreamer.java:292) ~[anahata-util-1.5.10-SNAPSHOT.jar:na]
at com.anahata.util.transport.rpc.client.server.RpcServlet.service(RpcServlet.java:95) ~[anahata-util-1.5.10-SNAPSHOT.jar:na]
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682) [web-core.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344) [web-core.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [web-core.jar:na]
at com.anahata.util.web.remoteinfo.RemoteInfoFilter.doFilter(RemoteInfoFilter.java:48) [yam-server-1.6.4-SNAPSHOT.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) [web-core.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [web-core.jar:na]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316) [web-core.jar:na]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160) [web-core.jar:na]
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734) [web-core.jar:na]
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673) [web-core.jar:na]
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99) [web-glue.jar:na]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174) [web-core.jar:na]
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:416) [web-core.jar:na]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:283) [web-core.jar:na]
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) [kernel.jar:na]
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) [kernel.jar:na]
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571) [nucleus-grizzly-all.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72]
Caused by: java.io.IOException: java.util.concurrent.TimeoutException
at org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:90) ~[nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.TransportFilter.handleRead(TransportFilter.java:173) ~[nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.DefaultFilterChain.read(DefaultFilterChain.java:351) [nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.filterchain.FilterChainContext.read(FilterChainContext.java:736) ~[nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.http.io.InputBuffer.blockingRead(InputBuffer.java:1107) ~[nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.http.server.io.ServerInputBuffer.blockingRead(ServerInputBuffer.java:95) ~[nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.http.io.InputBuffer.fill(InputBuffer.java:1131) ~[nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.http.io.InputBuffer.read(InputBuffer.java:348) ~[nucleus-grizzly-all.jar:na]
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:267) ~[web-core.jar:na]
at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:270) ~[web-core.jar:na]
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238) ~[na:1.8.0_72]
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) ~[na:1.8.0_72]
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:122) ~[na:1.8.0_72]
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2303) ~[na:1.8.0_72]
at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2596) ~[na:1.8.0_72]
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2606) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readTypeString(ObjectInputStream.java:1413) ~[na:1.8.0_72]
at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:719) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:831) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1602) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1623) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) ~[na:1.8.0_72]
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238) ~[na:1.8.0_72]
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) ~[na:1.8.0_72]
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:122) ~[na:1.8.0_72]
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2303) ~[na:1.8.0_72]
at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2596) ~[na:1.8.0_72]
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2606) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readTypeString(ObjectInputStream.java:1413) ~[na:1.8.0_72]
at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:719) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:831) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1602) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1623) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) ~[na:1.8.0_72]
at java.util.ArrayList.readObject(ArrayList.java:791) ~[na:1.8.0_72]
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_72]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_72]
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1900) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) ~[na:1.8.0_72]
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) ~[na:1.8.0_72]
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1707) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1345) ~[na:1.8.0_72]
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) ~[na:1.8.0_72]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) ~[na:1.8.0_72]
at org.apache.commons.lang3.SerializationUtils.deserialize(SerializationUtils.java:224) ~[commons-lang3-3.3.2.jar:3.3.2]
... 36 common frames omitted
Caused by: java.util.concurrent.TimeoutException: null
at org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:126) ~[nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorReader.read(TemporarySelectorReader.java:75) ~[nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.AbstractReader.read(AbstractReader.java:72) ~[nucleus-grizzly-all.jar:na]
at org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:77) ~[nucleus-grizzly-all.jar:na]
... 122 common frames omitted






[GLASSFISH-9048] Unable to build domains under 1.7.0-ea Created: 06/Aug/09  Updated: 08/Feb/16

Status: Open
Project: glassfish
Component/s: installation
Affects Version/s: v2.1.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: esmithbss Assignee: Snjezana Sevo-Zenzerovic
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: Linux


Issuezilla Id: 9,048
Status Whiteboard:

v3_exclude

Tags: 3_1-exclude, future-exclude

 Description   

I just installed Glassfish 2.1-b60e Jar under Ubuntu Linux 9.04 (EEEbuntu 3.0)
and during the domain creation received the following error:

BUILD FAILED
/home/esmith/Apps/Glassfish-2.1/setup.xml:161: The following error occurred
while executing this line:
/home/esmith/Apps/Glassfish-2.1/setup.xml:151: Glassfish requires JDK 1.5 or
higher, you have java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b59)
Java HotSpot(TM) Server VM (build 16.0-b03, mixed mode)

It appears that the setup script cannot determine that 1.7.0 is greater than 1.5.x



 Comments   
Comment by ne110415 [ 19/Aug/09 ]

Changing to right component.

Comment by Snjezana Sevo-Zenzerovic [ 14/Sep/09 ]

Issue not applicable to v3, adjusting target milestone and exclude keyword.

Comment by Snjezana Sevo-Zenzerovic [ 30/Aug/10 ]

...

Comment by Snjezana Sevo-Zenzerovic [ 30/Aug/10 ]

...

Comment by scatari [ 05/Jul/11 ]

Not a bug on 3.1.1.

Comment by stephenwilburn [ 28/Dec/11 ]

To get around this issue I edited the setup.xml file to include my current JDK version "1.7.0_02"

This allowed for a successful build.

(around lines 145-150 of the setup.xml file in the % glassfish directory)

<condition property="java.version.acceptable">
<or>
<contains string="$

{targeted.java.version}" substring="1.5"/>
<contains string="${targeted.java.version}

" substring="1.7.0_02"/>
</or>
</condition>

Comment by vovtz [ 08/Feb/16 ]

For a project that still uses GlassFish 2.1.1 in 2016, I changed the setup.xml like this:

    <condition property="java.version.acceptable">
       <or>
         <contains string="${targeted.java.version}" substring="1.5"/>
         <contains string="${targeted.java.version}" substring="1.6"/>
         <contains string="${targeted.java.version}" substring="1.7"/>
         <contains string="${targeted.java.version}" substring="1.8"/>
       </or>
    </condition>




[GLASSFISH-21513] HTTP status 404 - Not Found on instance the cluster and Local Exception Stack Created: 06/Feb/16  Updated: 06/Feb/16

Status: Open
Project: glassfish
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: nickyfulls Assignee: Joe Di Pol
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

have create the cluster "mycluster", two local instance and the resources jms/Queue1, jms/Queue2 and jms/Topic with target server and cluster.

So in this way I created the cluster:

create-cluster mycluster

create-instance --node localhost-domain1 --cluster mycluster instance01

create-instance --node localhost-domain1 --cluster mycluster instance02

[...]

start-cluster mycluster

deploy --target mycluster Coo.ear

Application deployed with name Coo.

Warning: Command _deploy did not complete successfully on server instance instance01: remote failure: Failed to load the application on instance instance01. The application will not run properly. Please fix your application and redeploy.

Exception while loading the app : EJB Container initialization error. Please see server.log for more details.

Warning: Command _deploy did not complete successfully on server instance instance02: remote failure: Failed to load the application on instance instance02. The application will not run properly. Please fix your application and redeploy.

Exception while loading the app : EJB Container initialization error. Please see server.log for more details. Command deploy completed with warnings.

[...]

On [server]: hostname:8080/FE-war/ all right.

On [instance01 the cluster] hostname:28080/FE-war

and

On [instance02 the cluster] hostname:28081/FE-war

I get this desperate HTTP status 404 - Not Found ((((

Complete logs file server, instance01, instance02, [...]:

https://drive.google.com/folderview?id=0B7CqU8774DG8RGx0VkRVeEZXclE&usp=sharing

2016-02-06T17:00:24.593+0100] [glassfish 4.1] [SEVERE] [] [org.eclipse.persistence.session./file:/home/glassfish/glassfish4/glassfish/nodes/localhost-domain1/Coo1/applications/ejb-timer-service-app/WEB-INF/classes/___EJB__Timer__App.ejb] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1454774410800] [timeMillis: 1454774424593] [levelValue: 1000] [[

Local Exception Stack: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.1.v20150605-31e8258): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException: Errore di connessione al server localhost sulla porta 1527 con messaggio Connessione rifiutata. Error Code: 0 [...]






Generated at Sat Feb 13 16:45:00 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.