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 76434

Summary: Verifier gives a non-informative error message when missing ejb-ref-type
Product: serverplugins Reporter: mrslump <mrslump>
Component: AVKAssignee: Nitya Doraisamy <nityad>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: Macintosh   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: project for demonstrating the issue

Description mrslump 2006-05-16 14:03:56 UTC
When verifying a war project and the web.xml file contains an ejb-ref element for which the ejb-ref-
type element is missing i get the following a NullPointerException

Error Name : com.sun.enterprise.tools.verifier.tests.web.elements.WebEjb
RefTypeElement
Error Description : java.lang.NullPointerException
at com.sun.enterprise.tools.verifier.tests.web.elements.WebEjbRefTypeEle
ment.check(WebEjbRefTypeElement.java:64)
at com.sun.enterprise.tools.verifier.tests.web.WebTest.check(WebTest.jav
a:67)
at com.sun.enterprise.tools.verifier.CheckMgr.check(CheckMgr.java:120)
at com.sun.enterprise.tools.verifier.web.WebCheckMgrImpl.check(WebCheckM
grImpl.java:105)
at com.sun.enterprise.tools.verifier.BaseVerifier.verify(BaseVerifier.ja
va:133)
at com.sun.enterprise.tools.verifier.web.WebVerifier.verify(WebVerifier.
java:79)
at com.sun.enterprise.tools.verifier.VerificationHandler.runVerifier(Ver
ificationHandler.java:223)
at com.sun.enterprise.tools.verifier.VerificationHandler.verifyArchive(V
erificationHandler.java:134)
at com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:131)
at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:101)


    <ejb-ref>
        <ejb-ref-name>ejb/Hello</ejb-ref-name>
<!--        <ejb-ref-type>Session</ejb-ref-type> -->
        <remote>fi.kronodoc.test.Hello</remote>
    </ejb-ref>
Comment 1 Erno Mononen 2006-05-18 08:49:22 UTC
Reassigning to serverplugins, please evaluate. Maybe a bug in GF.
Comment 2 _ ludo 2006-06-06 22:35:13 UTC
verifier code error...
Comment 3 Vince Kraemer 2006-07-20 17:37:14 UTC
please attach sample war that demonstrates this issue.
Comment 4 mrslump 2006-07-31 12:42:10 UTC
Created attachment 32356 [details]
project for demonstrating the issue
Comment 5 mrslump 2006-07-31 12:43:01 UTC
please modify netbeans/Hello/hello-war/web/WEB-INF/web.xml in hello.tgz to reproduce
Comment 6 Vince Kraemer 2006-08-22 01:22:13 UTC
Opened https://glassfish.dev.java.net/issues/show_bug.cgi?id=974 to track the
issue in the GF verifier.

This basic issue is that the plugin forwards this junk to users.... So I am
marking this issue as a dup of issue 80322.

*** This issue has been marked as a duplicate of 80322 ***