[JBoss Tools] - Hibernate Reveng does nothing
by Martin Rasmussen
Martin Rasmussen [http://community.jboss.org/people/jethoraz] created the discussion
"Hibernate Reveng does nothing"
To view the discussion, visit: http://community.jboss.org/message/606625#606625
--------------------------------------------------------------
Hi,
Hope someone can give me a hint.
I am trying to reverse engineer a fairly simple MySQL database, using Hibernate Tools. I've got the Console Configuration running, and I can see my database schema just fine, and browse the tables in the Hibernate perspective of Eclipse.
I then create a "Hibernate Code Generation Configuration", selecting my newly (and working) console configuration. I check the "Reverse engineer ..." option, and fill in the fields (except reveng strategy, and use custom templates).
I select to export "Domain code", "Hibernate XML Mappings", and "DAO Code". I then click Run...and...nothing happens. Nothing at all. Not a stack trace in the console. Not a line in Eclipse's log. Nothing.
Does anyone have a clue?
Regards Martin
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/606625#606625]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[jBPM] - apply rules on a file
by stellina_rosa
stellina_rosa [http://community.jboss.org/people/stellina_rosa] created the discussion
"apply rules on a file"
To view the discussion, visit: http://community.jboss.org/message/605672#605672
--------------------------------------------------------------
Hi!
I need to apply rules to a particular file. Let me explain: my application will launch an external program that creates some results, and these results are stored in a file (ex. result.txt). I would like to use a drools file to apply rules on this result.txt file... is there any way to do this?
For example, my result.txt file contains:
q1("Miller",38000,"New York")
q1("Koch",2000000,"Atlanta")
q1("Nguyen",35000,"New York")
and I want a rule like this: if the string contains New York, then print "hello New York" =====> this example is for explain you what i want:
a mechanism for manipulating the strings of a text file in a file drools.
Please help me! THANK YOU!!!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/605672#605672]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[JBoss AOP] - NullPointerException in MethodJoinPointGenerator
by Sebastien Pennec
Sebastien Pennec [http://community.jboss.org/people/spennec] created the discussion
"NullPointerException in MethodJoinPointGenerator"
To view the discussion, visit: http://community.jboss.org/message/606236#606236
--------------------------------------------------------------
Hi!
I'm experiencing a strange problem with JBoss AOP, with JBoss 5.1.0 EAP.
Here is a part of my aop.xml file, in the bootstrap directory:
<bean name="AspectManager" class="org.jboss.aop.deployers.AspectManagerJDK5">
.....
<property name="enableLoadtimeWeaving">true</property>
<property name="include">org.jacorb.poa,com.myCompany.util.bus.mdb.</property>
.....
</bean>
In a jar that is in the deploy directory, I have a jboss-aop.xml file that contains:
<aop>
...
<interceptor name="jmsOnMessageInterceptor" class="com.myCompany.util.jms.OnMessageInterceptor" />
<bind pointcut="execution(public void $instanceof{javax.jms.MessageListener}->onMessage(javax.jms.Message))">
<interceptor-ref name="jmsOnMessageInterceptor" />
</bind>
</aop>
In the same jar, I have a class that implements the org.jboss.aop.advice.Interceptor interface and simply logs something (for the moment).
In the server logs, I can see the following lines:
12:28:37,817 DEBUG [Instrumentor] trying to transform com.myCompany.util.bus.mdb.BusMDBBean
...
12:28:37,958 DEBUG [JoinpointSimpleClassifier] javassist.CtMethod@3a509631[public onMessage (Ljavax/jms/Message;)V] method execution joinpoint matches pointcut: execution(public void $instanceof{javax.jms.MessageListener}->onMessage(javax.jms.Message))
12:28:38,942 DEBUG [Instrumentor] was com.myCompany.util.bus.mdb.BusMDBBean converted: true
12:28:39,192 ERROR [SuperClassesFirstWeavingStrategy] java.lang.RuntimeException: Error converting class
...
And when the onMessage method is called, I see the following exception:
Caused by: java.lang.NullPointerException
at org.jboss.aop.instrument.MethodJoinPointGenerator.<init>(MethodJoinPointGenerator.java:78)
at org.jboss.aop.GeneratedClassAdvisor$ClassAdvisorStrategy.getJoinPointGenerator(GeneratedClassAdvisor.java:1314)
at org.jboss.aop.GeneratedClassAdvisor.getJoinPointGenerator(GeneratedClassAdvisor.java:781)
at org.jboss.aop.GeneratedClassAdvisor.fullWorkFinalizeMethodChain(GeneratedClassAdvisor.java:635)
at org.jboss.aop.GeneratedClassAdvisor.finalizeMethodChain(GeneratedClassAdvisor.java:599)
at org.jboss.aop.GeneratedClassAdvisor.finalizeChains(GeneratedClassAdvisor.java:580)
at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:609)
at org.jboss.aop.GeneratedClassAdvisor.access$201(GeneratedClassAdvisor.java:65)
at org.jboss.aop.GeneratedClassAdvisor$ClassAdvisorStrategy.createInterceptorChains(GeneratedClassAdvisor.java:1306)
at org.jboss.aop.GeneratedClassAdvisor.createInterceptorChains(GeneratedClassAdvisor.java:410)
at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:306)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:276)
at org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java:754)
at org.jboss.aop.GeneratedClassAdvisor$ClassAdvisorStrategy.initialise(GeneratedClassAdvisor.java:1294)
at org.jboss.aop.GeneratedClassAdvisor.initialise(GeneratedClassAdvisor.java:146)
at com.myCompany.util.bus.mdb.BusMDBBean$BusMDBBeanAdvisor.initialise(BusMDBBean$BusMDBBeanAdvisor.java)
at com.myCompany.util.bus.mdb.BusMDBBean$BusMDBBeanAdvisor.<init>(BusMDBBean$BusMDBBeanAdvisor.java)
at com.myCompany.util.bus.mdb.BusMDBBean.<clinit>(BusMDBBean.java)
Can anybody help me out? Is there a point that I have missed?
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/606236#606236]
Start a new discussion in JBoss AOP at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month