[Persistence, JBoss/CMP, Hibernate, Database] - Is JBOSS 4.0.5GA is Generating Incorrect SQL?
by smodou
Hi All,
I posted this to the wrong forum before. I couldn't find a way to move it over here, so am reposting here:
I have the following bean definition in jbosscmp-jdbc.xml:
<entity>
| <ejb-name>SeqEJB</ejb-name>
| <datasource>myDataSourceName</datasource>
| <table-name>MYSEQ</table-name>
| <cmp-field>
| <field-name>id</field-name>
| <column-name>id</column-name>
| </cmp-field>
| <entity-command name="oracle-sequence">
| <attribute name="sequence">SchemaName.General_Seq</attribute>
| </entity-command>
| </entity>
JBOSS Generates the following create statement:
{call INSERT INTO MYSEQ(id, ) VALUES (SchemaName.General_Seq.NEXTVAL, ) RETURNING id INTO ? }
|
Which leads to the following SQLException:
anonymous wrote : java.sql.SQLException: ORA-06550: line 1, column 32:
| PL/SQL: ORA-01747: invalid user.table.column, table.column, or column specification
| ORA-06550: line 1, column 7:
| PL/SQL: SQL Statement ignored
Am I doing something wrong? Any help will be most appreciated.
regards,
Modou.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989074#3989074
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989074
19Â years, 5Â months
[JBoss AOP] - Bug in SuperClassesFirstWeavingStrategy?
by chasta
Hi,
I'm using JBoss AOP v2.0 alpha2 and have ran into some strange situation, which I think may possibly be a bug in JBoss AOP.
First of all, my usage of JBoss AOP is only as substrate for JBossCache (v2.0 alpha) PojoCache. I'm using Java 5.0 (of course; PojoCache requires it) and runtime instrumentation ("javaagent"). My application is multithreaded, and what I'm seeing is three threads getting locked; two of them are locked on the creation and instantiation of an anonymous class (different anonymous class for each thread) and the third thread is stuck on SuperClassesFirstWeavingStrategy.obtainCtClassInfo(), in the catch clause, where a ByteArrayClassPath is being instantiated. Trying to step any further in any of these threads (using Eclipse's debugger) gets me to nowhere (the thread is stuck "Stepping"; if interrupted, the instruction pointer remains the same. Maybe I should install a bytecode debugging plugin; any recommendations for a good one?).
Anyway, this seems like a strange issue with class instantiation; could this be a bug in SuperClassesFirstWeavingStrategy which is causing the hang? What else can I do to mine some more information about this?
Thanks & Regards,
Chasta
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989068#3989068
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989068
19Â years, 5Â months
[JBoss AOP] - Re: How do you use EnableLoadtimeWeaving for a Windows Servi
by sweetvenkat
"kabir.khan(a)jboss.com" wrote : First of all make sure that you can get the "injboss" tutorial example running, so that you know how to set up loadtime weaving for an instance you manage yourself.
|
| The jar to use for the -javaagent when running with jboss is pluggable-instrumentor.jar
| not jboss-aop-jdk50.jar
| :
| | set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -javaagent:C:\myjboss\bin\pluggable-instrumentor.jar
| |
|
| I am not sure what JBoss IDE or jbosservice use run.bat or if they invoke the jboss Main class themselves. So if modifying the run.bat does not work for you, try to set the -javaagent switch when creating your service:
|
Kabbir;
Yeah, i set JAVA_OPTS to full path of pluggable-instrumentor.jar. But, i see the same problem.
I'll try.
But what about ejb3 interceptors. As an alternative to jboss-aop, can we use ejb3 interceptors?
Here is my sesssion bean..
package com.j3ltd.test.ejbs;
import java.io.Serializable;
import javax.ejb.Stateless;
import javax.ejb.AroundInvoke;
import javax.ejb.InvocationContext;
public @Stateless class TestStatelessBean implements TestStateless,Serializable {
public String testBean() {
System.out.println("Business Method Called...");
return "the server returned this string";
}
@AroundInvoke
public Object log(InvocationContext ctx) throws Exception {
System.out.println("Security Check Done!!!");
return ctx.proceed();
}
}
When I invoked the sesson bean's business method, even ejb3 interceptor did not work? So, where the problem is? I am using Jboss-4.0.4RC1 and configured thru jboss-ide5.
But i see the following when i invoked the business method...
13:21:25,578 INFO [STDOUT] FieldsManager in use = org.jboss.serial.classmetamodel.ReflectionFieldsManager
3:21:25,703 INFO [STDOUT] Business Mehod Called...
Thanks for letting me know...
Eswarrao Ankamreddy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989067#3989067
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989067
19Â years, 5Â months