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 126985 - BPEL Samples should support Glassfish with nondefault ports
Summary: BPEL Samples should support Glassfish with nondefault ports
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: JBI Test Driver (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@soa
URL:
Keywords:
Depends on: 133751 136264
Blocks:
  Show dependency tree
 
Reported: 2008-02-08 11:11 UTC by Andrei Chistiakov
Modified: 2009-11-08 09:29 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Chistiakov 2008-02-08 11:11:15 UTC
Reproduced with build 200802060003.

To reproduce the bug:
- install GlassFish so it would use ports 8089, 8189, 4849 instead of 8080, 8181, 4848 respectively
- create TRS sample app;
- deploy and test it.

3 of 4 tests fail due to differences in port configuration.
Comment 1 Sergey Lunegov 2008-02-08 11:47:28 UTC
Vladimir, we should look at this and decide whether we can easily fix it or not.
Comment 2 Vladimir Yaroslavskiy 2008-02-20 10:35:12 UTC
We can use a token variable, let it be _HttpPort_ for HTTP port instead of hardcoded default value 8080
in wsdl files. This token must be certainly specified before deployment.

It is unclear when and how it should be done: wsdl files which should be changed live in EJB and BPEL modules.
Application server is set in EJB and Comp projects. What should be done if user change server in one project only?
What we should do if no application server in IDE?

I think that this issue is too risky for implementation. TRS is *sample* and we can add information in our
tutorials and guidelines that TRS *must* be run on Application server with default http port 8080.
Note that 8080 is default HTTP port for the JavaEE web services. I'm voting not to touch TRS at all.

QA, please, specify *detailed* algorithm how and when default http port 8080 should be changed in
all cases (application server is changed, is absent etc.)
Comment 3 Sergey Lunegov 2008-02-20 11:00:30 UTC
The whole idea of sample is they should work smoothly with default configurations. The ability to work with non-default
configurations is usefull but not mandatory. Will try to fix it for FCS. Decreasing to P3.
Comment 4 Andrei Chistiakov 2008-03-12 17:01:22 UTC
If the product is installed with nondefault values of used ports, BPEL samples should be configured accordingly. The
values are known and set while the product is being installed. The other cases such as the app server is reconfigured
after the installation or is missing, are not considered here.
Comment 5 Vladimir Yaroslavskiy 2008-03-13 14:31:27 UTC
Can you please provide API to get the host and port of the GlassFish application server?
Comment 6 Petr Hejl 2008-06-02 20:24:32 UTC
There is an api - issue 133751. GF part of the work - issue 136264.
Comment 7 Vince Kraemer 2008-12-02 20:12:46 UTC
none of these TM values are valid at this point
Comment 8 Jayashri Visvanathan 2008-12-04 01:28:16 UTC
Vince, does this issue still exist ? If not, can you please close it ?
thanks
Comment 9 Jayashri Visvanathan 2009-01-07 22:34:08 UTC
looks like this issue is fixed.
Comment 10 Andrei Chistiakov 2009-03-24 11:03:08 UTC
Reproducible with NetBeans IDE Dev (Build 200903030229)
Comment 11 Petr Hejl 2009-08-06 12:35:03 UTC
API is already there as mentioned...
Comment 12 Sergey Lunegov 2009-08-07 08:53:13 UTC
Vladimir, please take a look.
Comment 13 Vladimir Yaroslavskiy 2009-08-11 11:19:26 UTC
related: j2eeserver module
Comment 14 Vladimir Yaroslavskiy 2009-08-14 11:56:52 UTC
The issue is not BPEL samples specific, the samples don't contain any server configuration.
The root is in compapp.projects.jbi module:

Details: 
<Concurrent test thread 0> did not complete. Success rate 0/1 
)
14.08.2009 14:54:56 com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
SEVERE: SAAJ0010: Unable to read response
java.lang.NullPointerException
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:438)
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:214)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:185)
        at org.netbeans.modules.compapp.catd.util.Util.sendMessage(Util.java:422)
        at org.netbeans.modules.compapp.catd.ConfiguredTest$ConcurrentTestSendOnlyRunnable.run(ConfiguredTest.java:1887)
        at java.lang.Thread.run(Thread.java:619)
com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException:
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:191)
        at org.netbeans.modules.compapp.catd.util.Util.sendMessage(Util.java:422)
        at org.netbeans.modules.compapp.catd.ConfiguredTest$ConcurrentTestSendOnlyRunnable.run(ConfiguredTest.java:1887)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read
response: null
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:185)
        ... 3 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:448)
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:214)
        ... 5 more

CAUSE:

java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:185)
        at org.netbeans.modules.compapp.catd.util.Util.sendMessage(Util.java:422)
        at org.netbeans.modules.compapp.catd.ConfiguredTest$ConcurrentTestSendOnlyRunnable.run(ConfiguredTest.java:1887)
        at java.lang.Thread.run(Thread.java:619)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:448)
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:214)
        ... 5 more

CAUSE:

java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:185)
        at org.netbeans.modules.compapp.catd.util.Util.sendMessage(Util.java:422)
        at org.netbeans.modules.compapp.catd.ConfiguredTest$ConcurrentTestSendOnlyRunnable.run(ConfiguredTest.java:1887)
        at java.lang.Thread.run(Thread.java:619)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to read response: null
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:448)
        at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:214)
        ... 5 more