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 129366 - verifier refers to non-existing chapter in the ejb 3.0 spec.
Summary: verifier refers to non-existing chapter in the ejb 3.0 spec.
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: AVK (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: pslechta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-06 09:34 UTC by Jan Horvath
Modified: 2008-07-10 18:27 UTC (History)
0 users

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 Jan Horvath 2008-03-06 09:34:23 UTC
From: 	rd_blaha@hotmail.com
Subject: 	[nbusers] NB6.0, EJB, and the Verifier - Refers to EJB 3.0 Specifications that cannot be found
Date: 	March 5, 2008 4:49:29 PM GMT+01:00
To: 	nbusers@netbeans.org

This is my first time using the EJB verifier.  

I receive the following Warning:

Enterprise bean class must declare all class static fields as final. Please
refer to EJB 3.0 "Core Contracts and Requirements" Specification Section
#20.1.2* for further information.

After which I logically receive the following Fail:

The field or method where injection annotation is used must not be static or
final. Please refer to EJB 3.0 "Core Contracts and Requirements"
Specification Section #15.2.2 for further information.

The problem I a m running into is that I did a search for the specifications
listed.  Under the  http://jcp.org/en/jsr/all Java Community Process  for
220 Enterprise Java Beans(TM) 3.0 with its appropriate Description and Spec
Lead listings.  So I select that to look at the specs.  I get a listing of
the various stages of the Specifications so I select the Final Release
(sounds reasonable).  Selecting the download page I get two possible
download pages to which to go.  I select the first since it refers to
downloading the Specification for Evaluation or Developing.  To my chagrin I
get not one, but three specs. I check them each out to find which has a
Chapter 15 and a Chapter 20 (according to my NB verifier results).  The
JSR-000220 Enterprise JavaBeans 3.0 Final Release (ejbcore) was the only one
of the three that had both of those specific chapter sections.  

At this point, much to my dismay I search for Section 20.1.2  (but it only
has 20.1, not 20.1.1 and definitely not 2.1.2).  The other Section
referenced 15.2.2 is not to be found either, but it does have 15.2.1.

What in the world is the NB 6.0 EJB Verifier referring to????   When I did a
Google search for > EJB 3.0 "Core Contracts and Requirement" Specification
Section 20.1.2 < all I found was documents that made reference to the
Specification, not the Specification itself.

This is very aggravating in that I don't know if NB 6.0 is wrong and the
Specification I found that it references is right or that NB 6.0 is right
and the Specification is still out there hiding someplace.  Can someone
point me to the correct specification or tell me NB 6.0 is giving me the
wrong information and please tell me the correct reference I need to go to
to find the corrective actions the specification is supposedly referring to.

Thank you.
-- 
View this message in context: http://www.nabble.com/NB6.0%2C-EJB%2C-and-the-Verifier---Refers-to-EJB-3.0-Specifications-that-cannot-be-found-
tp15853358p15853358.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Comment 1 pslechta 2008-07-10 17:10:37 UTC
The specification can be downloaded from http://jcp.org/aboutJava/communityprocess/pfd/jsr220/index.html (final draft).
The file name is ejb-3_0-fr-spec-ejbcore.pdf.

The first error message can be found in section 21.1.2 Programming Restrictions:

An enterprise bean must not use read/write static fields. Using read-only static fields is
allowed. Therefore, it is recommended that all static fields in the enterprise bean class be
declared as final.

The second error message can be located in section 16.2.2 Annotations for Environment Entries...

So it seems that the numbers are shifted by one... :-)
Comment 2 pslechta 2008-07-10 18:23:21 UTC
Correction: (final release) not (final draft).
Comment 3 pslechta 2008-07-10 18:27:10 UTC
Verifier is part of Glassfish distribution.
I created bug against this component: https://glassfish.dev.java.net/issues/show_bug.cgi?id=5290

Closing this issue as WONTFIX because the problem is not in NetBeans code. For more details about the problem please
follow the Glassfish issue (the link above).