Open glassfishrobot opened 8 years ago
Reported by clsiu
clsiu said: Forgot to included the attachment, i will instead paste the response from server for 2.22.1 and 2.23.1 here
clsiu said:
Response from 2.22.1:
log4j:WARN No appenders could be found for logger (org.apache.commons.configuration.PropertiesConfiguration).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
1222 [validationclient-async-executor-0] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
1223 [validationclient-async-executor-0] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
1224 [validationclient-async-executor-0] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://VFHKGP101172.ASIA.bankofamerica.com:20299][total kept alive: 1; route allocated: 1 of 200; total allocated: 1 of 200]
1224 [validationclient-async-executor-0] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 0][route: {}->http://VFHKGP101172.ASIA.bankofamerica.com:20299][total kept alive: 0; route allocated: 1 of 200; total allocated: 1 of 200]
1224 [validationclient-async-executor-0] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request POST /validate/position/eee HTTP/1.1
1224 [validationclient-async-executor-0] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
1224 [validationclient-async-executor-0] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
1224 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> POST /validate/position/eee HTTP/1.1
1224 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Accept: application/xml
1224 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Content-Type: application/xml
1225 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> User-Agent: Jersey/2.22.1 (Apache HttpClient 4.5)
1225 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Transfer-Encoding: chunked
1225 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Host: VFHKGP101172.ASIA.bankofamerica.com:20299
1225 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive
1225 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Accept-Encoding: gzip,deflate
1444 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "POST /validate/position/eee HTTP/1.1[\r][\n]"
1444 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Accept: application/xml[\r][\n]"
1444 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Type: application/xml[\r][\n]"
1444 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "User-Agent: Jersey/2.22.1 (Apache HttpClient 4.5)[\r][\n]"
1444 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Transfer-Encoding: chunked[\r][\n]"
1444 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Host: VFHKGP101172.ASIA.bankofamerica.com:20299[\r][\n]"
1444 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
1444 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
1444 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "[\r][\n]"
1444 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "4b6[\r][\n]"
1444 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
{E5285C1D-5E1A-4953-A00F-34779147328F}
clsiu said:
Response from 2.23.1/2.23.2
log4j:WARN No appenders could be found for logger (org.apache.commons.configuration.PropertiesConfiguration).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
1571 [validationclient-async-executor-0] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
1573 [validationclient-async-executor-0] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
1573 [validationclient-async-executor-0] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://VFHKGP101172.ASIA.bankofamerica.com:20299][total kept alive: 1; route allocated: 1 of 200; total allocated: 1 of 200]
1573 [validationclient-async-executor-0] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 0][route: {}->http://VFHKGP101172.ASIA.bankofamerica.com:20299][total kept alive: 0; route allocated: 1 of 200; total allocated: 1 of 200]
1574 [validationclient-async-executor-0] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request POST /validate/position/eee HTTP/1.1
1574 [validationclient-async-executor-0] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
1574 [validationclient-async-executor-0] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
1574 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> POST /validate/position/eee HTTP/1.1
1574 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Accept: application/xml
1574 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Content-Type: application/xml
1574 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> User-Agent: Jersey/2.23.1 (Apache HttpClient 4.5)
1574 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Transfer-Encoding: chunked
1574 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Host: VFHKGP101172.ASIA.bankofamerica.com:20299
1574 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive
1574 [validationclient-async-executor-0] DEBUG org.apache.http.headers - http-outgoing-0 >> Accept-Encoding: gzip,deflate
1791 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "POST /validate/position/eee HTTP/1.1[\r][\n]"
1791 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Accept: application/xml[\r][\n]"
1792 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Content-Type: application/xml[\r][\n]"
1792 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "User-Agent: Jersey/2.23.1 (Apache HttpClient 4.5)[\r][\n]"
1792 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Transfer-Encoding: chunked[\r][\n]"
1792 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Host: VFHKGP101172.ASIA.bankofamerica.com:20299[\r][\n]"
1792 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
1792 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
1792 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "[\r][\n]"
1792 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "4b6[\r][\n]"
1792 [validationclient-async-executor-0] DEBUG org.apache.http.wire - http-outgoing-0 >> "<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
{E5285C1D-5E1A-4953-A00F-34779147328F}
javax.ws.rs.ProcessingException: A MultiException has 1 exceptions. They are: 1. java.lang.NullPointerException
at org.glassfish.jersey.client.ClientRuntime.processFailure(ClientRuntime.java:200) at org.glassfish.jersey.client.ClientRuntime.access$500(ClientRuntime.java:74) at org.glassfish.jersey.client.ClientRuntime$2$1$2.run(ClientRuntime.java:175) 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:340) at org.glassfish.jersey.client.ClientRuntime$2$1.failure(ClientRuntime.java:173) at org.glassfish.jersey.apache.connector.ApacheConnector$1.run(ApacheConnector.java:493) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112) at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:50) at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:37) at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:487) at org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:180) 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:340) at org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:208) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: A MultiException has 1 exceptions. They are: 1. java.lang.NullPointerException
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:478) at org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:162) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022) at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:765) at org.jvnet.hk2.internal.ServiceLocatorImpl.getUnqualifiedService(ServiceLocatorImpl.java:772) at org.jvnet.hk2.internal.IterableProviderImpl.get(IterableProviderImpl.java:111) at org.glassfish.jersey.client.ChunkedInputReader.readFrom(ChunkedInputReader.java:97) at org.glassfish.jersey.client.ChunkedInputReader.readFrom(ChunkedInputReader.java:67) at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(ReaderInterceptorExecutor.java:256) at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:235) at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:155) at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1085) at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:874) at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:834) at org.glassfish.jersey.client.ClientResponse.readEntity(ClientResponse.java:368) at org.glassfish.jersey.client.JerseyInvocation$7.completed(JerseyInvocation.java:948) at org.glassfish.jersey.client.ClientRuntime.processResponse(ClientRuntime.java:196) at org.glassfish.jersey.client.ClientRuntime.access$300(ClientRuntime.java:74) at org.glassfish.jersey.client.ClientRuntime$2$1$1.run(ClientRuntime.java:166) 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:340) at org.glassfish.jersey.client.ClientRuntime$2$1.response(ClientRuntime.java:164) at org.glassfish.jersey.apache.connector.ApacheConnector$1.run(ApacheConnector.java:491) ... 20 more Caused by: java.lang.NullPointerException at org.glassfish.jersey.client.ClientBinder$PropertiesDelegateFactory.provide(ClientBinder.java:102) at org.glassfish.jersey.client.ClientBinder$PropertiesDelegateFactory.provide(ClientBinder.java:91) at org.jvnet.hk2.internal.FactoryCreator.create(FactoryCreator.java:153) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471) ... 46 more Sep 29, 2016 10:37:40 AM org.glassfish.jersey.internal.Errors logErrors WARNING: The following warnings have been detected: WARNING: Unknown HK2 failure detected: MultiException stack 1 of 1 java.lang.NullPointerException at org.glassfish.jersey.client.ClientBinder$PropertiesDelegateFactory.provide(ClientBinder.java:102) at org.glassfish.jersey.client.ClientBinder$PropertiesDelegateFactory.provide(ClientBinder.java:91) at org.jvnet.hk2.internal.FactoryCreator.create(FactoryCreator.java:153) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471) at org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:162) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022) at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:765) at org.jvnet.hk2.internal.ServiceLocatorImpl.getUnqualifiedService(ServiceLocatorImpl.java:772) at org.jvnet.hk2.internal.IterableProviderImpl.get(IterableProviderImpl.java:111) at org.glassfish.jersey.client.ChunkedInputReader.readFrom(ChunkedInputReader.java:97) at org.glassfish.jersey.client.ChunkedInputReader.readFrom(ChunkedInputReader.java:67) at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(ReaderInterceptorExecutor.java:256) at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:235) at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:155) at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1085) at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:874) at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:834) at org.glassfish.jersey.client.ClientResponse.readEntity(ClientResponse.java:368) at org.glassfish.jersey.client.JerseyInvocation$7.completed(JerseyInvocation.java:948) at org.glassfish.jersey.client.ClientRuntime.processResponse(ClientRuntime.java:196) at org.glassfish.jersey.client.ClientRuntime.access$300(ClientRuntime.java:74) at org.glassfish.jersey.client.ClientRuntime$2$1$1.run(ClientRuntime.java:166) 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:340) at org.glassfish.jersey.client.ClientRuntime$2$1.response(ClientRuntime.java:164) at org.glassfish.jersey.apache.connector.ApacheConnector$1.run(ApacheConnector.java:491) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112) at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:50) at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:37) at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:487) at org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:180) 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:340) at org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:208) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
clsiu said: Can we have someone from Jersey team to look at it please?
clsiu said: anything further to share?
This issue was imported from java.net JIRA JERSEY-3169
An exception was thrown when we are firing async call from 2.23.1 client to 2.23.1 server.
Please find the attached response from 2.22.1 and 2.23.1 (2.23.1 NPE is the same even we are using 2.23.2)
Client side code:
So in 2.22.1 we are working perfectly fine in calling async with chunked response, but it failed with such a strange error in 2.23.1. If we send the request without using async() call, then the return can be recieved successfully and object binding are all fine.
It looks like something has changed in 2.23.1 that break the async call which is expecting chunked return
all the dependencies are pulled from maven central
Affected Versions
[2.23.2]