Bugs item #532713, was opened at 2002-03-20 21:47
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=532713&group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Bohlen (mattes3)
Assigned to: Nobody/Anonymous (nobody)
Summary: DVC deployment: misleading error message

Initial Comment:
OS = Win2K
JDK = 1.3.1_02

When I deploy an EJB jar that contains a dependent 
value class (DVC) with a property that has no setter, 
the server complains about a missing GETTER instead of 
a missing SETTER.

Server trace on console:

21:38:04,224 ERROR [ServiceController] JMException 
thrown during ServiceProxy operation create on mbean 
jboss.j2ee:service=EJB,jndiName=customer/Customer
org.jboss.deployment.DeploymentException: Unable to 
find getter for property type on dependent value class 
somepackage.Foo

Example source code:

/**
 * This is a dependent value class.
 *
 * @jboss:dvc
 */
public class Foo implements Serializable {
{
   /**
    * @jboss:property
    * @jboss:jdbc-type VARCHAR
    * @jboss:sql-type VARCHAR(20)
    */
    public String getType() {
        return type;
    }
    // missing setType here!
}

More server trace on console:

        at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCValueProper
tyMetaData.<in
it>(JDBCValuePropertyMetaData.java:67)
        at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCValueClassM
etaData.<init>
(JDBCValueClassMetaData.java:50)
        at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplication
MetaData.<init
>(JDBCApplicationMetaData.java:218)
        at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoad
er.load(JDBCXm
lFileLoader.java:75)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDB
CEntityMetaDat
a(JDBCStoreManager.java:503)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create
(JDBCStoreManag
er.java:277)
        at 
org.jboss.ejb.plugins.CMPPersistenceManager.create
(CMPPersistenceMana
ger.java:134)
        at org.jboss.ejb.EntityContainer.create
(EntityContainer.java:330)
        at org.jboss.ejb.Container.invoke
(Container.java:745)
        at org.jboss.ejb.EntityContainer.invoke
(EntityContainer.java:995)


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=532713&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to