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 104446 - Connection issues when running driver test
Summary: Connection issues when running driver test
Status: CLOSED WONTFIX
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Sergey Lunegov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-21 21:58 UTC by kevan1138
Modified: 2007-09-05 13:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
compapp project to reproduce (20.67 KB, application/octet-stream)
2007-05-21 21:59 UTC, kevan1138
Details
xslt project to reproduce (11.51 KB, application/octet-stream)
2007-05-21 22:00 UTC, kevan1138
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kevan1138 2007-05-21 21:58:56 UTC
Build and deploy the attached projects.  Run the driver test.  The following
stacktrace is seen (abbreviated):
------------- Standard Error -----------------
May 21, 2007 1:58:13 PM com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection
post
SEVERE: SAAJ0009: Message send failed
com.sun.xml.messaging.saaj.SOAPExceptionImpl:
java.security.PrivilegedActionException:
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
        at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:146)
        at
org.netbeans.modules.compapp.catd.ConfiguredTest.sendMessage(ConfiguredTest.java:1918)
        at
org.netbeans.modules.compapp.catd.ConfiguredTest$ConcurrentTestSendOnlyRunnable.run(ConfiguredTest.java:1774)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.security.PrivilegedActionException:
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
        at java.security.AccessController.doPrivileged(Native Method)
        at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:140)
        ... 3 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
        at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:344)
        at
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:169)
        ... 5 more
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
Comment 1 kevan1138 2007-05-21 21:59:48 UTC
Created attachment 42614 [details]
compapp project to reproduce
Comment 2 kevan1138 2007-05-21 22:00:42 UTC
Created attachment 42615 [details]
xslt project to reproduce
Comment 3 kevan1138 2007-05-21 22:04:39 UTC
Additional info:
 - using NB IDE build Dev 070516
 - a similar issue in the past was caused by improperly defined jbi descriptor,
but that is not the case here
Comment 4 Jun Qian 2007-07-06 02:06:56 UTC
I am not sure if the XSLT project generates its jbi.xml correctly. 

Using a slightly older build, the XSLT project builds fine but there is only one endpoint generated. Your test case
tries to test a portType that has nothing to do with the generated endpoint, thus the test error. Trying to open the
transformation.xml file, but got the following exception: 
java.lang.AssertionError: reference should be TMapComponent type to create TMapComponent type Node
	at org.netbeans.modules.xslt.tmap.nodes.NavigatorNodeFactory.createNode(NavigatorNodeFactory.java:95)
	at org.netbeans.modules.xslt.tmap.nodes.NavigatorNodeFactory.getTransformMapNode(NavigatorNodeFactory.java:62)
	at org.netbeans.modules.xslt.tmap.navigator.TMapLogicalPanel.initNavTree(TMapLogicalPanel.java:160)
	at org.netbeans.modules.xslt.tmap.navigator.TMapLogicalPanel.getBeanTreeView(TMapLogicalPanel.java:170)
	at org.netbeans.modules.xslt.tmap.navigator.TMapLogicalPanel.showNavTree(TMapLogicalPanel.java:142)
	at org.netbeans.modules.xslt.tmap.navigator.TMapLogicalPanel.navigate(TMapLogicalPanel.java:88)
	at org.netbeans.modules.xslt.tmap.multiview.tree.TreeMultiViewElement.createTreeView(TreeMultiViewElement.java:285)
	at org.netbeans.modules.xslt.tmap.multiview.tree.TreeMultiViewElement.initializeUI(TreeMultiViewElement.java:293)
	at org.netbeans.modules.xslt.tmap.multiview.tree.TreeMultiViewElement.<init>(TreeMultiViewElement.java:91)
	at org.netbeans.modules.xslt.tmap.multiview.tree.TreeMultiViewElementDesc.createElement(TreeMultiViewElementDesc.java:57)
	at org.netbeans.core.multiview.MultiViewModel.getElementForDescription(MultiViewModel.java:191)
	at org.netbeans.core.multiview.MultiViewModel.getActiveElement(MultiViewModel.java:111)
	at org.netbeans.core.multiview.MultiViewModel.getActiveElement(MultiViewModel.java:107)
	at org.netbeans.core.multiview.MultiViewPeer.privateGetUndoRedo(MultiViewPeer.java:463)
	at org.netbeans.core.multiview.MultiViewPeer.access$500(MultiViewPeer.java:63)
	at org.netbeans.core.multiview.MultiViewPeer$DelegateUndoRedo.removeChangeListener(MultiViewPeer.java:718)
	at org.openide.actions.UndoAction$Listener.propertyChange(UndoAction.java:170)
	at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:164)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)


Using NB 6.0 M10, the XSLT project doesn't even build. I got the following error which points to the XsltProjectJBIGen
ant task:

...
init:
deps-sub-project:
PackageRetrievedFiles:
C:\Documents and Settings\jqian\Desktop\104446\XsltModule1\nbproject\build-impl.xml:141: java.lang.RuntimeException:
java.lang.NullPointerException
BUILD FAILED (total time: 6 seconds)
Comment 6 rwtibbs 2007-07-19 02:33:34 UTC
This problem has prevented me from using SOA. 
Please fix this soon!
rwtibbs
Comment 7 Vitaly Bychkov 2007-07-23 15:58:45 UTC
Kevan I looked at your test case and saw that you use incorrect operation (instead described copyEmpl with binding
http://localhost:13011/xsltRRPort there is copyJbiEmpl with binding http://localhost:13012/xsltRRJbiPort )

Kevan could you please check it.

Comment 8 kevan1138 2007-07-23 19:47:49 UTC
If the test case is incorrect, then it was generated incorrectly by driver test framework.  Please discover the issue
and fix; this ticket has gone unresolved for over 2 months!!
Comment 9 Sergey Lunegov 2007-07-24 08:34:48 UTC
Jun, please looks like problem in test driver.
Comment 10 Vitaly Bychkov 2007-07-24 12:52:23 UTC
On the third step of the Test case creating there are shown 3-operations,
So it's possible to choose wrong operation.
Comment 11 Jun Qian 2007-07-26 02:26:49 UTC
Since I still can't build the attached XSLT project, I don't know what is really going on in that project. But I don't
think there is anything wrong about the test driver.

In the following user scenario, I will use our beloved SynchronousSample as an example.

1. Create SynchronousSample;
2. Add a new PortType to the WSDL file in the BPEL project. Also add concrete Binding and Service/Port for the new PortType;
3. Create a new test case in the SynchronousSampleApplication to test the new binding operation created in step 2;
4. Deploy SynchronousSampleApplication;
5. Run the new test case created in step 3.

The test will obviously fail because in the BPEL project's generated jbi.xml file, there is no Provides/Consumes
endpoint that corresponds to the new WSDL Port created in step 2. On the other hand, there is nothing to prevent the
user from creating the test case in step 3. So in this case I would say this is a user error. The failure in the test
run is the correct behavior.
Comment 12 Jun Qian 2007-07-26 20:39:02 UTC
As to the original issue, I am going to mark it as WON'T FIX because it's a user error.

Reassigning to XSLT team to fix the XSLT project build problem.
Comment 13 Sergey Lunegov 2007-08-01 15:52:17 UTC
yes transformmap is of old style and that's the reason why xslt project can't be built.
But the root cause of the bug is that user specified incorrect operation.
When (after manual fixing of transformmap) we changed "Destination" property of Test from
http://localhost:13012/xsltRRJbiPort to http://localhost:13011/xsltRRPort test works OK.
So it's user fault. Close as WONTFIX.