Re: No error message

Konstantin Priblouda <kpriblouda-/[email protected]>
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <[email protected]>

--- Daniel Beland <[email protected]> wrote:

> Hi,
> 
> 
> When I run the hibernate doclet in maven with the
> current SNAPSHOT version,
> we do not see the error message anymore.
> 
> I get: org.picocontainer.PicoLifecycleException:
> PicoLifecycleException:
> method 'public abstract void
> org.picocontainer.Startable.start()', instance
>
'org.xdoclet.plugin.hibernate.HibernateMappingPlugin@dc1f04,
> null
> 
> 
> If I run maven in debug mode (-X) I can see the
> nested error.
> 
> Caused by: java.lang.RuntimeException:
> java.lang.RuntimeException: @
> hibernate.bag cascade="save-update" inverse="true"
> lazy="true"
> table="ext_EVENT_CHASSIS" readonly="true"
>  in com.rf1.data.ext.Chassis (line 302):
> readonly is an invalid parameter name.
> 
> 
> Is this a problem in the plugin or in XDoclet
> itself?


This is kind of a maven feature.  Since xdoclet
plugins are just POJOs configured with picocontainer, 
picocontainer wraps original exception 
( tag validation, even before plugin actually does
something ) with PicoLifecycleException  - and 
maven happily swallows original cause unless it told
to go into debug mode. 

I canb verify though, whether message is writen to
stderrr before throwing ( this is in qtags
implementation plugin ) 


regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.