This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 157805 - NumberFormatException: For input string: "6RC1"
Summary: NumberFormatException: For input string: "6RC1"
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-02 20:05 UTC by Chris Kutler
Modified: 2009-02-02 23:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (54.82 KB, text/plain)
2009-02-02 20:15 UTC, Chris Kutler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Kutler 2009-02-02 20:05:46 UTC
Reported by a customer (and verified by me):

The customer wrote:

Installing the latest jruby puts it in a folder called jruby-1.1.6RC1, which causes a
problem when trying to run the rubyweblog app. Specifically, the rails adaptor fails to
start, due to a number format exception on '6RC1'. Probably worth putting a note about
this in the tutorial, or even better allowing non-numeric version strings when glassfish
starts up.

Tf one simply tries to rename the jruby folder (e.g. by just removing RC1) that doesn't
work, because the ruby platform manager still defines it as JRuby 1.1.6RC1, and when the
server starts it complains that "JRuby installation not found at C:\jruby\jruby-1.1.6RC1"

Now trying the suggested (by the error message) fix of specifying the gruby home in
C:\Program Files\glassfish-v3-prelude\glassfish\domains\domain1\config\domain.xml
...
which also didn't work:

[stuff deleted from customer email ... see attached log file]
Caused by: java.lang.NumberFormatException: For input string: "6RC1"
[stuff deleted from customer email ... see attached log file]

I've now spent 3 1/2 hours on this "10 minute" tutorial.

--- end of customer email ---

Note: there is a work around to change the path to the new installation using the Platform Manager, but the user is
doing one of the beginner tutorials so they don't know that yet.

I will attach my log shortly.

I realize that JRuby 1.1.6 is now out so this is moot, but there will be RC candidates going forward, so this might be
something we want to fix.
Comment 1 Chris Kutler 2009-02-02 20:15:28 UTC
Created attachment 76485 [details]
log file
Comment 2 _ pcw 2009-02-02 22:40:10 UTC
There's nothing in that log about a NumberFormatException?  Perhaps you meant the GlassFish server.log?

If this exception is in the GlassFish log, then it's GlassFish issue and should be filed in GlassFish issue tracker at
https://glassfish.dev.java.net/servlets/ProjectIssues

In such case, please close this issue with a comment referring to the GlassFish issue.
Comment 3 Chris Kutler 2009-02-02 23:05:26 UTC
Am closing bug.

Here is the output from the customer's email.

INFO: Launching GlassFish on Apache Felix OSGi platform
Welcome to Felix.
=================
INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [7]
INFO: Started bundle org.glassfish.core.kernel [96]
INFO: Started bundle org.glassfish.common.common-util [78]
INFO: Started bundle GlassFish-Application-Common-Module [63]
INFO: APIClassLoader = Class Loader for Bundle [GlassFish-Application-Common-Module [63] ]
INFO: registering service = org.apache.felix.framework.StartLevelImpl@7be8c2, contract =
org.osgi.service.startlevel.StartLevel, name = null
INFO: registering service = org.apache.felix.framework.PackageAdminImpl@4cd580, contract =
org.osgi.service.packageadmin.PackageAdmin, name = null
no resource bundle found for version, using default GlassFish version
INFO: Started bundle org.glassfish.branding.branding [29]
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
INFO: Started bundle org.glassfish.common.internal-api [82]
INFO: Started bundle org.glassfish.admin.config-api [70]
INFO: Started bundle org.glassfish.registration.glassfish-registration [92]
INFO: Started bundle org.glassfish.deployment.deployment-autodeploy [57]
INFO: Started bundle org.glassfish.deployment.deployment-common [88]
INFO: Started bundle org.glassfish.flashlight.flashlight-framework [91]
INFO: Listening on port 8080
INFO: Network listener http-listener-2 on port 8181 disabled per domain.xml
INFO: Listening on port 4848
INFO: Started bundle org.glassfish.common.container-common [99]
INFO: The Admin Console Web Application has been downloaded.
INFO: GlassFish v3 Prelude startup time : Felix(17844ms) startup services(4000ms)
total(21844ms)
INFO: Started bundle org.glassfish.admin.monitoring-core [77]
INFO: Started bundle org.glassfish.deployment.deployment-admin [69]
INFO: Started bundle org.glassfish.security.security [59]
INFO: Started bundle org.glassfish.persistence.jpa-connector [60]
INFO: Started bundle org.glassfish.web.gf-web-connector [114]
INFO: Started bundle org.glassfish.connectors.gf-connectors-connector [75]
INFO: Started bundle org.glassfish.scripting.gf-jruby-connector [56]
INFO: Started bundle org.glassfish.scripting.grizzly-jruby-module [38]
INFO: Dynamic pool created. Initial runtimes will be 1, hard minimum is 1, hard maximum is
2.If you experiance out of memory errors, consider increasing the heap size or setting the
jruby.runtime.min or jruby.runtime.max Java system properties. If starting GlassFish using
java CLI then provide it as system property, such as -Djruby.runtime.min=1
-Djruby.runtime.max=2, otherwise make an entry into
$GLASSFISH_INSTALL/domains/domain1/config/domain.xml, such as
-Djruby.runtime.min=1-Djruby.runtime.max=2.
SEVERE: Error creating RailsAdapter: null
java.lang.reflect.InvocationTargetException
        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:513)
        at org.glassfish.scripting.rails.RailsApplication.(RailsApplication.java:94)
        at org.glassfish.scripting.rails.RailsDeployer.load(RailsDeployer.java:103)
        at org.glassfish.scripting.rails.RailsDeployer.load(RailsDeployer.java:63)
        at
com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:499)
        at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:176)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329)
        at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:99)
        at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:250)
        at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:176)
        at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147)
        at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
        at
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
        at
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
        at
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
        at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
        at
com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
        at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
        at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
Caused by: java.lang.NumberFormatException: For input string: "6RC1"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:456)
        at java.lang.Integer.parseInt(Integer.java:497)
        at com.sun.grizzly.jruby.RailsAdapter$JRubyVersion.(RailsAdapter.java:137)
        at com.sun.grizzly.jruby.RailsAdapter$JRubyVersion.(RailsAdapter.java:131)
        at com.sun.grizzly.jruby.RailsAdapter.(RailsAdapter.java:110)
        at com.sun.grizzly.jruby.RubyRuntime.(RubyRuntime.java:48)
        ... 30 more
INFO: Loading Rails application rubyweblog at /rubyweblog
SEVERE: Error registering RailsAdapter for application rubyweblog
org.glassfish.api.container.EndpointRegistrationException: The endpoint adapter is null
        at
com.sun.enterprise.v3.services.impl.GrizzlyProxy.registerEndpoint(GrizzlyProxy.java:192)
        at
com.sun.enterprise.v3.services.impl.GrizzlyProxy.registerEndpoint(GrizzlyProxy.java:58)
        at
com.sun.enterprise.v3.services.impl.GrizzlyService.registerEndpoint(GrizzlyService.java:372)
        at
com.sun.enterprise.v3.services.impl.GrizzlyService.registerEndpoint(GrizzlyService.java:357)
        at
com.sun.enterprise.v3.services.impl.GrizzlyService.registerEndpoint(GrizzlyService.java:343)
        at org.glassfish.scripting.rails.RailsDeployer.load(RailsDeployer.java:112)
        at org.glassfish.scripting.rails.RailsDeployer.load(RailsDeployer.java:63)
        at
com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:499)
        at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:176)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329)
        at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:99)
        at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:250)
        at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:176)
        at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147)
        at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
        at
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
        at
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
        at
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
        at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
        at
com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
        at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
        at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
INFO: Deployment of rubyweblog done is 906 ms
INFO: Started bundle org.glassfish.common.glassfish-naming [84]
INFO: Started bundle org.glassfish.common.glassfish-api [100]
INFO: Started bundle org.glassfish.connectors.connectors-runtime [23]
INFO: Started bundle org.glassfish.transaction.jta [53]
INFO: Started JMXConnector, JMXService URL =
service:jmx:rmi:///jndi/rmi://Quercus:8686/jmxrmi