[jboss-user] [EJB] - Problem in ejb3 - interceptors-aop.xml

anilit99 do-not-reply at jboss.com
Mon Sep 21 09:22:25 EDT 2009


I've searched this forum for 'ejb3-interceptors-aop.xml'. Not many hits. So, I am wondering how come no body encountered this weird problem. 

I just wanted to add a new domain with some default activation config properties. Much like below. 

       <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
  |           @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=30, timeout=10000)
  |        </annotation>
  |        <annotation expr="!class(@org.jboss.annotation.ejb.DefaultActivationSpecs)">
  | 
  |           @org.jboss.annotation.ejb.DefaultActivationSpecs ({@javax.ejb.ActivationConfigProperty(propertyName = "channel", propertyValue = "SYSTEM.ADMIN.SVRCONN"), at javax.ejb.ActivationConfigProperty(propertyName = "hostName", propertyValue = "gbskgsfmqt")})
  |        </annotation>
  | 

It deploys well, and everything is cool. But as you can see the last line is very long. So if I introduce a newline, it suddenly breaks with the following exception. As I said, it works perfectly fine if the properties are on a single line, but breaks very badly if I insert a newline character. 

These are MQ properties and they tend to grow as we have so many properties. This could be a potential show stopper for everyone, if not immediately, may be in the near future.  

this is the exception : 
anonymous wrote : 2009-09-21 14:14:30,911 ERROR (ScannerThread) [STDERR] Caused by: org.jboss.aop.annotation.ast.ParseException: Encountered "\n" at line 1, column 154.
  | Was expecting one of:
  |     "}" ...
  |     "@" ...
  |     "{" ...
  |      ...
  |      ...
  |      ...
  |     
  | 2009-09-21 14:14:30,927 ERROR (ScannerThread) [STDERR] 	at org.jboss.aop.annotation.ast.AnnotationParser.generateParseException(AnnotationParser.java:700)
  | 2009-09-21 14:14:30,927 ERROR (ScannerThread) [STDERR] 	at org.jboss.aop.annotation.ast.AnnotationParser.jj_consume_token(AnnotationParser.java:583)
  | 2009-09-21 14:14:30,927 ERROR (ScannerThread) [STDERR] 	at org.jboss.aop.annotation.ast.AnnotationParser.MemberValueArrayInitializer(AnnotationParser.java:302)
  | 2009-09-21 14:14:30,927 ERROR (ScannerThread) [STDERR] 	at org.jboss.aop.annotation.ast.AnnotationParser.MemberValue(AnnotationParser.java:247)
  | 2009-09-21 14:14:30,927 ERROR (ScannerThread) [STDERR] 	at org.jboss.aop.annotation.ast.AnnotationParser.SingleMemberValue(AnnotationParser.java:147)
  | 2009-09-21 14:14:30,927 ERROR (ScannerThread) [STDERR] 	at org.jboss.aop.annotation.ast.AnnotationParser.Annotation(AnnotationParser.java:101)
  | 2009-09-21 14:14:30,927 ERROR (ScannerThread) [STDERR] 	at org.jboss.aop.annotation.ast.AnnotationParser.Start(AnnotationParser.java:33)
  | 2009-09-21 14:14:30,927 ERROR (ScannerThread) [STDERR] 	at org.jboss.aop.introduction.AnnotationIntroduction.(AnnotationIntroduction.java:93)
  | 2009-09-21 14:14:30,927 ERROR (ScannerThread) [STDERR] 	... 31 more

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256177#4256177

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256177



More information about the jboss-user mailing list