• Post Reply Bookmark Topic Watch Topic
  • New Topic

Locale Exception :banghead:

 
Anurag Mishra
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys!!!

Do anyone have any info regarding such exception:-

-----I am trying to run my MDB's on jboss server with MQ, but after connecting to Queue and The onMessage function of the mdb throws the following exception:-

15:58:56,875 INFO [STDOUT] 01/14/2005 15:58:56 [EROR] VTException.log():171 com.sabre.vt.fw.except
ions.EMFailure: Caught throwable at onMessage: com.sabre.vt.fw.configuration.Languages.getEmLanguage
Locale(Ljava/lang/String Ljava/util/Locale;;
---> nested java.lang.NoSuchMethodError: com.sabre.vt.fw.configuration.Languages.getEmLangua
geLocale(Ljava/lang/String Ljava/util/Locale;
java.lang.NoSuchMethodError: com.sabre.vt.fw.configuration.Languages.getEmLanguageLocale(Ljava/lang/
String Ljava/util/Locale;
at com.sabre.vt.app.emailpush.EmailpushRequest.getLocale(EmailpushRequest.java:807)
at com.sabre.vt.app.emailpush.EmailpushRequest.parseRecipient(EmailpushRequest.java:612)
at com.sabre.vt.app.emailpush.EmailpushRequest.getRecipients(EmailpushRequest.java:447)
at com.sabre.vt.app.emailpush.EmailpushRequest.getEmData(EmailpushRequest.java:327)
at com.sabre.vt.app.emailpush.EmailpushRequest.process(EmailpushRequest.java:53)
at com.sabre.vt.app.business.emailpush.EmailpushMDB.processRecds(EmailpushMDB.java:289)
at com.sabre.vt.app.business.emailpush.EmailpushMDB.processEmMessage(EmailpushMDB.java:157)
at com.sabre.vt.app.business.emailpush.EmailpushMDB.onMessage(EmailpushMDB.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.j
My onMessage method of MDB is as follows:-

public void onMessage(Message msg)
{
try {
startTime = Calendar.getInstance().getTime();

BytesMessage bmsg = (BytesMessage)msg;

Syslog.debug(this, "EmailpushMDB onMessage Received BytesMessage");

processEmMessage(bmsg);

if ("true".equalsIgnoreCase(GeneralConfiguration.getProperty("emailpush.log.mqheader","false")))
showMessageData(bmsg);

Syslog.debug(this, "EmailpushMDB onMessage RETURN from processEmMessage");
// for tailing stdout
System.out.println( dtFormat.format(Calendar.getInstance().getTime()) +
" onMessage records = " + emRecdCount );
}
catch (Throwable th) {
// Exceptions caught here are considered unrecoverable problems
EMFailure emf = new EMFailure("Caught throwable at onMessage", th);
emf.log(this);

// log fatal error for monitors
EmailpushLog.logFailure(this, "EMAILPUSH-FAILURE", th.getMessage());
// log this message to recover file
logRecover();
}
}



Thanks in advance

Anurag
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!