Bug 231432 - View Domain Server Log failure
View Domain Server Log failure
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: GlassFish
7.4
PC Linux
: P2 (vote)
: 8.0
Assigned To: TomasKraus
issues@serverplugins
NB_AND_SDK
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-18 11:35 UTC by infonaut
Modified: 2013-08-29 14:18 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description infonaut 2013-06-18 11:35:32 UTC
Product Version = NetBeans IDE 7.4 Beta (Build 201306132201)
Operating System = Linux version 3.5.0-34-generic running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01
INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3.1.2.2 (build 5)

NB tries to read all server.log files from a remote server, even all rotated log files (really needed?) and stop reading after glassfish throws a  java.lang.RuntimeException, there is no IDE log message.

further logging is successful.


[#|2013-06-18T13:22:15.218+0200|SEVERE|glassfish3.1.2|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=62;_ThreadName=Thread-2;|service exception
java.lang.RuntimeException: ClientAbortException:  java.io.IOException: Broken pipe
	at org.glassfish.admin.rest.LazyJerseyInit.reportError(LazyJerseyInit.java:198)
	at org.glassfish.admin.rest.adapter.RestAdapter.reportError(RestAdapter.java:350)
	at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:183)
	at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
	at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
	at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
	at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
	at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
	at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
	at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
	at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
	at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
	at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
	at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
	at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
	at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
	at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
	at java.lang.Thread.run(Thread.java:722)
Caused by: ClientAbortException:  java.io.IOException: Broken pipe
	at com.sun.grizzly.tcp.http11.GrizzlyOutputBuffer.doFlush(GrizzlyOutputBuffer.java:439)
	at com.sun.grizzly.tcp.http11.GrizzlyOutputBuffer.flush(GrizzlyOutputBuffer.java:405)
	at com.sun.grizzly.tcp.http11.GrizzlyOutputStream.flush(GrizzlyOutputStream.java:140)
	at org.glassfish.admin.rest.LazyJerseyInit.reportError(LazyJerseyInit.java:195)
	... 20 more
Caused by: java.io.IOException: Broken pipe
	at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
	at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
	at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:94)
	at sun.nio.ch.IOUtil.write(IOUtil.java:65)
	at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
	at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:108)
	at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:76)
	at com.sun.grizzly.util.SSLOutputWriter.flushChannel(SSLOutputWriter.java:102)
	at com.sun.grizzly.ssl.SSLOutputBuffer.flushChannel(SSLOutputBuffer.java:138)
	at com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:498)
	at com.sun.grizzly.http.SocketChannelOutputBuffer.flush(SocketChannelOutputBuffer.java:476)
	at com.sun.grizzly.http.ProcessorTask.action(ProcessorTask.java:1287)
	at com.sun.grizzly.ssl.SSLProcessorTask.action(SSLProcessorTask.java:164)
	at com.sun.grizzly.tcp.Response.action(Response.java:268)
	at com.sun.grizzly.tcp.http11.GrizzlyOutputBuffer.doFlush(GrizzlyOutputBuffer.java:434)
	... 23 more
Comment 1 TomasKraus 2013-07-09 14:23:14 UTC
NB reads log files trough asadmin/rest interface and code that is sending whole logs (include rotated) is GlassFish feature.

There are some ways how to skip near the end. I can try to let user do it. But it nay require to implement some enhancement to current functionality.

Unfortunately I'm too busy to handle this for 7.4.

GlassFish asadmin code exception is not NetBeans side P2 issue. Lowering to P3.
Comment 2 TomasKraus 2013-08-29 14:18:28 UTC
Marking this as P2 request for enhancement. GlassFish exception is not bug on plugin side.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo