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 229057 - JBoss 7.1.1 starting but not recognized as running - NumberFormatException
Summary: JBoss 7.1.1 starting but not recognized as running - NumberFormatException
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-26 09:09 UTC by cheesus
Modified: 2013-05-02 14:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cheesus 2013-04-26 09:09:08 UTC
Hello,
NetBeans nightly 201304242301 (but also on previous nightlies)
against a jboss-as-7.1.1.Final, unzipped, 
both "just unzipped as is " or with "0.0.0.0" for public/management bind port.

Clicking "run main project" builds the EAR, starts the JBoss, deploys the thing.
However, it is never recognized that the server really has successfully started.
I must manually kill it before starting again, "port in use" otherwise.

Somehow, the serverplugin fails to connect to the server:

INFO [org.xnio]: XNIO Version 3.0.3.GA
INFO [org.xnio.nio]: XNIO NIO Implementation Version 3.0.3.GA
INFO [org.jboss.remoting]: JBoss Remoting version 3.2.3.GA
INFO [org.netbeans.modules.j2ee.jboss4.JB7Deployer]
java.lang.NumberFormatException: For input string: "8080eeeportal"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:492)
        at java.lang.Integer.parseInt(Integer.java:527)
        at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:217)
        at java.net.URL.<init>(URL.java:614)
Caused: java.net.MalformedURLException: For input string: "8080eeeportal"
        at java.net.URL.<init>(URL.java:619)
        at java.net.URL.<init>(URL.java:482)
        at java.net.URL.<init>(URL.java:431)
[catch] at org.netbeans.modules.j2ee.jboss4.JB7Deployer.run(JB7Deployer.java:136)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
WARNING [org.netbeans.modules.progress.spi.InternalHandle]: Cannot call progress on a task that was never started at org.netbeans.modules.j2ee.deployment.impl.ui.ProgressUI.progress(ProgressUI.java:153)
WARNING [org.netbeans.modules.progress.spi.InternalHandle]: Cannot call progress on a task that was never started at org.netbeans.modules.j2ee.deployment.impl.ui.ProgressUI.progress(ProgressUI.java:153)

please note that "eeeportal" ist the name of my deployment and web context,
and 8080 is the port.

I searched for 8080eeeportal in all files in jboss dirs, ~/Library/Application
Support/Netbeans and in project workspace. Not found, except in logs.

What is it trying to parse as number there ?
Should this be the port only ?
I'll be happy to search and debug further if you give me some hints.

Note, I do not have the same problem on the Linux box, with all project
files under version control, i.e. identical there.
Comment 1 Petr Hejl 2013-04-26 09:16:39 UTC
Looks like there is missing / somewhere. I'll investigate.
Comment 2 Petr Hejl 2013-04-26 09:20:13 UTC
BTW is the cotext root "eeeportal" or "/eeeportal". IIRC spec compliant is the latter. Though if this is the case it should be simple fix.
Comment 3 Petr Hejl 2013-04-26 10:16:17 UTC
Fixed in web-main cb4bf13ecad1 and javaee7 branch 638869290742.
Comment 4 cheesus 2013-04-26 12:26:58 UTC
Yes, the exception does not appear when prepending / to the context-root.

However, the successful JBoss start and deploy is still not recognized :-(
(so this was not caused by the exception...
/will open new bug if you want when we get a handle on this)

pre-run-deploy:
Starting JBoss AS 7.1.1
JBoss AS 7.1.1 Started
Distributing /Volumes/eee/develop/gitrepo/dist/eeeportal.ear to [org.jboss.as.ee.deployment.spi.DeploymentManagerTarget@231b8a03]
Deploying /Volumes/eee/develop/gitrepo/dist/eeeportal.ear
Waiting for server to start the module http://localhost:8080/eeeportal
Applicaton Deployed
JBAS016154: Operation start started
JBAS016155: Operation start completed

However, the Start/Start Debug buttons remain active, the Stop button remains
inactive (same for Server in "Services" menu...)
Clicking the "refresh server state does not help".
No error messages or useable debug messages :-(

How to produce better debug info ?
Comment 5 Petr Hejl 2013-04-26 12:44:29 UTC
Any firewall in place?
Comment 6 cheesus 2013-04-26 13:47:21 UTC
no, no firewall. local machine only.
also made sure hostname is in /etc/hosts and in proxy excludes.
also changed netbeans to "no proxy".
no change.
Comment 7 Quality Engineering 2013-04-28 02:17:26 UTC
Integrated into 'main-golden', will be available in build *201304272301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/cb4bf13ecad1
User: Petr Hejl <phejl@netbeans.org>
Log: #229057 - JBoss 7.1.1 starting but not recognized as running - NumberFormatException
Comment 8 Quality Engineering 2013-05-02 14:12:09 UTC
Integrated into 'main-golden', will be available in build *201305021042* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/638869290742
User: Petr Hejl <phejl@netbeans.org>
Log: #229057 - JBoss 7.1.1 starting but not recognized as running - NumberFormatException