axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Vasset" <tom.vas...@tomra.no>
Subject Axis and DHCP
Date Tue, 11 May 2004 13:34:38 GMT
Hi,

(My program stack: Linux (with DHCP) - Jetty - Axis 1.1)

Has axis been tested/used on servers with DHCP (Dynamic Host
Configuration Protocol )? When I deploy my service with the AdminClient
(new AdminClient().process(opts)) I get the exception below. It seem
like SessionUtils use the InetAddress.getLocalHost() method to get the
local host, which will not work with DHCP. It should instead use the
java.net.NetworkInterface to safely get this address; 

Should I report this as a bug? 
 
java.net.UnknownHostException: dhcp: dhcp
	at java.net.InetAddress.getLocalHost(Unknown Source)
	at
org.apache.axis.utils.SessionUtils.getEntropy(SessionUtils.java:214)
	at
org.apache.axis.utils.SessionUtils.getRandom(SessionUtils.java:191)
	at
org.apache.axis.utils.SessionUtils.generateSessionId(SessionUtils.java:1
22)
	at org.apache.axis.SOAPPart.<init>(SOAPPart.java:161)
	at org.apache.axis.Message.setup(Message.java:341)
	at org.apache.axis.Message.<init>(Message.java:242)
	at org.apache.axis.client.Call.invoke(Call.java:1669)
	at
org.apache.axis.client.AdminClient.process(AdminClient.java:355)
	at
org.apache.axis.client.AdminClient.process(AdminClient.java:334)
	at
org.apache.axis.client.AdminClient.process(AdminClient.java:341)
	at
org.apache.axis.client.AdminClient.process(AdminClient.java:292)

Followed by:

AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.UnknownHost
 faultSubcode: 
 faultString: Unknown host - could not verify admininistrator access
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace: AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.UnknownHost
 faultSubcode: 
 faultString: Unknown host - could not verify admininistrator access
 faultActor: 
 faultNode: 
 faultDetail: 

Unknown host - could not verify admininistrator access
	at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:260)
	at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:169)
	at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
zationContextImpl.java:1015)
	at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser
.java:546)
	at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocu
mentScannerImpl.java:533)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1535)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cumentFragmentScannerImpl.java:348)
	at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
39)
	at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
95)
	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
	at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
:1125)
	at javax.xml.parsers.SAXParser.parse(Unknown Source)
	at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nContextImpl.java:242)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
	at org.apache.axis.client.Call.invoke(Call.java:2553)
	at org.apache.axis.client.Call.invoke(Call.java:1672)
	at
org.apache.axis.client.AdminClient.process(AdminClient.java:355)
	at
org.apache.axis.client.AdminClient.process(AdminClient.java:334)
	at
org.apache.axis.client.AdminClient.process(AdminClient.java:341)
	at
org.apache.axis.client.AdminClient.process(AdminClient.java:292)
	at
com.tomra.hit_opts.commaxis.communicationimpl.CommunicationManagerImpl.i
nit(CommunicationManagerImpl.java:87)
	at
com.tomra.hit_apps.tru.impl.TRUImpl.&lt;init&gt;(TRUImpl.java:304)
	at
com.tomra.hit_apps.tru.impl.TRUFactoryImpl.createTRU(TRUFactoryImpl.java
:19)
	at com.tomra.hit_apps.tru.startup.Startup.dmain(Startup.java:25)
	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 com.tomra.hit_apps.tru.startup.Main.main(Main.java:83)

Mime
View raw message