Glassfish unknown host exception on install

Bug #184963 reported by Aidan Furlan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glassfish (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: glassfish

Glassfish throws an UnknownHostException on install when the hostname of the local machine does not appear as an alias of 127.0.0.1.

Eg if the following appears in the hosts file:
127.0.0.1 localhost
127.0.1.1 lincoln.LOCALDOMAIN

Glassfish cannot resolve the hostname and throws this exception:

SEVERE: property_reader.unknownHost
java.net.UnknownHostException: lincoln: lincoln
        at java.net.InetAddress.getLocalHost(InetAddress.java:1346)
        at com.sun.enterprise.util.net.NetUtils.getCanonicalHostName(NetUtils.java:89)
        at com.sun.enterprise.util.ASenvPropertyReader.setSystemProperties(ASenvPropertyReader.java:188)
        at com.sun.enterprise.cli.commands.S1ASCommand.<init>(S1ASCommand.java:140)
        at com.sun.enterprise.cli.commands.BaseLifeCycleCommand.<init>(BaseLifeCycleCommand.java:86)
        at com.sun.enterprise.cli.commands.CreateDomainCommand.<init>(CreateDomainCommand.java:84)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at com.sun.enterprise.cli.framework.CommandFactory.createCommand(CommandFactory.java:76)
        at com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:150)
        at com.sun.enterprise.cli.framework.CLIMain.main(CLIMain.java:63)

However if you change the first line of the hosts file to
127.0.0.1 localhost lincoln
it will work.

Revision history for this message
Mina Shokry (minashokry) wrote :

a similar problem occurs when running a J2ME application with Sun wireless toolkit

WMAClient: localhost has no IP address: java.net.UnknownHostException: Mina-Laptop: Mina-Laptop
Warning: Failed to initialize WMA message routing support
ClientConnector: localhost has no IP address: java.net.UnknownHostException: Mina-Laptop: Mina-Laptop
Warning: Failed to initialize Bluetooth (JSR 82) support

this makes wireless messaging APIs and bluetooth apis not available in emulation.

I found this problem previously and when not finding a solution I reinstalled ubuntu and it works fine after reinstallation
but the problem appeared again with unknown reasons.

Revision history for this message
Matthias Klose (doko) wrote :

any feedback / progress on this report?

Revision history for this message
Aidan Furlan (aidan-epochlabs) wrote :

I don't know whether this issue is related but I tried installing again and just after org.apache.derby.jdbc.EmbeddedDriver I got:

CLI130 Could not create domain, domain1
Failed to create domain.
dpkg: error processing glassfish (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 glassfish
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 or 9.04?

Changed in glassfish:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in glassfish:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.