Bugs item #574238, was opened at 2002-06-26 12:53
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=574238&group_id=22866

Category: JBossServer
Group: v3.0 Rabbit Hole
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Steve Wolfangel (swolfangel)
>Assigned to: Scott M Stark (starksm)
Summary: package level methods fail

Initial Comment:
14:30:19,092 INFO  [Server] JBoss Release: JBoss-
3.0.0 CVSTag=JBoss_3_0_0
14:30:19,170 INFO  [Server] Home Dir: 
D:\jb\server30\jboss
14:30:19,170 INFO  [Server] Home URL: 
file:/D:/jb/server30/jboss/
14:30:19,170 INFO  [Server] Library URL: 
file:/D:/jb/server30/jboss/lib/
14:30:19,170 INFO  [Server] Patch URL: null
14:30:19,170 INFO  [Server] Server Name: default
14:30:19,170 INFO  [Server] Server Home Dir: 
D:\jb\server30\jboss\server\default
14:30:19,170 INFO  [Server] Server Home URL: 
file:/D:/jb/server30/jboss/server/de
fault/
14:30:19,170 INFO  [Server] Server Data Dir: 
D:\jb\server30\jboss\server\default\
db
14:30:19,170 INFO  [Server] Server Temp Dir: 
D:\jb\server30\jboss\server\default\
tmp
14:30:19,170 INFO  [Server] Server Config URL: 
file:/D:/jb/server30/jboss/server/
default/conf/
14:30:19,170 INFO  [Server] Server Library URL: 
file:/D:/jb/server30/jboss/server
/default/lib/
14:30:19,186 INFO  [Server] Root Deployemnt 
Filename: jboss-service.xml
14:30:19,186 INFO  [Server] Starting General 
Purpose Architecture (GPA)...
14:30:19,608 INFO  [ServerInfo] Java version: 
1.3.1_01,Sun Microsystems Inc.
14:30:19,608 INFO  [ServerInfo] Java VM: Java 
HotSpot(TM) Client VM 1.3.1_01,Sun
Microsystems Inc.
14:30:19,608 INFO  [ServerInfo] OS-System: 
Windows NT 4.0,x86

I have an ear file that contains 4 Ejbs and library 
files. The ear file deploys fine but whenever I call a 
method that has (default) package visibility the call 
never makes it into the method and I get no error 
whatsoever. The calling class and the called class 
are both in the same package. When I make the 
method public it works fine. I have seen this in 
previos 3.0 candidate releases but before I was 
getting an Access error, now I get nothing. 






----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2002-07-27 21:21

Message:
Logged In: YES 
user_id=175228

An issue was found where duplicate class loaders could be 
created and this would cause this problem. Try your case 
with the latest Branch_3_0 code and see if this was the 
cause.

----------------------------------------------------------------------

Comment By: Steve Wolfangel (swolfangel)
Date: 2002-06-28 12:42

Message:
Logged In: YES 
user_id=541224

I am having trouble reproducing in a simple test case. I 
did add some debug to my original code. Instead of 
catching exception I am catching throwable. Below is 
the stack trace I am getting.  I am still trying to 
reproduce in the test case.  

2002-06-28 14:36:34,741 INFO  [STDOUT] 
StartupStateController.indicateSystemShutdown()
2002-06-28 14:36:34,756 INFO  [STDOUT] try to access 
method 
com.metamatrix.common.config.CurrentConfiguration.in
dicateSystemShutdown()V from class 
com.metamatrix.common.config.StartupStateController
2002-06-28 14:36:34,756 ERROR [STDERR] 
java.lang.IllegalAccessError: try to access method 
com.metamatrix.common.config.CurrentConfiguration.in
dicateSystemShutdown()V from class 
com.metamatrix.common.config.StartupStateController
2002-06-28 14:36:34,756 ERROR [STDERR]  at 
com.metamatrix.common.config.StartupStateController.i
ndicateSystemShutdown(StartupStateController.java:145)
2002-06-28 14:36:34,756 ERROR [STDERR]  at 
com.metamatrix.platform.util.MetaMatrixController.killS
erver(MetaMatrixController.java:162)
2002-06-28 14:36:34,756 ERROR [STDERR]  at 
com.metamatrix.platform.admin.apiimpl.RuntimeStateAd
minAPIImpl.bounceServer
(RuntimeStateAdminAPIImpl.java:942)
2002-06-28 14:36:34,756 ERROR [STDERR]  at 
java.lang.reflect.Method.invoke(Native Method)
2002-06-28 14:36:34,756 ERROR [STDERR]  at 
sun.rmi.server.UnicastServerRef.dispatch
(UnicastServerRef.java:241)
2002-06-28 14:36:34,756 ERROR [STDERR]  at 
sun.rmi.transport.Transport$1.run(Transport.java:152)
2002-06-28 14:36:34,756 ERROR [STDERR]  at 
java.security.AccessController.doPrivileged(Native 
Method)
2002-06-28 14:36:34,756 ERROR [STDERR]  at 
sun.rmi.transport.Transport.serviceCall
(Transport.java:148)
2002-06-28 14:36:34,756 ERROR [STDERR]  at 
sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:465)
2002-06-28 14:36:34,756 ERROR [STDERR]  at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.
run(TCPTransport.java:706)
2002-06-28 14:36:34,756 ERROR [STDERR]  at 
java.lang.Thread.run(Thread.java:484)


----------------------------------------------------------------------

Comment By: Scott M Stark (starksm)
Date: 2002-06-27 13:53

Message:
Logged In: YES 
user_id=175228

Then can you send an ear that demonstrates the problem. 
There is a size limit on attachments so if you cannot post it 
here send it to me, [EMAIL PROTECTED]


----------------------------------------------------------------------

Comment By: Steve Wolfangel (swolfangel)
Date: 2002-06-27 13:37

Message:
Logged In: YES 
user_id=541224

Object A and Object B are in  platform.jar
Object C and Object D are in common.jar
Both jar files are included in the ear.jar in the library dir.  

----------------------------------------------------------------------

Comment By: Steve Wolfangel (swolfangel)
Date: 2002-06-27 13:30

Message:
Logged In: YES 
user_id=541224

Well I can't seem to attach the log file. I did not see 
anything obvious. 

----------------------------------------------------------------------

Comment By: Scott M Stark (starksm)
Date: 2002-06-27 13:28

Message:
Logged In: YES 
user_id=175228

And what jar(s) are the objects ObjectC and ObjectD in?


----------------------------------------------------------------------

Comment By: Steve Wolfangel (swolfangel)
Date: 2002-06-27 13:23

Message:
Logged In: YES 
user_id=541224

Well I can't seem to attach the log file. I did not see 
anything obvious. 

----------------------------------------------------------------------

Comment By: Steve Wolfangel (swolfangel)
Date: 2002-06-27 13:19

Message:
Logged In: YES 
user_id=541224

I've attached the server log. 
I don't think this is a JVM issue because this works fine 
with WL6.1 using the same jvm. I am also able to run 
the code outside of the appserver (minus the EJB and 
remote object.) 

I was wondering about security also, is there anything I 
can try? 

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2002-06-27 13:00

Message:
Logged In: NO 

Then that looks like a JVM bug. If the container isn't doing
any proxying, your call should be being executed and at that
point (when just regular classes are involved), the JVM is
in control.

The only thing I can think of that would lead to a different
conclusion is that there might be
SecurityManager/ClassLoader issues -- but then you'd expect
an exception would be being thrown somewhere. Do the logs
show anything when this failure happens?

----------------------------------------------------------------------

Comment By: Steve Wolfangel (swolfangel)
Date: 2002-06-27 12:23

Message:
Logged In: YES 
user_id=541224

Object B, C and D are just normal classes, not EJBs

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2002-06-27 12:20

Message:
Logged In: NO 

So ObjectB, ObjectC and ObjectD are all just regular
classes? Or are they EJBs?

----------------------------------------------------------------------

Comment By: Steve Wolfangel (swolfangel)
Date: 2002-06-27 10:52

Message:
Logged In: YES 
user_id=541224

Here is the actual scenario. 

Client makes a method call on an EJB
EJB returns a remote object to the client.
Client then invokes a method call on the remote object 
(which is in package A)
The remote object (ObjectA) then calls a static method 
on ObjectB (which is in package B)
ObjectB then calls a public static method on ObjectC 
(which is in package C)
ObjectC then calls a package level static method on 
ObjectD (in packace C) 
this method fails. When I make the method in ObjectD 
public it works. 


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2002-06-27 09:42

Message:
Logged In: NO 

I don't think this is a bug. EJB's deal w/ each other
through container-provided interfaces, backed by proxies
whose package is not under control of the EJB author.
Chances are good that the class actually making the call is
NOT in the same package as the target class.

If there is an EJB implementation class calling another EJB
impl class method statically w/out going through the
container (i.e. EJB2.someStaticMethod()), then it's a bug
but it seems very unlikely that that's the case, and if it
is it would be a JVM issue (and certainly bad design).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=574238&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to