dev@glassfish.java.net

Re: Quicklook Issues

From: Tom Ware <tom.ware_at_oracle.com>
Date: Thu, 08 Mar 2007 10:16:12 -0500

Hi Dinesh,

  Thanks for the help. Things work much better now. I am still getting
some test failures related to authentication - attached html results.
Any ideas?

Error from 1st failure:
--------------
] run:
     [java] [exec] Mar 8, 2007 9:33:56 AM
com.sun.enterprise.appclient.MainWithModuleSupport prepareSecurity
     [java] [exec] INFO: Security Manager is OFF.
     [java] [exec] Mar 8, 2007 9:33:57 AM
com.sun.enterprise.appclient.MainWithModuleSupport setTargetServerProperties
     [java] [exec] INFO: ACC001:Using ClientContainer file:
[C:\cvsworkspace\publish\glassfish/domains/domain1/config/sun-acc.xml].
     [java] [exec] Mar 8, 2007 9:33:57 AM
com.sun.enterprise.appclient.MainWithModuleSupport setupIIOP
     [java] [exec] INFO: ACC014: ORB host name:
[tware-pc2.ca.oracle.com]
     [java] [exec] Mar 8, 2007 9:33:57 AM
com.sun.enterprise.appclient.MainWithModuleSupport setupIIOP
     [java] [exec] INFO: ACC013: ORB port number: [3700]
     [java] [exec] Mar 8, 2007 9:33:59 AM
com.sun.enterprise.appclient.MainWithModuleSupport loadMainClientClass
     [java] [exec] INFO: ACC009: Load Application Class:
[com.sun.s1peqe.security.authoriz.methodperms.MethodPermClient]
     [java] [exec] Looked up home!!
     [java] [exec] Narrowed home!!
     [java] [exec] Got the EJB!!
     [java] [exec] -->EJB method permissions!Calling authorized
method - authorizedMethod
     [java] [exec] java.rmi.ServerException: RemoteException
occurred in server thread; nested exception is:
     [java] [exec] java.rmi.RemoteException: null; nested
exception is:
     [java] [exec] java.rmi.RemoteException: Caller in role failed
     [java] [exec] at
com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:191)
     [java] [exec] at
com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:176)
     [java] [exec] at
com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:123)
     [java] [exec] at
com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:196)
     [java] [exec] at
com.sun.s1peqe.security.authoriz.methodperms._MethodPermRemote_DynamicStub.authorizedMethod(_MethodPermRemote_DynamicStub.java)
     [java] [exec] at
com.sun.s1peqe.security.authoriz.methodperms.MethodPermClient.doTest(MethodPermClient.java:69)
     [java] [exec] at
com.sun.s1peqe.security.authoriz.methodperms.MethodPermClient.main(MethodPermClient.java:28)
     [java] [exec] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] [exec] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java] [exec] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] [exec] at
java.lang.reflect.Method.invoke(Method.java:585)
     [java] [exec] at
com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:253)
     [java] [exec] at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:340)
     [java] [exec] at
com.sun.enterprise.appclient.Main.main(Main.java:185)
     [java] [exec] Caused by: java.rmi.RemoteException: null;
nested exception is:
     [java] [exec] java.rmi.RemoteException: Caller in role failed
     [java] [exec] at
com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:237)
     [java] [exec] at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1337)
     [java] [exec] at
com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1267)
     [java] [exec] at
com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
     [java] [exec] at
com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:107)
     [java] [exec] at $Proxy121.authorizedMethod(Unknown Source)
     [java] [exec] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] [exec] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java] [exec] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] [exec] at
java.lang.reflect.Method.invoke(Method.java:585)
     [java] [exec] at
com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:125)
     [java] [exec] at
com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:658)
     [java] [exec] at
com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:198)
     [java] [exec] at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1848)
     [java] [exec] at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1708)
     [java] [exec] at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1080)
     [java] [exec] at
com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:179)
     [java] [exec] at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:781)
     [java] [exec] at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:538)
     [java] [exec] at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2569)
     [java] [exec] at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:502)
     [java] [exec] Caused by: java.rmi.RemoteException: Caller in
role failed
     [java] [exec] at
com.sun.s1peqe.security.authoriz.methodperms.MethodPermBean.authorizedMethod(MethodPermBean.java:43)
     [java] [exec] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] [exec] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java] [exec] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] [exec] at
java.lang.reflect.Method.invoke(Method.java:585)
     [java] [exec] at
com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1055)
     [java] [exec] Test Failed
     [java] [exec] at
com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:163)
     [java] [exec] Value of key is: Test1-Calling authorized method
     [java] [exec] at
com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2846)
     [java] [exec] Calling unauthorized method - sayGoodBye
     [java] [exec] at
com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3930)
     [java] [exec] Value of key is: Test2-Calling unauthorized method
     [java] [exec] at
com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
     [java] [exec] Calling unauthorized method - unauthorizedMethod
     [java] [exec] ... 17 more
     [java] [exec] Caught expected RemoteException from
unauthorizedMethod()
     [java] [exec] Value of key is: Test3-expected
Exception-Calling unauthorized method
     [java] [exec] Generating report at
C:\cvsworkspace\glassfish\appserv-tests\test_results.xml

--------------
Error from test with 4 failures:


     [java] [java] Host [localhost] port (8080)
     [java] [java] simpleauth: BASIC/access control: testuser3
     [java] [java] String not found: RESULT: principal: testuser3
     [java] [java] Value of key is: BASIC/access control: testuser3
     [java] [java] simpleauth: BASIC/access control: testuser42
     [java] [java] String not found: RESULT: principal: testuser42
     [java] [java] Value of key is: BASIC/access control: testuser42
     [java] [java] simpleauth: BASIC/access control: j2ee
     [java] [java] String not found: HTTP/1.1 403
     [java] [java] Value of key is: BASIC/access control: j2ee
     [java] [java] simpleauth: BASIC/authentication: j2ee (bad pwd)
     [java] [java] String not found: HTTP/1.1 401
     [java] [java] Value of key is: BASIC/authentication: j2ee (bad
pwd)
     [java] [java] Generating report at
C:\cvsworkspace\glassfish\appserv-tests\test_results.xml
     [java]
     [java]
     [java] [java] -----------------------------------------
     [java] [java] - BASIC/authentication: j2ee (bad pwd):
FAIL -
     [java] [java] - BASIC/access control: j2ee: FAIL -
     [java] [java] - BASIC/access control: testuser3: FAIL -
     [java] [java] - BASIC/access control: testuser42: FAIL -
--------------

Error from final failure:

     [java] [java] GOING TO EXECUTE PE TEST CASE
     [java] [java] INSTALL_TYPE =pe
     [java] [java] Value of key is: loginPage:
     [java] [java] java.lang.NullPointerException
     [java] [java] at AdminGUITest.authorize(AdminGUITest.java:134)
     [java] [java] at AdminGUITest.runTest(AdminGUITest.java:60)
     [java] [java] at AdminGUITest.main(AdminGUITest.java:30)
     [java] [java] Value of key is: homePage:
     [java] [java] Value of key is: propertysheetPage:
     [java] [java] Value of key is: tablePage:
     [java] [java] **********************************************
     [java] [java] Total Tests :4
     [java] [java] Passed :3
     [java] [java] Failed :1
     [java] [java] **********************************************
     [java] [java] Details of Test Run:
     [java]
     [java] [java] Login Page Test : Failed


Thanks in advance for any suggestions,
Tom
Dinesh Patil wrote:

>Tom Ware wrote:
>
>
>
>>Hi Dinesh,
>>
>> I completely deleted and refreshed my appserv-tests directory today
>>and also did a full 'maven clean clobber bootstrap' and 'maven
>>configure-runtime' from the boostrap directory. Is that adequate to
>>make everything fresh?
>>
>>
>
>"bootstrap" will get last nights SNAPSHOT image, so today mornings
>checkins may not be compiled/bundled there.. so better to do
>"bootstrap-all" if you want to get everything fresh today.
>
>
>
>> If so, I'll try to do that again tomorrow morning and see if it helps.
>>
>>
>
>yes tomorrow your steps should work fine.
>thanks
>Dinesh
>
>
>
>>Thanks,
>>Tom
>>
>>Dinesh Patil wrote:
>>
>>
>>
>>>Tom,
>>>Looks like this is old http soap binding, this is renamed in last
>>>night's integration. So please try it on freshly checked out
>>>workspace as i saw some relavant checkins in appserv-tests today
>>>morning also.
>>>http://fisheye5.cenqua.com/changelog/glassfish/?cs=MAIN:sm122304:20070307185342
>>>
>>>thanks
>>>Dinesh
>>>
>>>Tom Ware wrote:
>>>
>>>
>>>
>>>
>>>
>>>>I do not have the sun-http-binding directory.
>>>>
>>>>I have a com.sun.httpsoapbc-1.0-2 directory. In that
>>>>config.properties, the value is as follows:
>>>>
>>>>HttpDefaultPort=9080
>>>>
>>>>I am running on Windows with JDK 1.5.0_10
>>>>
>>>>-Tom
>>>>
>>>>Sony Manuel wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Vijay Ramachandran wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>I can confirm that "maven runtest" failed for me with this same
>>>>>>error with a completely fresh checkout, build.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>Could you please check for property HttpDefaultPort in
>>>>>GLASSFISH_HOME/domains/domain1/jbi/components/sun-http-binding/workspace/config.properties
>>>>>
>>>>>
>>>>>The error could be because the property value is not set when
>>>>>http-binding component is started. What platform are you using.
>>>>>
>>>>>thanks,
>>>>>Sony
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Vijay
>>>>>>
>>>>>>Dinesh Patil wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Vijay Ramachandran wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>This happened to me also when I just did maven runtest but goes
>>>>>>>>away when I do maven runtest-ee
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>no this may not be proper solution, runtest runs Quicklook on
>>>>>>>single instance domain while runtest-ee does it on
>>>>>>>single-instance as well as cluster instance. You can look at more
>>>>>>>details on:
>>>>>>>https://glassfish.dev.java.net/public/GuidelinesandConventions.html#Quicklook_Tests
>>>>>>>
>>>>>>>
>>>>>>>But main thing to look at is if there are any java processes from
>>>>>>>previous runs still running, and start from clean state.
>>>>>>>
>>>>>>>JBI test team is also looking into this issue if anything wrong
>>>>>>>in tests parts, but nightly/tinderbox builds are ok so there may
>>>>>>>be some issue on machine specific if the hostname, domainname is
>>>>>>>not able to resolve.. so pls check that too also.
>>>>>>>thanks
>>>>>>>Dinesh
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>The JBI team has to look into this and fix this ASAP
>>>>>>>>
>>>>>>>>Vijay
>>>>>>>>
>>>>>>>>Tom Ware wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Hi All,
>>>>>>>>>
>>>>>>>>>I am having trouble running quicklook. I a couple of different
>>>>>>>>>failures on a version I obtained today.
>>>>>>>>>
>>>>>>>>>1 [java] wsimport-local:
>>>>>>>>> [java] [mkdir] Created dir:
>>>>>>>>>C:\cvsworkspace\glassfish\appserv-tests\build\module\classes
>>>>>>>>> [java] [exec]
>>>>>>>>>"http://localhost:${HttpDefaultPort}/TestApp/MiscService/Misc?wsdl"
>>>>>>>>>is neither a file name nor an URL
>>>>>>>>> [java]
>>>>>>>>> [java]
>>>>>>>>> [java] [exec] Usage: wsimport [options] <WSDL_URI>
>>>>>>>>>
>>>>>>>>>2. Compile failures starting with:
>>>>>>>>>
>>>>>>>>> [java] compile-common:
>>>>>>>>> [java] [javac] Compiling 1 source file to
>>>>>>>>>C:\cvsworkspace\glassfish\appserv-tests\build\module\classes
>>>>>>>>> [java] [javac]
>>>>>>>>>C:\cvsworkspace\glassfish\appserv-tests\sqetests\jbi\helloca\projects\CAClient\src\helloca\client\Client.java:23:
>>>>>>>>>package caclient.ejbws does not exist
>>>>>>>>> [java] [javac] import caclient.ejbws.Account;
>>>>>>>>> [java] [javac] ^
>>>>>>>>> [java] [javac]
>>>>>>>>>C:\cvsworkspace\glassfish\appserv-tests\sqetests\jbi\helloca\projects\CAClient\src\helloca\client\Client.java:87:
>>>>>>>>>package caclient.ejbws does not exist
>>>>>>>>> [java] [javac] caclient.ejbws.MiscService
>>>>>>>>>service = new caclient.ejbws.MiscService();
>>>>>>>>> [java] [javac] ^
>>>>>>>>> [java] [javac]
>>>>>>>>>C:\cvsworkspace\glassfish\appserv-tests\sqetests\jbi\helloca\projects\CAClient\src\helloca\client\Client.java:87:
>>>>>>>>>package caclient.ejbws does not exist
>>>>>>>>> [java] [javac] caclient.ejbws.MiscService
>>>>>>>>>service = new caclient.ejbws.MiscService();
>>>>>>>>> [java] [javac]
>>>>>>>>>Attached is my log file.
>>>>>>>>>
>>>>>>>>>Has anyone seen these issues before?
>>>>>>>>>
>>>>>>>>>-Tom
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>---------------------------------------------------------------------
>>>>>>>>
>>>>>>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>
>>>>>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>-
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>>
>>>>
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>>
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>
>
>

-- 
Tom Ware
Principal Software Engineer
Oracle Canada Inc.
Direct: (613) 783-4598
Email: tom.ware_at_oracle.com