Bugs item #874163, was opened at 2004-01-10 00:17
Message generated for change (Comment added) made by rdruener
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=874163&group_id=22866
Category: JBossCMP
Group: v3.2
Status: Closed
Resolution: Invalid
Priority: 5
Submitted By: Raphael Dr�ner (rdruener)
Assigned to: Alexey Loubyansky (loubyansky)
Summary: Error compiling EJB-QL with JDK 1.3.1
Initial Comment:
OS: Windows XP
JDK: SUN 1.3.1
JBOSS: 3.2.3
Hi,
the class JDBCEJBQLCompiler uses the method "public
StringBuffer append(StringBuffer sb)" from the
StringBuffer Class which is not available in JDK prior to
version 1.4.
It's quite easy to reproduce as even simple SELECT
queries leads to the following deployment exception:
java.lang.NoSuchMethodError
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.visit
(JDBCEJBQLCompiler.java:932)
at
org.jboss.ejb.plugins.cmp.ejbql.ASTSelect.jjtAccept
(ASTSelect.java:25)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.visit
(JDBCEJBQLCompiler.java:487)
...
Bye,
Raphael
----------------------------------------------------------------------
>Comment By: Raphael Dr�ner (rdruener)
Date: 2004-01-12 02:00
Message:
Logged In: YES
user_id=947652
Thanks for your answer.
Your right that it's not a bug in the source code. I rather
mean a "bug in the binary distribution".
The download page at jboss.org is imho misleading as it
states that version 3.2 runs on jdk 1.3. My understanding of
that statement is that the compiled download version runs on
JDK 1.3.
The J2EE Spec 1.3 requires JDK 1.3 as runtime environment,
so it's not quite obvious why JBoss 3.2 dist is compiled with
1.4.
It *can* be very time consuming to build such a complex
system like JBoss. So I think that most people who download
JBoss just start with the compiled version and will possibly run
into that problem...
----------------------------------------------------------------------
Comment By: Alexey Loubyansky (loubyansky)
Date: 2004-01-11 15:27
Message:
Logged In: YES
user_id=543482
It is definitely not a bug in JBoss. StringBuffer in 1.3.1
still has append(Object obj). The problem is that you are
running Java code compiled with 1.4 compiler in 1.3.1
machine. If you recompile JBoss with 1.3.1 the problem will
go away.
I believe, there were performance reasons (avoid toString())
to add append(StringBuffer sb) while already having
append(Object o). I am not going to fix it right now unless
someone convinces me that I should.
In general, I think, it is a good practice to compile the
application with the compiler compliant with the target machine.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=874163&group_id=22866
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development