I got following exception on my console, if it's hard to read it, you can see it on the stackoverflow: http://stackoverflow.com/questions/35784129/how-to-configure-port-in-apache-chainsaw-with-log4j2
WARNING: SocketListener(WS00943.local.).run() exception java.io.IOException: DNSIncoming corrupted message at javax.jmdns.impl.DNSIncoming.<init>(DNSIncoming.java:239) at javax.jmdns.impl.SocketListener.run(SocketListener.java:50) Caused by: java.lang.IllegalStateException: Can't overwrite cause with java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [javax.jmdns.impl.constants.DNSResultCode]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. at java.lang.Throwable.initCause(Unknown Source) at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1344) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1206) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167) at javax.jmdns.impl.DNSIncoming.readAnswer(DNSIncoming.java:342) at javax.jmdns.impl.DNSIncoming.<init>(DNSIncoming.java:229) ... 1 more Caused by: java.lang.ClassNotFoundException at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1343) ... 5 more Mar 07, 2016 2:12:29 PM javax.jmdns.impl.DNSIncoming <init> WARNING: DNSIncoming() dump dns[query,10.20.52.7:5353, length=64, id=0x0, questions=1 questions: [Pointer@2043812735 type: TYPE_PTR index 12, class: CLASS_IN index 1, name: _sleep-proxy._udp.local.]] question: [Pointer@2043812735 type: TYPE_PTR index 12, class: CLASS_IN index 1, name: _sleep-proxy._udp.local.] 0: 0000000000010000 000000010c5f736c 6565702d70726f78 79045f756470056c ........ ....._sl eep-prox y._udp.l 20: 6f63616c00000c00 0100002905a00000 1194000c00040008 0000180373dc5714 ocal.... ...).... ........ ....s.W. exception On Mon, Mar 7, 2016 at 2:13 PM, Scott Deboy <[email protected]> wrote: > I'll need to dig in to this. The advertiserURI isn't coming across > for some reason. > > Scott > > > On 3/7/16, Bilguun Ariunbold <[email protected]> wrote: > > Thanks Scott, I've used the developer snapshot that you mentioned but > still > > no luck. If you see the screen shot that I attached, WS00943 is my > > machine's local domain, smdi.com is network's domain, 10.20.91.29 is my > > machine's ip address. It seems like it's trying to connect to > > WS00943.smdi.com/10.20.91.29:4555. Is that the way it supposed to be? > When > > I double click on the entry at ZeroConf tab, it still just changes the > > connection status to Connected/Not Connected. Was I supposed to see the > > logs when I double click on that row at ZeroConf tab? > > > > > http://stackoverflow.com/questions/35784129/how-to-configure-port-in-apache-chainsaw-with-log4j2 > > > > On Fri, Mar 4, 2016 at 10:13 PM, Scott Deboy <[email protected]> > wrote: > > > >> To clarify, the 'people' path is going away - the new permanent path is: > >> > >> http://home.apache.org/~sdeboy > >> > >> > >> On 3/4/16, Scott Deboy <[email protected]> wrote: > >> > I've uploaded the developer snapshot to > >> http://people.apache.org/~sdeboy/ > >> > > >> > Extract the tarball and run bin/chainsaw > >> > > >> > It should work out-of-the-box with your current configuration. > >> > > >> > Scott > >> > > >> > > >> > On 3/4/16, Matt Sicker <[email protected]> wrote: > >> >> Oh no they finally shut down people.apache.org! > >> >> > >> >> On 4 March 2016 at 14:36, Bilguun Ariunbold < > >> [email protected]> > >> >> wrote: > >> >> > >> >>> Thank you Scott, the link you sent me was not found. Where should I > >> >>> get > >> >>> that snapshot? > >> >>> > >> >>> On Fri, Mar 4, 2016 at 3:33 PM, Scott Deboy <[email protected]> > >> >>> wrote: > >> >>> > >> >>> > You need to use the latest developer snapshot of chainsaw to work > >> with > >> >>> > log4j2. Need to see if it is still on > >> http://people.apache.org/~sdeboy > >> >>> > On Mar 4, 2016 12:18 PM, "Bilguun Ariunbold" < > >> >>> [email protected]> > >> >>> > wrote: > >> >>> > > >> >>> > > Okay, let me clarify this. I am using chainsawWebStart.jnlp to > >> start > >> >>> > > chainsaw and I choose "Let me define Receivers manually" when it > >> >>> > complained > >> >>> > > "Warning:You have no Receivers defined...". > >> >>> > > When I double click on a row in Zeroconf tab, it just changes > >> >>> connection > >> >>> > > status to Connected/Not Connected. So, when I click chainsaw-log > >> >>> > > tab, > >> >>> > below > >> >>> > > messages are repeated there as a grid: > >> >>> > > > >> >>> > > Attempting connection to 10.20.91.2/which is my machine's ip > >> >>> > > address/ > >> >>> > > Remote host 10.20.91.29 refused connection. > >> >>> > > waiting for 30000 milliseconds before reconnection > >> >>> > > > >> >>> > > > >> >>> > > > >> >>> > > My machine is Windows pc. Was I supposed to be administrator of > >> >>> > > my > >> >>> > > machine? I don't need log4j-zeroconf.jar, do I? > >> >>> > > > >> >>> > > > >> >>> > > Thanks > >> >>> > > > >> >>> > > > >> >>> > > > >> >>> > > > >> >>> > > > >> >>> > > > >> >>> > > On Fri, Mar 4, 2016 at 3:00 PM, Scott Deboy > >> >>> > > <[email protected] > >> > > >> >>> > wrote: > >> >>> > > > >> >>> > > > I don't know why it would say remote host refused connection. > >> Are > >> >>> > > > there any other errors or warnings in the chainsaw-log tab > >> >>> > > > generated > >> >>> > > > when you double-click the zeroconf entry? > >> >>> > > > > >> >>> > > > On 3/4/16, Bilguun Ariunbold <[email protected]> > >> wrote: > >> >>> > > > > Hi Scott, > >> >>> > > > > > >> >>> > > > > Thank you for your respond. > >> >>> > > > > > >> >>> > > > > Are you running Chainsaw on the same machine as the app > using > >> >>> > > > > this > >> >>> > > > > log4j2 appender config? > >> >>> > > > > > >> >>> > > > > -Yes I am, I checked a file by opening through web browsers > >> >>> > > > > by > >> >>> > > > advertiseUri > >> >>> > > > > and it was opened successfully. (Once I tested on my local, > >> I'll > >> >>> > > separate > >> >>> > > > > them to the different machines). As far as I know, chainsaw > >> uses > >> >>> 4555 > >> >>> > > as > >> >>> > > > > default port, was I supposed to specify different port in my > >> >>> appender > >> >>> > > > > definition? > >> >>> > > > > > >> >>> > > > > On Fri, Mar 4, 2016 at 2:30 PM, Scott Deboy > >> >>> > > > > <[email protected] > >> >>> > > >> >>> > > > wrote: > >> >>> > > > > > >> >>> > > > >> Are you running Chainsaw on the same machine as the app > >> >>> > > > >> using > >> >>> > > > >> this > >> >>> > > > >> log4j2 appender config? > >> >>> > > > >> > >> >>> > > > >> Chainsaw will try to load the advertiseURL directly: > >> >>> > > > >> file:///C://users/bilguuna/logs/webapp.log > >> >>> > > > >> > >> >>> > > > >> If Chainsaw is on a separate machine, multicast packets > need > >> to > >> >>> > > > >> be > >> >>> > > > >> able to flow between your environment using this log4j2 > >> >>> > > > >> appender > >> >>> and > >> >>> > > > >> Chainsaw, and then the advertiseURL needs to also be > >> accessible > >> >>> from > >> >>> > > > >> Chainsaw. > >> >>> > > > >> > >> >>> > > > >> If you are running this log4j2 appender config on a Linux > >> >>> > > > >> box > >> >>> > > > >> and > >> >>> > > > >> multicast is available across your network, you would need > >> >>> > > > >> to > >> >>> > > > >> use > >> >>> a > >> >>> > > > >> Commons-VFS supported URI in your advertiseURL in order to > >> have > >> >>> > > > >> Chainsaw tail the logs. > >> >>> > > > >> > >> >>> > > > >> Something like this for an advertiseURL: > >> >>> > > > >> > >> >>> > > > >> advertiseURI="sftp://myuser:mypass@hostname > /path/to/logfile" > >> >>> > > > >> > >> >>> > > > >> > >> >>> > > > >> > >> >>> > > > >> On 3/4/16, Bilguun Ariunbold <[email protected]> > >> >>> > > > >> wrote: > >> >>> > > > >> > Hi, > >> >>> > > > >> > > >> >>> > > > >> > > >> >>> > > > >> > > >> >>> > > > >> > I’ve been trying to see logs using Chainsaw ZeroConf but > >> >>> > > > >> > it > >> >>> > > > >> > is > >> >>> not > >> >>> > > > >> showing > >> >>> > > > >> > me any logs even though it has “Connected” connection > >> status. > >> >>> > > > >> > > >> >>> > > > >> > > >> >>> > > > >> > My workspace: > >> >>> > > > >> > > >> >>> > > > >> > Tomcat 8, > >> >>> > > > >> > > >> >>> > > > >> > Log4j2.5 > >> >>> > > > >> > > >> >>> > > > >> > Chainsaw v2 > >> >>> > > > >> > > >> >>> > > > >> > I added javax.jmdns:jmdns as a dependency to the project > >> >>> > > > >> > > >> >>> > > > >> > > >> >>> > > > >> > Here is my log4j.xml: > >> >>> > > > >> > > >> >>> > > > >> > <?xml version=*"1.0"* encoding=*"UTF-8"*?> > >> >>> > > > >> > > >> >>> > > > >> > <Configuration status=*"INFO"* > >> >>> > > > >> > advertiser=*"multicastdns"*> > >> >>> > > > >> > > >> >>> > > > >> > <Properties> > >> >>> > > > >> > > >> >>> > > > >> > <Property name=*"layout"*>%d | %-5p | [%t] > | > >> >>> %c{2} | > >> >>> > > %M > >> >>> > > > | > >> >>> > > > >> > %m%n > >> >>> > > > >> > > >> >>> > > > >> > </Property> > >> >>> > > > >> > > >> >>> > > > >> > </Properties> > >> >>> > > > >> > > >> >>> > > > >> > <Appenders> > >> >>> > > > >> > > >> >>> > > > >> > <Console name=*"Console"* > >> >>> > > > >> > target=*"SYSTEM_OUT"*> > >> >>> > > > >> > > >> >>> > > > >> > <PatternLayout pattern=*"${layout}"* > >> >>> > > > >> > /> > >> >>> > > > >> > > >> >>> > > > >> > </Console> > >> >>> > > > >> > > >> >>> > > > >> > <File name=*"Errors"* fileName= > >> >>> > > > >> > *"${sys:user.home}/logs/webapp-errors.log"* > >> >>> > > > >> > > >> >>> > > > >> > filePattern= > >> >>> > > > >> > > >> *"${sys:user.home}/logs/webapp-errors-%d{yyyy-MM-dd}-%i.log"*> > >> >>> > > > >> > > >> >>> > > > >> > <Policies> > >> >>> > > > >> > > >> >>> > > > >> > <TimeBasedTriggeringPolicy /> > >> >>> > > > >> > > >> >>> > > > >> > <SizeBasedTriggeringPolicy > >> >>> > > > >> > size=*"1 > >> >>> > MB"* > >> >>> > > /> > >> >>> > > > >> > > >> >>> > > > >> > </Policies> > >> >>> > > > >> > > >> >>> > > > >> > <DefaultRolloverStrategy max=*"10"* > >> >>> > > > >> > /> > >> >>> > > > >> > > >> >>> > > > >> > <JSONLayout> > >> >>> > > > >> > > >> >>> > > > >> > </JSONLayout> > >> >>> > > > >> > > >> >>> > > > >> > </File> > >> >>> > > > >> > > >> >>> > > > >> > <RollingFile name=*"LogFile"* fileName= > >> >>> > > > >> > *"${sys:user.home}/logs/webapp.log"* > >> >>> > > > >> > > >> >>> > > > >> > filePattern= > >> >>> > > > >> > *"${sys:user.home}/logs/webapp-%d{yyyy-MM-dd}-%i.log"* > >> >>> > > > >> > > >> >>> > > > >> > bufferedIO=*"false"* advertiseURI= > >> >>> > > > >> > *"file:///C://users/bilguuna/logs/webapp.log"* > >> >>> > > > >> > > >> >>> > > > >> > advertise=*"true"*> > >> >>> > > > >> > > >> >>> > > > >> > <PatternLayout pattern=*"${layout}"* > >> >>> > > > >> > /> > >> >>> > > > >> > > >> >>> > > > >> > <Policies> > >> >>> > > > >> > > >> >>> > > > >> > <TimeBasedTriggeringPolicy /> > >> >>> > > > >> > > >> >>> > > > >> > <SizeBasedTriggeringPolicy > >> >>> > > > >> > size=*"1 > >> >>> > MB"* > >> >>> > > /> > >> >>> > > > >> > > >> >>> > > > >> > </Policies> > >> >>> > > > >> > > >> >>> > > > >> > <DefaultRolloverStrategy max=*"10"* > >> >>> > > > >> > /> > >> >>> > > > >> > > >> >>> > > > >> > </RollingFile> > >> >>> > > > >> > > >> >>> > > > >> > </Appenders> > >> >>> > > > >> > > >> >>> > > > >> > <Loggers> > >> >>> > > > >> > > >> >>> > > > >> > <Root level=*"INFO"*> > >> >>> > > > >> > > >> >>> > > > >> > <AppenderRef ref=*"Console"* > >> >>> > > > >> > level=*"WARN"* > >> >>> > /> > >> >>> > > > >> > > >> >>> > > > >> > <AppenderRef ref=*"Errors"* > >> >>> > > > >> > level=*"WARN"* > >> >>> /> > >> >>> > > > >> > > >> >>> > > > >> > <AppenderRef ref=*"LogFile"* > >> >>> > > > >> > level=*"INFO"* > >> >>> > /> > >> >>> > > > >> > > >> >>> > > > >> > </Root> > >> >>> > > > >> > > >> >>> > > > >> > </Loggers> > >> >>> > > > >> > > >> >>> > > > >> > </Configuration> > >> >>> > > > >> > > >> >>> > > > >> > > >> >>> > > > >> > On the ZeroConf tab, I see 2 receivers which are > >> >>> > > > >> > configuration > >> >>> and > >> >>> > > > >> LogFile > >> >>> > > > >> > that both are connected. When I double click any of them, > >> >>> > > > >> > it > >> >>> just > >> >>> > > > >> > changes > >> >>> > > > >> > Connection status but not showing any logs. What should I > >> do? > >> >>> > > > >> > > >> >>> > > > >> > > >> >>> > > > >> > Update: I realized that in zeroconf folder of the > >> >>> > > > >> > chainsaw-log > >> >>> > tab, > >> >>> > > it > >> >>> > > > >> said > >> >>> > > > >> > Remote host [10.20.91.20] refused connection. Is that > >> >>> > > > >> > might > >> >>> > > > >> > be > >> >>> the > >> >>> > > > >> reason? > >> >>> > > > >> > > >> >>> > > > >> > > >> >>> > > > >> > Thank you > >> >>> > > > >> > > >> >>> > > > >> > >> >>> > > > >> > >> >>> > > --------------------------------------------------------------------- > >> >>> > > > >> To unsubscribe, e-mail: > >> >>> > > > >> [email protected] > >> >>> > > > >> For additional commands, e-mail: > >> >>> [email protected] > >> >>> > > > >> > >> >>> > > > >> > >> >>> > > > > > >> >>> > > > > >> >>> > > > > >> --------------------------------------------------------------------- > >> >>> > > > To unsubscribe, e-mail: > >> [email protected] > >> >>> > > > For additional commands, e-mail: > >> >>> > > > [email protected] > >> >>> > > > > >> >>> > > > > >> >>> > > > >> >>> > > >> >>> > >> >> > >> >> > >> >> > >> >> -- > >> >> Matt Sicker <[email protected]> > >> >> > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
