[JBoss-user] [JBoss AOP] - Parameter names in woven class changed from original to 'in[
Hi there! Normally compiled class contain information about original parameter names of all methods. When woven with [aopc], those names are lost. They're replaced with something like 'in[0-9]'. What is interesting it only happens for simple Long, String (etc..) types. Parameters of custom classes' parameters are left unchanged. That was not a problem for us before. But since we use Axis for automatic wsdl generation, it happens that instead of 'Long objectId' .NET guys see 'Long in1'. The former is more intuitive. Is there any way to left the names unchanged? Thanks -- Tomasz View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938174#3938174 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938174 --- 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 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss AOP] - Re: Execution on recursive constructor invocations
Kabir, you're the best. :) Thanks and sorry for your trouble. It works as expected :) Tomasz View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919064#3919064 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919064 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss AOP] - Re: Execution on recursive constructor invocations
Thanks for quick response Kabir! Anyhow..I downloaded jboss-head, built without a problem, but when I've tried to run my example then I got: | [java] Exception in thread "main" java.lang.ExceptionInInitializerError | [java] Caused by: java.lang.RuntimeException: java.lang.InstantiationException | [java] at org.jboss.aop.advice.GenericAspectFactory.createPerVM(GenericAspectFactory.java:159) | [java] at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1603) | [java] at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1592) | [java] at org.jboss.aop.advice.ScopedInterceptorFactory.create(ScopedInterceptorFactory.java:66) | [java] at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:604) | [java] at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:865) | [java] at org.jboss.aop.Advisor.resolveConstructorPointcut(Advisor.java:818) | [java] at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:599) | [java] at org.jboss.aop.ClassAdvisor.access$300(ClassAdvisor.java:82) | [java] at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:299) | [java] at java.security.AccessController.doPrivileged(Native Method) | [java] at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:271) | [java] at org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java:504) | [java] at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:492) | [java] at Pojo.(Pojo.java) | [java] Caused by: java.lang.InstantiationException | [java] at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) | [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:494) | [java] at java.lang.Class.newInstance0(Class.java:350) | [java] at java.lang.Class.newInstance(Class.java:303) | [java] at org.jboss.aop.advice.GenericAspectFactory.createPerVM(GenericAspectFactory.java:152) | [java] ... 14 more | Here's the code: public Pojo(int level) | { | if (0 == level) return; | new Pojo(level - 1); | } | | public static void main(String[] args) | { | Pojo pojo = new Pojo(17); | } | | | | | | | | public abstract class Advice implements Interceptor | { | public final Object invoke(Invocation invocation) throws Throwable | { | System.out.println("xxx"); | return invocation.invokeNext(); | } | public String getName(){ return "Advice";} | } The whole archive with a build.xml sent to your mailbox.. :/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918924#3918924 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918924 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss AOP] - Re: Execution on recursive constructor invocations
Good luck and a pleasant work then :) I hope those posts help you. See you - Tomasz View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917599#3917599 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917599 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss AOP] - Re: Execution on recursive constructor invocations
Thanks for quick reply ... :( Any ideas when 2.0? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917594#3917594 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917594 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss AOP] - Execution on recursive constructor invocations
Hi there! Yesterday strange things happened. Here's the code: | public class Pojo | { | private Pojo son; | | public Pojo(int level) | { | if (level == 0) return; | this.son = new Pojo(level - 1); | } | | public static void main(String args[]) | { | new Pojo(5); | } | } | | jboss-aop.xml: | | | | | The problem is that I thought that SampleLogger will print some info so many times the new Pojo (recursive) is created. And that doesn't happen. It only prints info on the top-level execution of new Pojo. Should it work this way? Thanks for any ideas...Tomasz View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917577#3917577 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917577 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: Problems mapping strut's ActionServlet while using embed
Hi! Last time I did similar with JBoss and Struts application. What I had was properly working version of Struts based application on Tomcat. It was packed as *.war file. For my private needs I've applied AOP to my application, but it should make zero difference for your problem. I've downloaded latest Jboss AS version 4.0.1. Unpacked. Put my application inside JBOSS_HOME/server/default/deploy/ - actually I've unpacked it into directory name: application.war/ Started JBoss: ./bin/run.sh -c default That's all. It works smooth for me. With Struts of course. I don't use any EJB nor standard DB. But it shouldn't be the reason. Check directories once more. Watch the log.. there should be information about deploying your application. Regards, Tomasz View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863196#3863196 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863196 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Advanced Documentation] - Will pay for docs if there is sth about JBossAS+POJO+AOP con
Hi all. My company will purchase your documentation if there is something about: -How to run plain Java system inside JBoss or standalone, but using services provided by JBoss, mean: transactions, persistance, replication, others.. Using of course metadata to describe class' properties. Are there any topics covering this inside? Yours, Tomasz View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845347#3845347 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845347 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user