Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on HFE Chap#1

 
mike zhu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using the following:
----------------------------------------------------------------
J2EE - Java 2 Enterprise Edition version 1.3_01, build 1.3_01-b01;

J2SE - java version "1.3.1_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_11-b02)
Java HotSpot(TM) Client VM (build 1.3.1_11-b02, mixed mode)
----------------------------------------------------------------

everything was compiled fine without any problems, server is up & running, "AdviceApp" is deployed properly

when i tended to run client code from chap#1 --- "AdviceClient.class"
by using the following command:

C:\projects\advice>java -cp %classpath%AdviceAppClient.jar;. AdviceClient

got the following error:

java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:108)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
entSC.java:136)
at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at headfirst._AdviceHome_Stub.create(Unknown Source)
at AdviceClient.go(AdviceClient.java:31)
at AdviceClient.main(AdviceClient.java:12)

it looks like that i don't have the permission. i just can't figure out why? (everything seems ok to me)


thank u for any helpful hint!!
 
Jef Cumps
cowbird
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

this is what the helpfull notes on the o'reilly site (http://www.oreilly.com/catalog/hfjejb/errata) say:

-- quote ------------------------
When running the AdviceClient, if you get a CORBA NO_PERMISSION 0 error:

You are probably using the older version (1.3.01) of the J2EE RI,
rather than 1.3.1. The 1.3.01 version has a bug which makes the default
security permission too strict; switching to 1.3.1 should fix it.
However, if you cannot fix it or for some reason you are unable to
switch to 1.3.1, you can do the following:

Use the deploytool to build a deployment descriptor that does not
require a strict security policy:

1) Under the Security screen of the EJB wizard or the Security tab of
the EJB inspector in deploytool, click "Deployment Settings..". Under
the box "Client Authentication", make sure "Support Client Choice" is
checked instead of "Certificate" or "Password".

2. Now from Deplotool click on "Update & redeploy"

3. Run your AdviceClient again.

-- end quote ------------------------

hope this fixes your problem !
 
mike zhu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jef,

thanks! based on ur hint, problem is solved!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic