Bugs item #532713, was opened at 2002-03-20 14: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: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Matthias Bohlen (mattes3)
Assigned to: Dain Sundstrom (dsundstrom)
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)
----------------------------------------------------------------------
>Comment By: Dain Sundstrom (dsundstrom)
Date: 2002-04-09 11:39
Message:
Logged In: YES
user_id=251431
Thanks. Good error messages are very important to the
success of JBossCMP, so any help in this department is
greatly appreciated. If you find another bad, confusing,
etc. error messages, please open a bug report.
Again thanks,
-dain
----------------------------------------------------------------------
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