[EJB 3.0] - Re: EJB3: org.hibernate.type.SerializationException: could n
by D6L
Hi,
the problem is that i don't have the permission to make changes on the DB because it's a LIVE/Production DB. So problems with releases/changes and so on.
I tried to access now my attributs via @NamedQuery like this:
SELECT r.roadPK.origin.iata,r.roadPK.destination.iata, r.availabilityMethod FROM Road r
but there I got a compiler error:
Caused by: org.hibernate.HibernateException: Errors in named queries: Road.listAll
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:397)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
| at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
| ... 75 more
By testing with
SELECT r.roadPK.origin, r.roadPK.destination,r.availabilityMethod FROM Route r
i didn't get any error but also any output. lol Like i told it before, with SELECT r.availabilityMethod FROM Route r is no problem!
So logically I can access my attributs via r.roadPK.origin.iata but I get there the error! So I think that my mapping is wrong.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227445#4227445
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227445
16 years, 11 months
[JBoss jBPM] - Re: Is mail blocking?
by frinux
It seems mail node is blocking, I just tried. I would like to handle when the sending of a mail fails. I saw that this node can handle exceptions, so I added one :
<mail-node name="notifier_valideur" to="#{demande.valideur.email}" template="task-assign">
| <subject>#{mailSubject}</subject>
| <text>#{mailText}</text>
| <exception-handler exception-class="javax.mail.SendFailedException">
| <action class="InvalidEmailAddressExceptionHandler" name="mailFailed"></action>
| </exception-handler>
| <exception-handler exception-class="com.sun.mail.smtp.SMTPAddressFailedException">
| <action class="InvalidEmailAddressExceptionHandler" name="smtpFailed"></action>
| </exception-handler>
| <transition to="valider_demande"></transition>
| </mail-node>
Result is that I still get the exception, and workflow stops here. I even don't get inside the InvalidEmailAddressExceptionHandler class.
What's wrong?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227438#4227438
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227438
16 years, 11 months