dev@glassfish.java.net

Re: v3.1 asadmin start-database reports error (twice) on success

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Fri, 26 Mar 2010 15:02:02 -0700

There are 2 exceptions that happen during the run:

1: java.lang.IllegalThreadStateException: process hasn't exited
         at java.lang.UNIXProcess.exitValue(UNIXProcess.java:122)
         at
com.sun.enterprise.admin.cli.CLIProcessExecutor.exitValue(CLIProcessExecutor.java:79)
         at
com.sun.enterprise.admin.cli.optional.StartDatabaseCommand.executeCommand(StartDatabaseCommand.java:228)
         at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:254)
         at
com.sun.enterprise.admin.cli.AsadminMain.executeCommand(AsadminMain.java:230)
         at com.sun.enterprise.admin.cli.AsadminMain.main(AsadminMain.java:168)


2: java.lang.NullPointerException
         at com.sun.enterprise.admin.cli.CLICommand.getOption(CLICommand.java:931)
         at
com.sun.enterprise.admin.cli.CLICommand.getBooleanOption(CLICommand.java:942)
         at
com.sun.enterprise.admin.cli.optional.StartDatabaseCommand.executeCommand(StartDatabaseCommand.java:246)
         at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:254)
         at
com.sun.enterprise.admin.cli.AsadminMain.executeCommand(AsadminMain.java:230)
         at com.sun.enterprise.admin.cli.AsadminMain.main(AsadminMain.java:168)


The 1st one is from 'cpe.execute("startDatabaseCmd", ...)' and the comments in
the catch block say that it's good. Why? Derby wasn't running on my system. Is
the NPE the culpit?

thanks,
-marina

Bill Shannon wrote:
> And after upgrading to the current build, and rebuilding everything,
> you're still seeing it?
>
> It's of course possible that my recent changes broke something, but since
> I can't reproduce it I can't debug it.
>
>
> Marina Vatkina wrote on 03/26/10 09:59 AM:
>
>> Thanks for confirming. (Bill, I'm not alone :))
>>
>> -marina
>>
>> Jennifer Chou wrote:
>>
>>> Hi Marina,
>>>
>>> I also see the same problem. I haven't yet tried with the latest fresh
>>> build.
>>>
>>> >asadmin start-database
>>> Command start-database failed.
>>> Command start-database failed.
>>>
>>> >asadmin start-database
>>> Database already started on host 0.0.0.0, port 1527.
>>> Command start-database executed successfully.
>>>
>>> Jennifer
>>>
>>> On 3/25/2010 9:43 PM, Marina Vatkina wrote:
>>>
>>>> Is it a known problem?
>>>>
>>>> % asadmin start-database
>>>> Command start-database failed.
>>>> Command start-database failed.
>>>>
>>>> % asadmin start-database
>>>> Database already started on host 0.0.0.0, port 1527.
>>>> Command start-database executed successfully.
>>>>
>>>> -marina
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>> --
>>> Thanks, Jennifer x81033 (440-709-5095)
>>>
>>> Oracle <http://www.oracle.com>
>>> Jennifer Chou
>>> Phone: +1 44 20 7409 7350 <tel:+1%2044%2020%207409%207350> | Mobile:
>>> +1 44 755 283 8283 <tel:+1%2044%20755%20283%208283>
>>> | London, England
>>> Green Oracle <http://www.oracle.com/commitment> Oracle is committed to
>>> developing practices and products that help protect the environment
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>