Bugs item #574238, was opened at 2002-06-26 14: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: Open
Resolution: None
Priority: 5
Submitted By: Steve Wolfangel (swolfangel)
Assigned to: Nobody/Anonymous (nobody)
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: Steve Wolfangel (swolfangel)
Date: 2002-06-27 15: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 15: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 14: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 14: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 12: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 11: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


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to