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 164834 - Unable to send JMS from servlet
Summary: Unable to send JMS from servlet
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-11 05:32 UTC by Michal Mocnak
Modified: 2009-05-22 08:02 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (39.98 KB, image/png)
2009-05-11 05:32 UTC, Michal Mocnak
Details
stack trace (3.15 KB, text/plain)
2009-05-18 15:54 UTC, Michal Mocnak
Details
stack trace (2.55 KB, text/plain)
2009-05-21 09:58 UTC, Michal Mocnak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Mocnak 2009-05-11 05:32:12 UTC
Found in nb6.7 build #200905101401

1. create maven enterprise project (web and ejb included)
2. create message driven bean with local project destination
3. create servlet and try to send JMS message

==>> you are unable to do this, see attached screenshot, the dialog what appeared have both the project location and
bean value disabled. Only the server destination is available. In case there are no server destinations available i am
unable to send message as well as i am unable to send message via my own destination. Actually in ant project it's
functional (not local destination but mdb part)
Comment 1 Michal Mocnak 2009-05-11 05:32:36 UTC
Created attachment 81872 [details]
screenshot
Comment 2 Milos Kleint 2009-05-13 14:00:05 UTC
reassigning to ejb support. I'm not sure what information from projects the dialog is driven by.

for an opinion on app server setting requirement in the project, see my comment in issue 164835. 
Comment 3 Marek Fukala 2009-05-18 11:50:06 UTC
Michale, can you please verify whether the wizard doesn't work even if you explicitly bind an appserver to the maven
project? Thanks.
Comment 4 Michal Mocnak 2009-05-18 15:53:46 UTC
Actually the problem has been solved but there is a new problem called NPE ;o) when i finish the send jms dialog the NPE
occurs. See attached stack trace.
Comment 5 Michal Mocnak 2009-05-18 15:54:37 UTC
Created attachment 82326 [details]
stack trace
Comment 6 Milos Kleint 2009-05-18 16:55:12 UTC
this sort of exceptions occur when the codegenerator expects something on classpath while it's not actually there.
Comment 7 Marek Fukala 2009-05-20 10:34:23 UTC
hopefully fixed in web-main#4a9c035529ef
Comment 8 Marek Fukala 2009-05-20 10:34:46 UTC
fixed
Comment 9 Quality Engineering 2009-05-21 08:35:00 UTC
Integrated into 'main-golden', will be available in build *200905210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4a9c035529ef
User: Marek Fukala <mfukala@netbeans.org>
Log: #164834 - Unable to send JMS from servlet
Comment 10 Michal Mocnak 2009-05-21 09:57:05 UTC
Reopening. Another exception occurs. See attached stack.
Comment 11 Michal Mocnak 2009-05-21 09:58:22 UTC
Created attachment 82529 [details]
stack trace
Comment 12 Marek Fukala 2009-05-21 11:49:45 UTC
workarounded in web-main#148cc54f6a76

Now user can edit the source meanwhile the injection is in progress but it seems to work well anyway.

Now I managed to inject the JMS call. 
Comment 13 Quality Engineering 2009-05-22 07:33:55 UTC
Integrated into 'main-golden', will be available in build *200905220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/148cc54f6a76
User: Marek Fukala <mfukala@netbeans.org>
Log: #164834/2 - Unable to send JMS from servlet
Comment 14 Michal Mocnak 2009-05-22 08:02:02 UTC
Verified