logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Madhava <Madhavrao.Kulka...@Sun.COM>
Subject I am getting DatagramSocket exception on HPUX
Date Fri, 25 Aug 2006 11:02:58 GMT
Hi All,

When my application uses log4j at system bootup time it crashes with 
following message.
Can any one give some pointers like are there any limitations in log4j?

Thanks in advance.

java.net.SocketException: Operation not supported (errno:223)
        at java.net.PlainDatagramSocketImpl.datagramSocketCreate(Native Method)
        at java.net.PlainDatagramSocketImpl.create(PlainDatagramSocketImpl.java:73)
        at java.net.DatagramSocket.createImpl(DatagramSocket.java:317)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:158)
        at org.apache.log4j.helpers.SyslogWriter.<init>(SyslogWriter.java:47)
        at org.apache.log4j.net.SyslogAppender.setSyslogHost(SyslogAppender.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:196)
        at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:155)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:120)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
        at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
        at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
        at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:524)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:408)
        at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:340)
        at com.sun.directory.proxy.util.LogConfig.configure(LogConfig.java:2603)
        at com.sun.directory.proxy.util.Category.configure(Category.java:349)
        at com.sun.directory.proxy.util.Log.configure(Log.java:258)
        at com.sun.directory.proxy.server.DistributionServer.<init>(DistributionServer.java:1126)
        at com.sun.directory.proxy.server.DistributionServerMain.main(DistributionServerMain.java:142)
log4j:ERROR Could not instantiate DatagramSocket to localhost. All logging will FAIL.
java.net.SocketException: Operation not supported (errno:223)
        at java.net.PlainDatagramSocketImpl.datagramSocketCreate(Native Method)
        at java.net.PlainDatagramSocketImpl.create(PlainDatagramSocketImpl.java:73)
        at java.net.DatagramSocket.createImpl(DatagramSocket.java:317)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:158)
        at org.apache.log4j.helpers.SyslogWriter.<init>(SyslogWriter.java:47)
        at org.apache.log4j.net.SyslogAppender.setSyslogHost(SyslogAppender.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:196)
        at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:155)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:120)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
        at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
        at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
        at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:524)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:408)
        at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:340)



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message