admin@glassfish.java.net

Re: create-cluster command

From: Joseph Fialli <joe.fialli_at_oracle.com>
Date: Wed, 16 Jun 2010 17:17:35 -0400

On 6/16/10 4:49 PM, Byron Nevins wrote:
> It may be REALLY important to figure out what made the parser blow
> with an NPE. Any unhandled NPE, ever, is a failure and a bug IMHO.
> Can I have a copy of it?
Below is a stack trace (in bold) similar to one that Bobby observed. I
experienced failure during "mvn install" of gf v3.1 workspace and his
occurred starting domain.
It is probably an annotation issue on a GMS property causing this,but no
clue which one caused issues. We are just backing out our changes till
it works but
it is tedious to work that way.


create-domain:
      [echo] Directory to run command from:
/ws/gf/v3/distributions/nucleus/target/stage/glassfishv3/glassfish/bin
      [echo] Command to run:
/ws/gf/v3/distributions/nucleus/target/stage/glassfishv3/glassfish/bin/asadmin
      [exec] Using port 4848 for Admin.
      [exec] Using port 8080 for HTTP Instance.
      [exec] Using default port 7676 for JMS.
      [exec] Using default port 3700 for IIOP.
      [exec] Using default port 8181 for HTTP_SSL.
      [exec] Using default port 3820 for IIOP_SSL.
      [exec] Using default port 3920 for IIOP_MUTUALAUTH.
      [exec] Using default port 8686 for JMX_ADMIN.
      [exec] Using default port 6666 for OSGI_SHELL.
      [exec] Distinguished Name of the self-signed X.509 Server
Certificate is:
      [exec] [CN=localhost,OU=GlassFish,O=Oracle Corporation,L=Santa
Clara,ST=California,C=US]
      [exec]/* Exception in thread "Static Framework Launcher"
java.lang.NullPointerException
      [exec] at org.jvnet.hk2.config.Dom.ensureConstraints(Dom.java:163)
      [exec] at
org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:221)
      [exec] at
org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:212)
      [exec] at
org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:212)
      [exec] at
org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:212)
      [exec] at
org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:164)
      [exec] at
org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:95)
      [exec] at
org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:90)
      [exec] at
org.glassfish.config.support.DomainXml.parseDomainXml(DomainXml.java:167)
      [exec] at
org.glassfish.config.support.DomainXml.run(DomainXml.java:103)
      [exec] at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.populateConfig(AbstractModulesRegistryImpl.java:159)
      [exec] at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:144)
      [exec] at
com.sun.enterprise.glassfish.bootstrap.ASMainStatic$1$1.createHabitat(ASMainStatic.java:170)
      [exec] at
com.sun.enterprise.module.bootstrap.Main.launch(Main.java:310)
      [exec] at
com.sun.enterprise.module.bootstrap.Main.launch(Main.java:304)
      [exec] at
com.sun.enterprise.glassfish.bootstrap.ASMainStatic$1.run(ASMainStatic.java:191)
      [exec] at java.lang.Thread.run(Thread.java:637)
      [exec] Domain.xml customization failed : null*/
      [exec] Domain domain1 created.
      [exec] Domain domain1 admin port is 4848.
      [exec] Domain domain1 allows admin login as user "admin" with no
password.
      [exec] Admin login information for host [localhost] and port [4848]
      [exec] is being overwritten with credentials provided because the
      [exec] --savelogin option was used during the create-domain command.
      [exec] Login information relevant to admin user name [admin]
      [exec] for this domain [domain1] stored at
      [exec] [/Users/jf39279/.asadminpass] successfully.
      [exec] Make sure that this file remains protected.
      [exec] Information stored in this file will be used by
      [exec] asadmin commands to manage this domain.
      [exec] Command create-domain executed successfully.

-Joe
>
>
> On 6/16/2010 1:15 PM, Bobby Bissett wrote:
>> On Jun 16, 2010, at 4:03 PM, Anissa Lam wrote:
>>>
>>> Is the implementation for the create-cluster command complete ?
>>
>> I still have the GMS-related information to add. I had it all working
>> 20 minutes ago, and suddenly can't start the server and have no clue
>> what change is giving me an NPE in the domain-parsing code. Am
>> rebuilding everything now since that seems to magically work sometimes.
>>
>> The params you're trying such as haagentport and HeartbeatPort are
>> being removed. The two that you can specify on the command line are
>> going to be "multicastport" and "multicastaddress," though there are
>> defaults for both if you don't specify them.
>>
>> And I promise at one point they worked....
>>
>> Cheers,
>> Bobby
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>
>