Problem in ejb3 - interceptors-aop.xml
anilit99 Sep 21, 2009 9:22 AMI'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"),@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 :
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:
"}" ...
"@" ...
"{" ...
<STRING> ...
<CHARACTER> ...
<IDENTIFIER> ...
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.<init>(AnnotationIntroduction.java:93)
2009-09-21 14:14:30,927 ERROR (ScannerThread) [STDERR] ... 31 more