Strutstestcase problem - exception thrown by action not being caught

Hi,
I am experiencing a problem in a test class I wrote to test part of a Struts based application. I have posted this problem on the StrutsTestCase forum but not had a response yet (it doesn't seem to be frequently visited/posted at) so thought I would try my luck here.
The action performs some back-end processing and if all successful then returns a mapping forward. If an error occurs then an Exception is thrown. The config file contains the entry for the ExceptionHandler which displays the error message on the page (i.e. it calls the same jsp page that the action was first submitted from).
This all works fine when tested through the browser. Running a successful test via CactusStrutsTestCase also works correctly. But when I try to run a test to validate the error path the test class errors and the cactus output file indicates the Exception was thrown. BUT in my test class method...
public void testFileUpload()
this.setRequestPathInfo("/mypath");
this.addRequestParameter("action", "uploadFile");
MyForm form = new MyForm();
form.setFormFile(this.getUploadFile("empty.txt"));
this.setActionForm(form);
try
this.actionPerform();
System.out.println("got here OK -----------------------");
catch (Exception e)
System.out.println("got here ERROR -----------------------" + e.getMessage());
I try to catch the Exception so I can determine whether the test passed/failed but it is never caught. Instead the test just errors and neither debug line above is printed on the console. Yet the output file indicates that at the 'this.actionPerform();' line an error was uncaught...
<testcase classname="test.MyCactusTest" name="testFileUpload" time="4.87">
<error message="An uncaught exception was thrown during actionExecute()" type="org.apache.cactus.internal.client.ServletExceptionWrapper">servletunit.struts.ExceptionDuringTestError: An uncaught exception was thrown during actionExecute()
     at servletunit.struts.CactusStrutsTestCase.actionPerform()V(CactusStrutsTestCase.java:546)
     at test.MyCactusTest.testFileUpload()V(MyCactusTest.java:34)
I'm bemused! Any help is much appreciated.

Hi,
I am experiencing a problem in a test class I wrote to test part of a Struts based application. I have posted this problem on the StrutsTestCase forum but not had a response yet (it doesn't seem to be frequently visited/posted at) so thought I would try my luck here.
The action performs some back-end processing and if all successful then returns a mapping forward. If an error occurs then an Exception is thrown. The config file contains the entry for the ExceptionHandler which displays the error message on the page (i.e. it calls the same jsp page that the action was first submitted from).
This all works fine when tested through the browser. Running a successful test via CactusStrutsTestCase also works correctly. But when I try to run a test to validate the error path the test class errors and the cactus output file indicates the Exception was thrown. BUT in my test class method...
public void testFileUpload()
this.setRequestPathInfo("/mypath");
this.addRequestParameter("action", "uploadFile");
MyForm form = new MyForm();
form.setFormFile(this.getUploadFile("empty.txt"));
this.setActionForm(form);
try
this.actionPerform();
System.out.println("got here OK -----------------------");
catch (Exception e)
System.out.println("got here ERROR -----------------------" + e.getMessage());
I try to catch the Exception so I can determine whether the test passed/failed but it is never caught. Instead the test just errors and neither debug line above is printed on the console. Yet the output file indicates that at the 'this.actionPerform();' line an error was uncaught...
<testcase classname="test.MyCactusTest" name="testFileUpload" time="4.87">
<error message="An uncaught exception was thrown during actionExecute()" type="org.apache.cactus.internal.client.ServletExceptionWrapper">servletunit.struts.ExceptionDuringTestError: An uncaught exception was thrown during actionExecute()
     at servletunit.struts.CactusStrutsTestCase.actionPerform()V(CactusStrutsTestCase.java:546)
     at test.MyCactusTest.testFileUpload()V(MyCactusTest.java:34)
I'm bemused! Any help is much appreciated.

Similar Messages

  • Exception thrown from action: createLink

    Hi,
    I am trying to install Application server on Red Hat Enterprise Linux 4.
    I got the folowing error
    Starting install Install Phase 2 of component Oracle Client Required Support Files
    Calling Action unixActions10.1.0.4.0 createLink
    source = /u01/app/oracle/product/10.1.3.1/OracleAS_1/lib/libclntsh.so.10.1
    destination = /u01/app/oracle/product/10.1.3.1/OracleAS_1/lib/libclntsh.so
    overwriteExistingLink = true
    Exception thrown from action: createLink
    Exception Name: FileNotFoundException
    Exception String: File not found: %fileName%
    Kinldy let me know how to proceed.
    Regards,
    Anu

    This is a documented bug : 5029782.
    Take a look at this metalink note:
    Install of Oracle Database 10g Companion Products Fails With : File Not Found: %Filename%
         Doc ID:      Note:566889.1
    ~ Madrid
    http://hrivera99.blogspot.com

  • I recently upgraded to iTunes 11.1.5 and now my iPod Nano is not recognized in iTunes. I also upgraded my iPhone 5s to iOS 7.1. i Tunes on my computer does recognize my iPhone. What is the problem with my iPod Nano not being recognized?

    I recently upgraded to iTunes 11.1.5 and now my iPod Nano is not recognized in iTunes. I also upgraded my iPhone 5s to iOS 7.1. i Tunes on my computer does recognize my iPhone. What is the problem with my iPod Nano not being recognized?

    I would think, Twins1995, that if we are having the problem, others are as well. Hopefully, Apple will shortly issue a follow-up software release to fix the problem. Or is that just wishful thinking on my part.
    It would be helpful, if there were some kind of work-around in the interim, so we can use our devices. Pretty frustrating when you consider that all of the hardware and software is produced by Apple.

  • Who else has a problem with parental controls enabled not being able to run Firefox on the Mac?

    Who else has a problem with parental controls enabled not being able to run Firefox on the Mac? (Any solutions?) (BTW. Chrome doesn't work either)

    Although FF4 is so nice I'm almost ready to ditch iGoogle!
    Please fix what appears to be an RSS/iGoogle issue with FF4...
    Gmail is fine, but titles dont show in most RSS feed gadgets and no stories, strangely, apart from this one:
    http://www.google.com.au/ig/directory?hl=en&url=www.google.com/ig/modules/builtin_news_technology.xml
    Which if you enter the last part of the url reports that
    "<Content type="html">
    This is a builtin module, so the UserPrefs and Content are ignored."
    Any ideas?

  • Dispatched Event not being caught

    I have the following custom event:
    package
    import flash.events.Event;
    public class TestCustomEvent extends Event
    public static const EVENT_NAME:String = "TestCustom";
    public var _message:String;
    public function TestCustomEvent(message:String)
    super(EVENT_NAME,true,false);
    this._message = message;
    public override function clone():Event
    return new TestCustomEvent(_message);
    public override function toString():String
    return formatToString("TestCustomEvent", "type", "bubbles",
    "cancelable", "eventPhase", "_message");
    which I am trying to dispatch from the following class:
    package
    import flash.events.EventDispatcher;
    import flash.events.IEventDispatcher;
    import flash.events.Event;
    public class TestDispatch implements IEventDispatcher
    private var dispatcher:EventDispatcher;
    public function TestDispatch()
    dispatcher = new EventDispatcher(this);
    public function RaiseEvent():void
    var ev:TestCustomEvent = new TestCustomEvent("catch this");
    this.dispatchEvent(ev);
    public function addEventListener(type:String,
    listener:Function, useCapture:Boolean = false, priority:int = 0,
    useWeakReference:Boolean = false):void{
    dispatcher.addEventListener(type, listener, useCapture,
    priority);
    public function dispatchEvent(evt:Event):Boolean{
    return dispatcher.dispatchEvent(evt);
    public function hasEventListener(type:String):Boolean{
    return dispatcher.hasEventListener(type);
    public function removeEventListener(type:String,
    listener:Function, useCapture:Boolean = false):void{
    dispatcher.removeEventListener(type, listener, useCapture);
    public function willTrigger(type:String):Boolean {
    return dispatcher.willTrigger(type);
    but in my application the event doesn't get caught:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()" initialize="addListeners()">
    <mx:Script>
    <![CDATA[
    private function addListeners():void
    this.addEventListener( TestCustomEvent.EVENT_NAME,
    onEventCaught );
    private function init():void
    var t:TestDispatch = new TestDispatch();
    t.RaiseEvent();
    public function onEventCaught(event:TestCustomEvent):void
    trace("caught");
    ]]>
    </mx:Script>
    </mx:Application>
    Not sure why event is not being caught.
    Thanks,
    EE

    I updated my code a little:
    //Using a sprite so it should be part of the diplay list now.
    package
    import flash.display.Sprite;
    public class TestClass2 extends Sprite
    public function TestClass2()
    super();
    public function RaiseEvent():void
    var ev:TestCustomEvent = new TestCustomEvent("catch this");
    this.dispatchEvent(ev);
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()" initialize="addListeners()"
    xmlns:local="*">
    <mx:Script>
    <![CDATA[
    private function addListeners():void
    this.addEventListener( TestCustomEvent.EVENT_NAME,
    onEventCaught );
    private function init():void
    tc2.RaiseEvent();
    public function onEventCaught(event:TestCustomEvent):void
    trace("caught");
    ]]>
    </mx:Script>
    <local:TestClass2 id="tc2" width="100" height="50" />
    </mx:Application>
    But event still not being caught.

  • Resource action not being called

    The executable file not being called
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    <ResourceAction name='AfterUpdate'>
    <ResTypeAction restype='Red Hat Linux' timeout='6000'>
    <act>
    /usr/local/vistaplus/vadmin c=mu us=$(USER_NAME) pas=$(USER_PASSWORD)
    exit
    </act>
    </ResTypeAction>
    </ResourceAction>
    </Waveset>

    yep, sorry for reposting but in that post I said I had it fixed but obviously its not. What's really change is that I cant recreate this problem on my laptop but on our dev and test environments this problem still exists. My initial thoughts is that this is an environment problem but i'm not totally convinced as the was settings etc are the same as on my laptop.

  • Exception thrown in EJB not captured in ManagedBean

    Hi. Im new in community.
    I have an EE project using JSF 1.2, EJB 3.0 deployed in Weblogic 10.3.6.
    My EJB that throws an Exception that is captured in my ManagedBean. However the exception does not reach to my ManagedBean.
    This exception should reload the page with an error message stating that the group already exists, but as the exception does not reach the ManagedBean, the page is not displayed with the error message.
    I appreciate the help. Rgrds.
    My web.xml
      <error-page>
        <exception-type>java.lang.Exception</exception-type>
        <location>/PRErrorPageView.faces</location>
      </error-page>
    My EJB:
    try {
                List<Grupo> grupos = findGrupoByName(grupo.getNomeGrupo());
                if (!grupos.isEmpty() && !alteraPermissao)
                    throw new GrupoException("msgErroGrupoNomeCadastrado");
    My ManagedBean:
    Here is the call of my EJB
    grupoServices.persisteGrupo(grupo, listCR, listCC, listCM, listCP, listMo, alteraGrupo, codigoTela, codigoUsuarioLogado);         
    cancelar();
    FacesUtil.addSuccessMessage("Grupo criado com sucesso!");
    } catch (GrupoException e) {
    logger.warning(e.getMsg());
    FacesUtil.addErrorMessage(e.getMsg());
    My class GrupoException:
    public class GrupoException extends ComponentException{
        /** The serialVersionUID */
        private static final long serialVersionUID = -6912605895523623154L;
            public GrupoException(String key){
            super(key);
    My ComponentException:
    public class ComponentException extends RuntimeException{
        /** The serialVersionUID */
        private static final long serialVersionUID = -2534006938034008594L;
        private String            msg;
        public ComponentException(String key) {
            String msgBundle = ResourcesUtil.getString(ResourcesUtil.MENSAGENS_FILE, key);
            this.msg = msgBundle;
    Weblogic log:
    ]] Root cause of ServletException.
    javax.faces.FacesException: #{cadastroGrupo.gravar}: javax.ejb.EJBException: EJB Exception: : br.com.telefonica.portal.services.exceptions.GrupoException
        at br.com.telefonica.portal.services.impl.GrupoServiceImpl.persisteGrupo(GrupoServiceImpl.java:93)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
        at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
        at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy87.persisteGrupo(Unknown Source)
        at br.com.telefonica.portal.services.impl.GrupoServiceImpl_k21zc8_GrupoServicesLocalImpl.__WL_invoke(Unknown Source)
        at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
        at br.com.telefonica.portal.services.impl.GrupoServiceImpl_k21zc8_GrupoServicesLocalImpl.persisteGrupo(Unknown Source)
        at br.com.telefonica.portal.web.views.CadastroGrupoBean.gravar(CadastroGrupoBean.java:310)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
        at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
        at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
        at javax.faces.component.UICommand.broadcast(UICommand.java:387)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    ; nested exception is: br.com.telefonica.portal.services.exceptions.GrupoException
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
        at javax.faces.component.UICommand.broadcast(UICommand.java:387)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
        Truncated. see log file for complete stacktrace
    Caused By: javax.faces.el.EvaluationException: javax.ejb.EJBException: EJB Exception: : br.com.telefonica.portal.services.exceptions.GrupoException
        at br.com.telefonica.portal.services.impl.GrupoServiceImpl.persisteGrupo(GrupoServiceImpl.java:93)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
        at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
        at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy87.persisteGrupo(Unknown Source)
        at br.com.telefonica.portal.services.impl.GrupoServiceImpl_k21zc8_GrupoServicesLocalImpl.__WL_invoke(Unknown Source)
        at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
        at br.com.telefonica.portal.services.impl.GrupoServiceImpl_k21zc8_GrupoServicesLocalImpl.persisteGrupo(Unknown Source)
        at br.com.telefonica.portal.web.views.CadastroGrupoBean.gravar(CadastroGrupoBean.java:310)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
        at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
        at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
        at javax.faces.component.UICommand.broadcast(UICommand.java:387)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    ; nested exception is: br.com.telefonica.portal.services.exceptions.GrupoException
        at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
        at javax.faces.component.UICommand.broadcast(UICommand.java:387)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
        Truncated. see log file for complete stacktrace
    Caused By: javax.ejb.EJBException: EJB Exception: : br.com.telefonica.portal.services.exceptions.GrupoException
        at br.com.telefonica.portal.services.impl.GrupoServiceImpl.persisteGrupo(GrupoServiceImpl.java:93)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
        at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
        at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy87.persisteGrupo(Unknown Source)
        at br.com.telefonica.portal.services.impl.GrupoServiceImpl_k21zc8_GrupoServicesLocalImpl.__WL_invoke(Unknown Source)
        at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
        at br.com.telefonica.portal.services.impl.GrupoServiceImpl_k21zc8_GrupoServicesLocalImpl.persisteGrupo(Unknown Source)
        at br.com.telefonica.portal.web.views.CadastroGrupoBean.gravar(CadastroGrupoBean.java:310)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.el.parser.AstValue.invoke(AstValue.java:187)
        at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
        at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
        at javax.faces.component.UICommand.broadcast(UICommand.java:387)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    ; nested exception is: br.com.telefonica.portal.services.exceptions.GrupoException
        at weblogic.ejb.container.internal.EJBRuntimeUtils.throwEJBException(EJBRuntimeUtils.java:156)
        at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException(BaseLocalObject.java:887)
        at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException(BaseLocalObject.java:818)
        at weblogic.ejb.container.internal.BaseLocalObject.postInvoke1(BaseLocalObject.java:517)
        at weblogic.ejb.container.internal.BaseLocalObject.__WL_postInvokeTxRetry(BaseLocalObject.java:455)
        Truncated. see log file for complete stacktrace
    Caused By: br.com.telefonica.portal.services.exceptions.GrupoException
        at br.com.telefonica.portal.services.impl.GrupoServiceImpl.persisteGrupo(GrupoServiceImpl.java:93)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        Truncated. see log file for complete stacktrace

    Tao,
              > If your ejb method is in a transaction context, then you throw application
              exception, the container will try to commit the transaction.
              In the case of an application exception, the caller will be responsible for
              committing or rolling back the transaction. (A runtime exception will roll
              back the transaction automatically.) That is why, if you use CMT, that the
              EJB methods call from outside the EJB container (such as from a servlet)
              should never be able to throw runtime exceptions.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Tao Zhang" <[email protected]> wrote in message
              news:3a33c04a$[email protected]..
              >
              > Hi,
              > It's ok because you look after the transaction yourself. probably you use
              the default transaction attribute 'Supports'.
              >
              > If your ejb method is in a transaction context, then you throw application
              exception, the container will try to commit the transaction.
              >
              > Hope this can help.
              > Tao Zhang
              >
              > "Gormless" <[email protected]> wrote:
              > >
              > >When I throw an application exception from within a statless session bean
              which uses jdbs for DB Lookup Only I get
              > >"Exception thrown in non-transactional EJB invoke".
              > >
              > >As this is a llokup only I have no Transaction Management
              >
              

  • Problems with Starcam clip driver not being recognised / working.

    Hi
    I have recently purchased a starcam clip as my wife kept nicking my web cam to skype her sister.
    I installed as per the instructions and it did not work so I de-installed and then went to the MSI web and got the latest driver for XP. This then works ok until i either unplugged the camera or shut down. I then have to re-install each time i want to use the camera >:(. If i have the camera plugged into the same usb as the last install then the computer (Acer travelmate ) shows the camera installed and plugged in but wont actually work unless I re-install . any suggestions?

    Hi I have now made some progress. If I run the setup.exe as downloaded from the MSI web site the camera works as I would expect. (colour washout aside - but the thread on the 370i cam has explained this)
    (1)The next time I start my computer the camera is recognised but Amcap has the error message of "This graph cannot preview" . The camera is listed in my computer but if I select the camera I get "creation of video preview failed - Check connection and check it is not being used by another application".
    I can get the camera to work by running the setup.exe file again but this is a drag.
     (2)If I swap to another  USB port then I get the "found new hardware" icon and the new hardware wizard starts.
    (3)If I start up with the camera unplugged and plug into the port on which the camera was in on the initial installation then I get the same result as (1).
    Anyone any suggestions - I do not believe it is a hardware (camera) problem as it does work when initially installed.

  • ITunes needs to fix the problem with there gift cards not being activated this is not up to the retailer and they will not return scratched coded cards! There is thousands of people having this problem please fix it

    iTunes needs to fix the problem with there iTunes cards not activating properly! This is not the retailers fault and they will not return iTunes cards that have had the code area scratched there for apple needs to credit and or activated the cards there is thousands of people having this problem please bite the bullet and fix it already I will not be using iTunes until this is corrected...

    If you haven't received the item then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Command link action not being called

    Hi,
    I raised another bug about this and I thought I had fixed this but it seems to have come back again! Here are the details:
    The Problem
    - I have a jsf application that uses SDO to manage database calls/changes. In the application I have a navigation menu which consists of command links. From time to time (doesn't always happen) you click on a link and the page just refreshes and you are not taken to the requested page. Now this doesn't happen all the time! I've looked at logs and added debugs but I can't find anything apart from the face that when the page just refreshes the action behind the command link is not called.
    Has anyone experienced this before? I'm using wsad 5.1.2 and have this problem and the version of faces is 1.0.
    Please help as I have no idea what is causing this!!

    yep, sorry for reposting but in that post I said I had it fixed but obviously its not. What's really change is that I cant recreate this problem on my laptop but on our dev and test environments this problem still exists. My initial thoughts is that this is an environment problem but i'm not totally convinced as the was settings etc are the same as on my laptop.

  • CommandLink action not being invoked

    HI:
    I have a page with panelGrid, which has three inputText and one selectOneMenu, all of which have a validator ( a method in the backing bean).
    All these are followed by a commandLink button with a 'action' method in the same backing bean.
    Problem is when the link is submitted the action method does not get invoked. I placed debug messages and can see that the validator methods are entered but the action method never gets invoked. There are no error messages either.
    Any thoughts ?

    I found a work around. At least everything is working now. I have to yet test out the entire functionality of my application but here is what I did.
    Thanks to the example in the book
    JavaServer Faces
    By Hans Bergsten
    In my main layout page
    <%@ taglib prefix="f" uri="/WEB-INF/jsf_core.tld" %>
    <%@ taglib prefix="h" uri="/WEB-INF/html_basic.tld" %>
    <f:view>
    <html>
    <h:form>
    <%@ include file="../../page1.jspf" %>
    </h:form>
    <h:form>
    <%@ include file="../../page2.jspf" %>
    </h:form>
    <h:form>
    <%@ include file="page3.jspf" %>
    </h:form>
    </html>
    </f:view>

  • Solution to Button Action not being called in IE

    All,
    Thought I'd post a solution to a problem I had recently. I have seen variations on a theme elsewhere on the net.
    IDE: Java Studio Creator 2, Update 1.
    Problem: The button action associated with a button component on a jspx page is not called when using IE 6, but is called using M. Firefox 1.5.
    Background: The jspx page is a combination of one core jsp page and four jsp fragments (header, main nav bar, module nav bar, authorization code). Several components are present on the core jsp page (layout components, table, buttons), several on the header, main nav bar, module nav bar fragments (images, hyperlinks, text), JSTL and a lonesome form on the authorization fragment. You can see where I'm going....
    Solution: The problem was with the authorization fragment. The authorization fragment is meant to be dropped on pages that I want to protect from users without the authorized role, perhaps by these users trying to navigate to it by URL manipulation. I added some JSTL code to specifically look at the role authorization for the current session user. If not in that role, they are redirected to the home page. Navigation links are secured by similar authorization using the rendered property bound to session data. The form was the problem. Unfortunately, I didn't give much thought to the additional component I would need on the fragment. I had to add something so I picked a layout one. The IDE appears to require a component. To correct the problem, I simply set the rendered property to "false". IE 6 now works fine, M. Firefox 1.5 was always happy. Code example below...
    Code Pre:
    <?xml version="1.0" encoding="UTF-8"?>
    <div style="-rave-layout: grid; width: 400px; height: 200px" xmlns:c="http://java.sun.com/jstl/core" xmlns:f="http://java.sun.com/jsf/core"
        xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
        <c:if test="${SessionBean1.monitor==false}">
            <c:redirect url="/faces/Welcome.jsp"/>
        </c:if>
        <ui:form binding="#{MonCheck.form1}" id="form1" />
    </div>
    Code Post:
    <?xml version="1.0" encoding="UTF-8"?>
    <div style="-rave-layout: grid; width: 400px; height: 200px" xmlns:c="http://java.sun.com/jstl/core" xmlns:f="http://java.sun.com/jsf/core"
        xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
        <c:if test="${SessionBean1.monitor==false}">
            <c:redirect url="/faces/Welcome.jsp"/>
        </c:if>
        <ui:form binding="#{MonCheck.form1}" id="form1" rendered="false"/>
    </div>

    Hi there,
    Great to know you were able to fix your problem. Thanks for posting the solution as well, Im sure It'll help the community.
    Thanks
    K

  • I have a new hard drive and itunes and my computer (windows XP) no longer recognise my ipod. I also had the problem with the registry keys not being present but this has now been fixed. However i can no longer link my ipod up with itunes.

    When I first tried itunes with my new hard drive there was the problem with the registry keys but something also flagged up about needing a signed driver. Is this anything to do with why Itunes and my computer no longer recognises when my ipod is linked up? Whatever i try under 'devices' my ipod is never available to sync up. If anyone can help I would be most grateful.

    Thanks for your reply. Unfortunately this has not worked. I didn't have quicktime to begin with so I don't know if that makes a difference? After following the instructions, I get the "registry keys missing" problem appear again (which I've subsequently fixed again) and then when I connected the ipod I got the following message - 'Device driver software was not successfully installed'.
    I've tried windows update but this doesn't do anything as '...the service is not running'.
    Any suggestions?

  • Having a problem with the DVD drive not being recognized by the computer

    Compaq Presario CQ60-215DX NOTEBOOK PC, WINDOWS VISTA,  Error 10 when trying to reinstall the driver, says cannot start.
    I went thru the HP troubleshooting and it said to see the mfg of drive to solve problem!  I finally bought a new DVD drive P/N498479-001 for replacement . uninstalled the old drive & then reinstalled the new drive , restarted the computer & it still will not recognize the DVD player! Same error code, same problem. The problem started when I tried to play a CD that appeared to be scratched pretty badly, however my desk top played the CD with out problems? When you click on "computer" the drive does not show up!
    I did install a new router a couple of days before this happened, but I am using a data cable to it, so that should not be a problem. Any Ideas?

    Apple has moved on from Firewire and the current iMacs (and most MBPs) have Thunderbolt, USB3 and USB2.
    There are Firewire toThunderbolt adaptors. Here's one. You also want a four pin to nine pin FW cable to run from your camera to the adaptor.
    Russ

  • Memory Problems with Photoshop CS2 - RAM not being utlized

    I am having memory issues with Photoshop CS2. I have a G5 dual 2.5 with 8 GB of RAM. PS CS2 keeps hanging on me when I'm doing fairly routine tasks with a fairly complex low-res .psd file. It includes several nested layers...etc.
    I noticed while running activity monitor that Photoshop is utilizing a very small percentage of my system's RAM. Approximately 475 MB of the total 8 GB RAM and 1.07 GB of harddrive space for the scratch disk. This seems odd as there is over 6 GB of free RAM while this is happening.
    I've uploaded a screen capture of my activity monitor while Photoshop is hanging. Note that the CPU percentage is above 98%. That's an awful lot of RAM going unused.
    http://www.tramad.com/Memory.png
    Any idea what's going on here? Could it be a corrupt file or font?

    Doesn't completely make sense as I've been using this particular machine for almost two years without any problems working in much more complex and much larger high-res .psd files. I doubt that's what the issue is here. I'm starting to think the file became corrupted...
    Hard to believe that Adobe/Apple haven't issued a fix for the RAM issue yet.
    I also run routine CRON maintenance using Cocktail and have no other issues with any software....

Maybe you are looking for

  • How to retrieve a due date from a human task and create a report in BAM with it

    Hi. I'm working with a BPM process, the requirement is that I have a human task and a working hours limit to complete it. For this purpose I created a calendar in the bpm workspace and I've associated it to a role that executes that human task. Now I

  • Lock SM49 entries into transport manually

    Hi All,       I have created some External OS commads in SM49.I t hasnt asked me for Transport.       Is there anyway to Lock the new entries I created into a transport and move across my system landscape ? Thanks, Madan

  • Configure ePortfolio for Crystal Reports 9 Report Application Server for Users to Run Reports

    Post Author: lacc CA Forum: Crystal Reports Sorry for this basic question but Crystal 9 is no longer supported and I am having trouble finding any documentation about how to configure ePortfolio let alone obtain any help from Crystal support. I have

  • Using Dynamic Groups in Ldap for Accounts and Roles

    Does anyone currently use dynamic groups in LDAP for accounts and roles? I have set up a dynamic group in ldap (we are using OID Oracle internet Directory 10.1.2.0) , ldapsearch returns the correct list of unique names, but the account does not appea

  • KM Collaboration Launch Pad Problem

    Hi , I am using EP6 . The Portal shows link for Collaboration Launch Pad but whenever i click over it the following error is occuring: Exception Class: class com.sapportals.wcm.WcmException Exception Message : Cannot get an instance of the presence s