Exception handling in data control

How to handle exceptions in data control so that it will bubble up to the surface level and be handled gracefully (meaning give user a message indication some kind of error has occurred and try again later)
I have page to display user information which comes from a data control (I dragged and dropped the DC to the page). There is no managed bean involved. One day some problem happened with the database and the data control failed. The user ended up seeing a blank page.
Thanks.

Hi,
throw a new JBOException
Frank

Similar Messages

  • Exception while creating Data Control

    Good day house,
    I have been doing some research on using business components design in other IDEs with Oracle ADF faces within JDeveloper 11g.
    I went through the following steps
    create a Java EE web application - a model and viewcontroller project
    imported my EJB project jar file - but I could not get an icon to show me the beans within my jar, so I imported the source instead
    On importing the source, I right click on my bean classes and chose create Data control but it comes with an exception
    May 27, 2009 2:15:10 AM oracle.javatools.logging.LogUtils log
    WARNING: Plugin threw exception: oracle.adfdtinternal.model.ide.datatransfer.jclient.JClientJavaSourceNodePlugin@1439ad
    java.lang.NullPointerException
         at oracle.adfdtinternal.model.ide.dbpanel.jclient.JClientUtil.getContextFromEditor(JClientUtil.java:539)
         at oracle.adfdtinternal.model.ide.datatransfer.jclient.PaletteItemProviderInfo.dropOnSameFile(PaletteItemProviderInfo.java:83)
         at oracle.adfdtinternal.model.ide.datatransfer.jclient.JClientJavaSourceNodePlugin.handleDataControlInfo(JClientJavaSourceNodePlugin.java:80)
         at oracle.adfdtinternal.model.ide.datatransfer.jclient.JClientJavaSourceNodePlugin.augmentImpl(JClientJavaSourceNodePlugin.java:56)
         at oracle.javatools.datatransfer.AbstractTransformingDataTransferPlugin.augmentIfDesired(AbstractTransformingDataTransferPlugin.java:65)
         at oracle.javatools.datatransfer.DataTransferPluginRegistry._runPlugin(DataTransferPluginRegistry.java:151)
         at oracle.javatools.datatransfer.DataTransferPluginRegistry.performAugmentation(DataTransferPluginRegistry.java:98)
         at oracle.adfdtinternal.model.ide.dbpanel.DataPanelDropListener._getTransferable(DataPanelDropListener.java:331)
         at oracle.adfdtinternal.model.ide.dbpanel.DataPanelDropListener.drop(DataPanelDropListener.java:253)
         at oracle.adfdtinternal.model.ide.dbpanel.DataPanelDropListener.drop(DataPanelDropListener.java:114)
         at java.awt.dnd.DropTarget.drop(DropTarget.java:434)
         at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
         at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
         at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
         at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
         at java.awt.Component.dispatchEventImpl(Component.java:4358)
         at java.awt.Container.dispatchEventImpl(Container.java:2081)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
         at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4036)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3890)
         at java.awt.Container.dispatchEventImpl(Container.java:2067)
         at java.awt.Window.dispatchEventImpl(Window.java:2458)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Hence, I have two question
    1. Can I create my data control from the bean interfaces instead of the bean?
    2. Why the exception? Is it a problem with my JDeveloper installation?
    3. Is it also possible to create a data control from any plain java object/interface.
    thanks in advance

    Did you create the weblogic domain with the Oracle Webcenter Spaces option selected? This should install the relevant libraries into the domain that you will need to deploy your application. My experience is based off WC 11.1.1.0. If you haven't, you can extend your domain by re-running the Domain Config Wizard again (WLS_HOME/common/bin/config.sh)
    Cappa

  • Need to obtain a handle to Data Controls through a java pgm in Oracle ADF

    Hi
    Through my java pgm i want to access the Data Control which i have created over a Web Service.The reason i need to do that is, once i can obtain a handle to the Data Control i will be able to invoke methods exposed on the Web Service and i want to do it through my pgm.
    I am aware that if i can drag and drop a DC of a web service onto a JSF page, it will be associated with a btn and on click of a btn the webservice method will be called.But my requirement is that i need to do the same through my pgm.
    Thanks !!!

    Hi Ansh
    Thanks for the reply
    I have followed the same link and created a sample app and i am facing some error, error given below.
    jdeveloper 11.1.1.6.0  Warning 'http://xmlns.oracle.com/oracleas/schema/11/
    if you have any solution for this , pls revert.
    Thanks in advance

  • Exception handling in  Data feeder class

    Hi All,
    I have written some code in the DATA class feeder.  there i am catching some exception and i am displaying the exception using the message manager.
    So after catching the exception , its going for dump because , the mo_message , the attribute of the data class has NULL values ,
    But i can able to display the exceptions in form and list feeder classes . because i have referred the data class in both form and list attributes .
    So its getting the instance , but i need to display the exceptions in the data class, how to get the instance of the message interface.
    Please share !
    Thanks,
    Pradeep.

    Hi,
    throw a new JBOException
    Frank

  • POJO Data Control Error Handling

    Hi.
    I have POJO Data Control on Model.
    Now everytime this data control thorws exception (JboException) on ViewController I get two errors like:
    ValidationException: Exception Description: My JboException error
    ... (Stacktrace)
    Caused by: java.lang.reflect.InvocationTargetException
         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 oracle.adfinternal.model.adapter.bean.BeanDCUtils.invokeMethod(BeanDCUtils.java:730)
         at oracle.adf.model.adapter.bean.BeanDCInvokeMethodHandler.invoke(BeanDCInvokeMethodHandler.java:100)
         at oracle.adf.model.adapter.bean.UpdatableBeanDataControl.invokeOperation(UpdatableBeanDataControl.java:459)
         ... 75 moreWhat is proper way of handling exceptions in POJO Data Controls?
    Regards

    Hi,
    any exception that is thrown by the data control is passed on to the binding layer to display the exception (if dc is accessed through the binding). So how do you access the POJO DC when the exception is thrown?
    Frank

  • BPM Exception Handling control step

    Hi,
    Does anybody have any idea, whats the variable we need to pass in the control step of exception handling  in BPM? and how to map the error message back to the RFC Response.
    I had Transformation step, in that mapping is also there.
    Is there any ideas??.
    Thanks,
    Raj.

    Hi,
    The requirement was to send the exception that occured to a target (say file).
    <i>insert a block for the exception</i>
    You cannot place an exception step without a block right... thats what i mean by the above statement.
    Now, just after the exception has taken place, if i put a transformation step, and a send step, you will be taking care of sending the exception message to the target.
    <i>how to build the exception message ? It should map from what?</i>
    You could build a data type for the exception.
    In the mapping, you could map it to constants. For ex:
    if you build your DT as
    <excep>
    <code/>
    <desc/>
    </excep>
    You could map the description to a constant string "timeout".
    After this, the send step will send the message to the file, through the abstract interface that you create.
    Regards,
    Smitha.

  • JBO-29000 Exception: ContentDB Data control

    Hi,
    After sucessfully establishing the Data control connection with content db http://servername:port/content/ws for the first time, I got the following error
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null     at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:56)     at oracle.adf.model.BindingContext.get(BindingContext.java:457)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)     at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)     at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)
    Do I need to add/configure some more setting after setting up the data control? I am confused where do I need to input DB credentials. I don't know what I am missing. Please help

    hi !
    unfortunately this is a pretty generic error, but from the error stack you posted it seems that there is something wrong with the data control ... well ... what exactly it does not say.
    therefore here a couple of questions:
    -) has it ever worked or do you get this error when you try to run the page ?
    -) have you tried editing the data control (right click on the data control in palette and use the "edit" item in the context menu) to see if the test button still successfully works ?
    -) have you tried whether the CDB instance (with the URL you gave in the data control) is still accessible ?
    -) have you tried to create a new data control (optionally in a brand new project) ?
    regarding the credential question there are two possible scenarios:
    -) if your app is not secured or all users should use the same credentials, provide the necessary credentials in the wizard.
    -) if your app is secured and you want to pass the application identity to CDB, you need to set up a secure connection to CDB using WSS or S2S (depending on which version of CDB you are using) and check the corresponding box in the wizard, right below the credential input fields.
    thanks,
    philipp

  • Exception thrown while trying to acquire data from Profile Data Control

    I created a new WebCenter Portal Application (with JDeveloper 11.1.1.4).
    Then tried to acquire data from Profile Data Control through getProfile().WCUserProfile to create a read-only form with profile data.
    After deploying (to internal WLS) and running I got a popup saying:
    *Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.1.2.v20101104-r8475): org.eclipse.persistence.exceptions.ValidationException Exception*
    Description: Cannot acquire data source [java:comp/env/jdbc/WebCenterDS].
    Internal Exception: javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: While trying to lookup 'jdbc.webcenter.CustomPortalDS' didn't find subcontext 'webcenter'. Resolved 'jdbc'; remaining name 'webcenter/CustomPortalDS']; Link Remaining Name: 'jdbc/webcenter/CustomPortalDS'
    The question is how can I create such a data source to acquire data needed?

    Hi, there's two ways, in both ways you need use the user <PRE>_WEBCENTER that RCU create.
    1 - You can go in your console and create de dataSource, as Yannick sad. You can use your production database if you want get some more real tests, or you can get some develope database and run RCU. You can copy the configuration from you WLS server that are installed webcenter to make this easy.
    2 - In develop mode you can just create a database connection name "WebCenter", just like sad here:
    http://download.oracle.com/docs/cd/E17904_01/webcenter.1111/e10148/jpsdg_people.htm#BABICGCH

  • Web Service Data Control XMLDOMException exception

    This issue is produced when we have Web Service Data Control (D.C.) used as reference data provider and is used as List Data Source in selectOneChoice. This happens only when we have the data control created directly from the WSDL. If we create a WS Proxy first and then we create a D.C. from the proxy interface, we don't have this issue. How can we use the D.C. directly without creating a WS proxy ?
    Here are some snippets:
    from page definition file
    <executables>
    <accessorIterator MasterBinding="EmployeeIterator"
    Binds="workedForDepartments" RangeSize="25"
    DataControl="EditTaskUI_EditTask"
    BeanClass="EditTaskUI_EditTask.DepartmentType"
    id="workedForDepartmentsIterator"/>
    <methodIterator Binds="getDepartments.result"
    DataControl="ReferenceDataServiceWebServiceDC"
    RangeSize="25"
    BeanClass="referencedataservicewsdc.ReferenceDataServiceWebServiceDC.getDepartments"
    id="getDepartmentsIterator"/>
    <accessorIterator MasterBinding="getDepartmentsIterator" Binds="Department"
    RangeSize="-1"
    DataControl="ReferenceDataServiceWebServiceDC"
    BeanClass="referencedataservicewsdc.ReferenceDataServiceWebServiceDC.getDepartments.Department"
    id="DepartmentIterator"/>
    </executables>
    <bindings>
    <list IterBinding="workedForDepartmentsIterator" id="departments"
    DTSupportsMRU="true" StaticList="false" ListIter="DepartmentIterator">
    <AttrNames>
    <Item Value="id"/>
    <Item Value="name"/>
    </AttrNames>
    <ListAttrNames>
    <Item Value="key"/>
    <Item Value="value"/>
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="value"/>
    </ListDisplayAttrNames>
    </list>
    <methodAction id="getDepartments" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="getDepartments"
    IsViewObjectMethod="false"
    DataControl="ReferenceDataServiceWebServiceDC"
    InstanceName="ReferenceDataServiceWebServiceDC"
    ReturnName="data.ReferenceDataServiceWebServiceDC.methodResults.getDepartments_ReferenceDataServiceWebServiceDC_getDepartments_result"/>
    </bindings>
    snippet from jsf page
    <af:selectOneChoice value="Departments"
    label="#{bindings.departments.label}"
    required="#{bindings.departments.hints.mandatory}"
    shortDesc="#{bindings.departments.hints.tooltip}"
    id="soc5">
    <f:selectItems value="#{bindings.departments.items}" id="si9"/>
    </af:selectOneChoice>
    and the wsdl used to create service, from which the D.C. is created
    <?xml version="1.0" encoding="UTF-8" ?>
    <definitions targetNamespace="urn:ReferenceDataService"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="urn:ReferenceDataService"
    xmlns:types="urn:ReferenceDataService/types"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
    <types>
    <xsd:schema targetNamespace="urn:ReferenceDataService/types"
    xmlns:types="urn:ReferenceDataService/types"
    elementFormDefault="qualified">
    <xsd:element name="AddressList">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element ref="types:Address" minOccurs="0" maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="DepartmentsList">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element ref="types:Department" minOccurs="0" maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Address" type="types:KeyValue"/>
    <xsd:element name="Department" type="types:KeyValue"/>
    <xsd:complexType name="KeyValue">
    <xsd:sequence>
    <xsd:element name="key" type="xsd:string" maxOccurs="1" minOccurs="1" />
    <xsd:element name="value" type="xsd:string" maxOccurs="1" minOccurs="1" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </types>
    <message name="ListAddressesReqMsg"/>
    <message name="ListAddressesRespMsg">
    <part name="response" element="types:AddressList" />
    </message>
    <message name="GetAddressesReqMsg"/>
    <message name="GetAddressesRespMsg">
    <part name="response" element="types:AddressList" />
    </message>
    <message name="ListDepartmentsReqMsg"/>
    <message name="ListDepartmentsRespMsg">
    <part name="response" element="types:DepartmentsList" />
    </message>
    <message name="GetDepartmentsReqMsg"/>
    <message name="GetDepartmentsRespMsg">
    <part name="response" element="types:DepartmentsList" />
    </message>
    <portType name="ReferenceDataPort">
    <operation name="listAddresses">
    <input message="tns:ListAddressesReqMsg"/>
    <output message="tns:ListAddressesRespMsg"/>
    </operation>
    <operation name="getAddresses">
    <input message="tns:GetAddressesReqMsg"/>
    <output message="tns:GetAddressesRespMsg"/>
    </operation>
    <operation name="listDepartments">
    <input message="tns:ListDepartmentsReqMsg"/>
    <output message="tns:ListDepartmentsRespMsg"/>
    </operation>
    <operation name="getDepartments">
    <input message="tns:GetDepartmentsReqMsg"/>
    <output message="tns:GetDepartmentsRespMsg"/>
    </operation>
    </portType>
    <binding name="ReferenceDataPortSOAP11Binding" type="tns:ReferenceDataPort">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="listAddresses">
    <soap:operation style="document"
    soapAction="urn:ReferenceDataService/listAddresses"/>
    <input>
    <soap:body use="literal" parts=""/>
    </input>
    <output>
    <soap:body use="literal" parts="response"/>
    </output>
    </operation>
    <operation name="getAddresses">
    <soap:operation style="document"
    soapAction="urn:ReferenceDataService/getAddresses"/>
    <input>
    <soap:body use="literal" parts=""/>
    </input>
    <output>
    <soap:body use="literal" parts="response"/>
    </output>
    </operation>
    <operation name="getDepartments">
    <soap:operation style="document"
    soapAction="urn:ReferenceDataService/getDepartments"/>
    <input>
    <soap:body use="literal" parts=""/>
    </input>
    <output>
    <soap:body use="literal" parts="response"/>
    </output>
    </operation>
    <operation name="listDepartments">
    <soap:operation style="document"
    soapAction="urn:ReferenceDataService/listDepartments"/>
    <input>
    <soap:body use="literal" parts=""/>
    </input>
    <output>
    <soap:body use="literal" parts="response"/>
    </output>
    </operation>
    </binding>
    <service name="ReferenceDataService">
    <port name="ReferenceDataPort" binding="tns:ReferenceDataPortSOAP11Binding">
    <soap:address location="http://service/ReferenceDataService"/>
    </port>
    </service>
    </definitions>
    Error log in the server consle
    <May 15, 2012 2:59:48 PM CEST> <Warning> <oracle.adf.controller.faces.lifecycle.Utils> <BEA-000000> <ADF: Adding the following JSF error message: invalid character : in name
    oracle.xml.parser.v2.XMLDOMException: invalid character : in name
         at oracle.xml.util.XMLUtil.validateQualifiedName(XMLUtil.java:530)
         at oracle.xml.parser.v2.XMLElement.<init>(XMLElement.java:416)
         at oracle.j2ee.ws.saaj.soap.ElementImpl.<init>(ElementImpl.java:80)
         at oracle.j2ee.ws.saaj.soap.BodyElementImpl.<init>(BodyElementImpl.java:20)
         at oracle.j2ee.ws.saaj.soap.soap11.BodyElement11.<init>(BodyElement11.java:19)
         at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createBodyElement(SOAPImplementation11.java:120)
         at oracle.j2ee.ws.saaj.soap.BodyImpl.createChildElement(BodyImpl.java:160)
         at oracle.j2ee.ws.saaj.soap.ElementImpl.createAndAppendChildElement(ElementImpl.java:827)
         at oracle.j2ee.ws.saaj.soap.ElementImpl.addChildElement(ElementImpl.java:154)
         at oracle.j2ee.ws.mdds.SAAJEnvelopeBuilder.startElement(SAAJEnvelopeBuilder.java:161)
    at ....
    Here is the sample project for download
    http://www.4shared.com/zip/96UKoyvU/Exception_In_DC.html?
    Edited by: pavle on 15-May-2012 07:41

    Luis,
    lets cut this down to the most simplest testcase. You have a Web Service that allows an input argument to be null. The application based on the WSDC has a textfield and a button. The error shows if the button is pressed without you adding a value to the textfield.
    My questions are:
    - is my understanding correct ?
    - Is the WebServices created in JDeveloper 11 as well?
    - If it is created in JDeveloper 11, is it a JAX-WS Web Services, or a RPC style service ?
    Frank

  • Getting errors when creating Web Services Data Control in Jdev 11.1.2.4.0

    Hi
    I am on Jdev 11.1.2.4.0 Build JDEVADF_11.1.2.4.0_GENERIC_130421.1600.6436.1
    When I am trying to create Web Services Data Control for SOAP, it gives 'Invalid WSDL File' for any WSDL file and shows following error:
    oracle/adfdtinternal/model/adapter/webservice/utils/WSUtils$DefaultAuthPrompter
    and in 'feedback' tab:
    Already logged bug for [NoClassDefFoundError in o.j.webservices.wsdl.CachedWSDLReader:394]
    Also if I try to create a new Request in HTTPAnalyzer and give a WSDL it shows following exception:
    java.io.IOException: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/wsdl/CachedWSDLReader$SimpleAuthPrompt
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:228)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:132)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.WSDLChooserDialog$2.run(WSDLChooserDialog.java:398)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/wsdl/CachedWSDLReader$SimpleAuthPrompt
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:394)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:298)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:294)
         at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
         at java.lang.ThreadLocal.get(ThreadLocal.java:131)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:308)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLDirect(CachedWSDLReader.java:471)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator$FetchModelTask.call(MddsLocator.java:264)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator$FetchModelTask.call(MddsLocator.java:237)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:212)
         ... 4 more
    followed by "The string <WSDL URL> is not a valid WSDL".
    If I try to create a REST WS Datacontrol, it shows error:
    NoClassDefFoundError in o.adf.model.connection.url.HttpUrlConnection:146
    Entire stack trace is attached.
    Please let me know if these are known issues and if there is any workaround.
    Thanks

    Don't see any way to attach file. So here is the entire trace:
    Performing action (299) New... [ from FrameworkXmlEditor ] [ for ( adfmf-application.xml, <none>, ADFApp1.jws ) ]
    Performing action (299) New... [ from ProjectNavigatorWindow ] [ for ( <none>, ViewController.jpr, ADFApp1.jws ) ]
    Performing action (1046) Create New Request [ from HistoryDockable ] [ for ( <none>, ViewController.jpr, ADFApp1.jws ) ]
    oracle.jdevimpl.webservices.tcpmonitor.editor:Jun 3, 2013 4:46:51 PM oracle.jdevimpl.webservices.tcpmonitor.editor.WSDLChooserDialog$2 validateWSDL
    WARNING: A problem has been found building the mdds model
    java.io.IOException: java.lang.NoClassDefFoundError: HTTPClient/AuthorizationPrompter
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:228)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:132)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.WSDLChooserDialog$2.run(WSDLChooserDialog.java:398)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.NoClassDefFoundError: HTTPClient/AuthorizationPrompter
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
         at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:580)
         at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:550)
         at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:481)
         at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:469)
         at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
         at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:394)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:298)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:294)
         at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
         at java.lang.ThreadLocal.get(ThreadLocal.java:131)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:308)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLDirect(CachedWSDLReader.java:471)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator$FetchModelTask.call(MddsLocator.java:264)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator$FetchModelTask.call(MddsLocator.java:237)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:212)
         ... 4 more
    Caused by: java.lang.ClassNotFoundException: HTTPClient.AuthorizationPrompter
         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
         ... 31 more
    oracle.jdevimpl.webservices.tcpmonitor.editor:Jun 3, 2013 4:47:52 PM oracle.jdevimpl.webservices.tcpmonitor.editor.WSDLChooserDialog$2 validateWSDL
    WARNING: A problem has been found building the mdds model
    java.io.IOException: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/wsdl/CachedWSDLReader$SimpleAuthPrompt
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:228)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:132)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.WSDLChooserDialog$2.run(WSDLChooserDialog.java:398)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/wsdl/CachedWSDLReader$SimpleAuthPrompt
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:394)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:298)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:294)
         at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
         at java.lang.ThreadLocal.get(ThreadLocal.java:131)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:308)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLDirect(CachedWSDLReader.java:471)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator$FetchModelTask.call(MddsLocator.java:264)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator$FetchModelTask.call(MddsLocator.java:237)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:212)
         ... 4 more
    Performing action (13) Save All [ from SOAPMessageEditor ] [ for ( HTTP Analyzer : Unsent Message, <none>, <none> ) ]
    Invoking command: [ from SOAPMessageEditor ] [ for ( HTTP Analyzer : Unsent Message, <none>, <none> ) ]
    Performing action (388) JDeveloper Forum [ from FrameworkXmlEditor ] [ for ( adfmf-application.xml, <none>, ADFApp1.jws ) ]
    Performing action (388) JDeveloper Forum [ from FrameworkXmlEditor ] [ for ( adfmf-application.xml, <none>, ADFApp1.jws ) ]
    Performing action (79) About [ from FrameworkXmlEditor ] [ for ( adfmf-application.xml, <none>, ADFApp1.jws ) ]
    Invoking command: [ from FrameworkXmlEditor ] [ for ( adfmf-application.xml, <none>, ADFApp1.jws ) ]
    Performing action (299) New... [ from FrameworkXmlEditor ] [ for ( adfmf-application.xml, <none>, ADFApp1.jws ) ]
    Performing action (299) New... [ from ProjectNavigatorWindow ] [ for ( ViewController.jpr, ViewController.jpr, ADFApp1.jws ) ]
    Performing action (299) New... [ from ProjectNavigatorWindow ] [ for ( ViewController.jpr, ViewController.jpr, ADFApp1.jws ) ]
    Performing action (279) Clear [ from MessagePage ] [ for ( <none>, ViewController.jpr, ADFApp1.jws ) ]
    Performing action (9) Open... [ from MessagePage ] [ for ( <none>, ViewController.jpr, ADFApp1.jws ) ]
    Performing action (299) New... [ from FrameworkXmlEditor ] [ for ( adfmf-application.xml, <none>, ADFApp1.jws ) ]
    Performing action (299) New... [ from ProjectNavigatorWindow ] [ for ( ViewController.jpr, ViewController.jpr, ADFApp1.jws ) ]
    Performing action (455) HTTP Analyzer [ from HistoryDockable ] [ for ( <none>, ViewController.jpr, ADFApp1.jws ) ]
    Performing action (1046) Create New Request [ from HistoryDockable ] [ for ( <none>, ViewController.jpr, ADFApp1.jws ) ]
    oracle.jdevimpl.webservices.tcpmonitor.editor:Jun 3, 2013 5:02:23 PM oracle.jdevimpl.webservices.tcpmonitor.editor.WSDLChooserDialog$2 validateWSDL
    WARNING: A problem has been found building the mdds model
    java.io.IOException: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/wsdl/CachedWSDLReader$SimpleAuthPrompt
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:228)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:132)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.WSDLChooserDialog$2.run(WSDLChooserDialog.java:398)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/wsdl/CachedWSDLReader$SimpleAuthPrompt
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:394)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:298)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:294)
         at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
         at java.lang.ThreadLocal.get(ThreadLocal.java:131)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:308)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLDirect(CachedWSDLReader.java:471)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator$FetchModelTask.call(MddsLocator.java:264)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator$FetchModelTask.call(MddsLocator.java:237)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:212)
         ... 4 more
    oracle.jdevimpl.webservices.tcpmonitor.editor:Jun 3, 2013 5:03:39 PM oracle.jdevimpl.webservices.tcpmonitor.editor.WSDLChooserDialog$2 validateWSDL
    WARNING: A problem has been found building the mdds model
    java.io.IOException: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/wsdl/CachedWSDLReader$SimpleAuthPrompt
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:228)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:132)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.WSDLChooserDialog$2.run(WSDLChooserDialog.java:398)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/wsdl/CachedWSDLReader$SimpleAuthPrompt
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:394)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:298)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$1.initialValue(CachedWSDLReader.java:294)
         at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
         at java.lang.ThreadLocal.get(ThreadLocal.java:131)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:308)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLDirect(CachedWSDLReader.java:471)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator$FetchModelTask.call(MddsLocator.java:264)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator$FetchModelTask.call(MddsLocator.java:237)
         at oracle.jdevimpl.webservices.tcpmonitor.editor.MddsLocator.getModel(MddsLocator.java:212)
         ... 4 more
    Performing action (299) New... [ from ProjectNavigatorWindow ] [ for ( ViewController.jpr, ViewController.jpr, ADFApp1.jws ) ]
    java.lang.NoClassDefFoundError: HTTPClient/HTTPConnection
    java.lang.NoClassDefFoundError: HTTPClient/HTTPConnection
    o.adf.model.connection.url.HttpURLConnection.<init>(HttpURLConnection.java:146)
    o.adf.model.connection.url.URLProviderFactory.newInstance(URLProviderFactory.java:117)
    o.ji.connection.url.dialogs.ConnectionPanel.testConnection(ConnectionPanel.java:551)
    o.ji.connection.url.dialogs.ConnectionController.actionPerformed(ConnectionController.java:174)
    jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    j.a.Component.processMouseEvent(Component.java:6297)
    jx.s.JComponent.processMouseEvent(JComponent.java:3275)
    j.a.Component.processEvent(Component.java:6062)
    j.a.Container.processEvent(Container.java:2039)
    j.a.Component.dispatchEventImpl(Component.java:4660)
    j.a.Container.dispatchEventImpl(Container.java:2097)
    j.a.Component.dispatchEvent(Component.java:4488)
    j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    j.a.LightweightDispatcher.processMouseEvent(Container.java:4236)
    j.a.LightweightDispatcher.dispatchEvent(Container.java:4166)
    j.a.Container.dispatchEventImpl(Container.java:2083)
    j.a.Window.dispatchEventImpl(Window.java:2489)
    j.a.Component.dispatchEvent(Component.java:4488)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:674)
    j.a.EventQueue.access$400(EventQueue.java:81)
    j.a.EventQueue$2.run(EventQueue.java:633)
    j.a.EventQueue$2.run(EventQueue.java:631)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    j.a.EventQueue$3.run(EventQueue.java:647)
    j.a.EventQueue$3.run(EventQueue.java:645)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:644)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    j.a.Dialog$1.run(Dialog.java:1052)
    j.a.Dialog$3.run(Dialog.java:1104)
    j.security.AccessController.doPrivileged(Native Method)
    j.a.Dialog.show(Dialog.java:1102)
    j.a.Component.show(Component.java:1591)
    j.a.Component.setVisible(Component.java:1543)
    j.a.Window.setVisible(Window.java:843)
    j.a.Dialog.setVisible(Dialog.java:987)
    o.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)
    o.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)
    o.ji.connection.url.dialogs.URLConnectionDialog.runDialog(URLConnectionDialog.java:117)
    o.ji.connection.url.dialogs.URLConnectionDialog.invoke(URLConnectionDialog.java:85)
    o.adfdtinternal.model.adapter.webservice.wizard.rest.RestConnectionPanel.launchURLConnectionDialog(RestConnectionPanel.java:427)
    o.adfdtinternal.model.adapter.webservice.wizard.rest.RestConnectionPanel.access$000(RestConnectionPanel.java:93)
    o.adfdtinternal.model.adapter.webservice.wizard.rest.RestConnectionPanel$1.actionPerformed(RestConnectionPanel.java:201)
    jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    j.a.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    j.a.Component.processMouseEvent(Component.java:6297)
    jx.s.JComponent.processMouseEvent(JComponent.java:3275)
    j.a.Component.processEvent(Component.java:6062)
    j.a.Container.processEvent(Container.java:2039)
    j.a.Component.dispatchEventImpl(Component.java:4660)
    j.a.Container.dispatchEventImpl(Container.java:2097)
    j.a.Component.dispatchEvent(Component.java:4488)
    j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    j.a.LightweightDispatcher.processMouseEvent(Container.java:4236)
    j.a.LightweightDispatcher.dispatchEvent(Container.java:4166)
    j.a.Container.dispatchEventImpl(Container.java:2083)
    j.a.Window.dispatchEventImpl(Window.java:2489)
    j.a.Component.dispatchEvent(Component.java:4488)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:674)
    j.a.EventQueue.access$400(EventQueue.java:81)
    j.a.EventQueue$2.run(EventQueue.java:633)
    j.a.EventQueue$2.run(EventQueue.java:631)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    j.a.EventQueue$3.run(EventQueue.java:647)
    j.a.EventQueue$3.run(EventQueue.java:645)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:644)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    j.a.Dialog$1.run(Dialog.java:1052)
    j.a.Dialog$3.run(Dialog.java:1104)
    j.security.AccessController.doPrivileged(Native Method)
    j.a.Dialog.show(Dialog.java:1102)
    j.a.Component.show(Component.java:1591)
    j.a.Component.setVisible(Component.java:1543)
    j.a.Window.setVisible(Window.java:843)
    j.a.Dialog.setVisible(Dialog.java:987)
    o.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:382)
    o.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:298)
    o.adfdtinternal.model.adapter.webservice.wizard.WSDCWizard.runWizard(WSDCWizard.java:553)
    o.adfdtinternal.model.adapter.webservice.JdxPKWSAddin.invokeDCWizard(JdxPKWSAddin.java:155)
    o.adfdtinternal.model.adapter.webservice.JdxPKWSAddin.invoke(JdxPKWSAddin.java:91)
    o.i.wizard.WizardManager.invokeWizard(WizardManager.java:446)
    o.i.wizard.WizardManager$1.run(WizardManager.java:530)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:672)
    j.a.EventQueue.access$400(EventQueue.java:81)
    j.a.EventQueue$2.run(EventQueue.java:633)
    j.a.EventQueue$2.run(EventQueue.java:631)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:642)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by:
    java.lang.ClassNotFoundException: HTTPClient.HTTPConnection
    org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
    org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    j.lang.ClassLoader.loadClass(ClassLoader.java:247)
    o.adf.model.connection.url.HttpURLConnection.<init>(HttpURLConnection.java:146)
    o.adf.model.connection.url.URLProviderFactory.newInstance(URLProviderFactory.java:117)
    o.ji.connection.url.dialogs.ConnectionPanel.testConnection(ConnectionPanel.java:551)
    o.ji.connection.url.dialogs.ConnectionController.actionPerformed(ConnectionController.java:174)
    jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    j.a.Component.processMouseEvent(Component.java:6297)
    jx.s.JComponent.processMouseEvent(JComponent.java:3275)
    j.a.Component.processEvent(Component.java:6062)
    j.a.Container.processEvent(Container.java:2039)
    j.a.Component.dispatchEventImpl(Component.java:4660)
    j.a.Container.dispatchEventImpl(Container.java:2097)
    j.a.Component.dispatchEvent(Component.java:4488)
    j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    j.a.LightweightDispatcher.processMouseEvent(Container.java:4236)
    j.a.LightweightDispatcher.dispatchEvent(Container.java:4166)
    j.a.Container.dispatchEventImpl(Container.java:2083)
    j.a.Window.dispatchEventImpl(Window.java:2489)
    j.a.Component.dispatchEvent(Component.java:4488)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:674)
    j.a.EventQueue.access$400(EventQueue.java:81)
    j.a.EventQueue$2.run(EventQueue.java:633)
    j.a.EventQueue$2.run(EventQueue.java:631)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    j.a.EventQueue$3.run(EventQueue.java:647)
    j.a.EventQueue$3.run(EventQueue.java:645)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:644)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    j.a.Dialog$1.run(Dialog.java:1052)
    j.a.Dialog$3.run(Dialog.java:1104)
    j.security.AccessController.doPrivileged(Native Method)
    j.a.Dialog.show(Dialog.java:1102)
    j.a.Component.show(Component.java:1591)
    j.a.Component.setVisible(Component.java:1543)
    j.a.Window.setVisible(Window.java:843)
    j.a.Dialog.setVisible(Dialog.java:987)
    o.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)
    o.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)
    o.ji.connection.url.dialogs.URLConnectionDialog.runDialog(URLConnectionDialog.java:117)
    o.ji.connection.url.dialogs.URLConnectionDialog.invoke(URLConnectionDialog.java:85)
    o.adfdtinternal.model.adapter.webservice.wizard.rest.RestConnectionPanel.launchURLConnectionDialog(RestConnectionPanel.java:427)
    o.adfdtinternal.model.adapter.webservice.wizard.rest.RestConnectionPanel.access$000(RestConnectionPanel.java:93)
    o.adfdtinternal.model.adapter.webservice.wizard.rest.RestConnectionPanel$1.actionPerformed(RestConnectionPanel.java:201)
    jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    j.a.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    j.a.Component.processMouseEvent(Component.java:6297)
    jx.s.JComponent.processMouseEvent(JComponent.java:3275)
    j.a.Component.processEvent(Component.java:6062)
    j.a.Container.processEvent(Container.java:2039)
    j.a.Component.dispatchEventImpl(Component.java:4660)
    j.a.Container.dispatchEventImpl(Container.java:2097)
    j.a.Component.dispatchEvent(Component.java:4488)
    j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    j.a.LightweightDispatcher.processMouseEvent(Container.java:4236)
    j.a.LightweightDispatcher.dispatchEvent(Container.java:4166)
    j.a.Container.dispatchEventImpl(Container.java:2083)
    j.a.Window.dispatchEventImpl(Window.java:2489)
    j.a.Component.dispatchEvent(Component.java:4488)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:674)
    j.a.EventQueue.access$400(EventQueue.java:81)
    j.a.EventQueue$2.run(EventQueue.java:633)
    j.a.EventQueue$2.run(EventQueue.java:631)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    j.a.EventQueue$3.run(EventQueue.java:647)
    j.a.EventQueue$3.run(EventQueue.java:645)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:644)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    j.a.Dialog$1.run(Dialog.java:1052)
    j.a.Dialog$3.run(Dialog.java:1104)
    j.security.AccessController.doPrivileged(Native Method)
    j.a.Dialog.show(Dialog.java:1102)
    j.a.Component.show(Component.java:1591)
    j.a.Component.setVisible(Component.java:1543)
    j.a.Window.setVisible(Window.java:843)
    j.a.Dialog.setVisible(Dialog.java:987)
    o.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:382)
    o.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:298)
    o.adfdtinternal.model.adapter.webservice.wizard.WSDCWizard.runWizard(WSDCWizard.java:553)
    o.adfdtinternal.model.adapter.webservice.JdxPKWSAddin.invokeDCWizard(JdxPKWSAddin.java:155)
    o.adfdtinternal.model.adapter.webservice.JdxPKWSAddin.invoke(JdxPKWSAddin.java:91)
    o.i.wizard.WizardManager.invokeWizard(WizardManager.java:446)
    o.i.wizard.WizardManager$1.run(WizardManager.java:530)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:672)
    j.a.EventQueue.access$400(EventQueue.java:81)
    j.a.EventQueue$2.run(EventQueue.java:633)
    j.a.EventQueue$2.run(EventQueue.java:631)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:642)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)

  • NULL values and Data Control based on Web Service

    One of my ADF control is based on a Data Control created through a web service. Every thing is working fine except the way ADF control is handling the null values return by the web service based data control.
    For example for null columns the web service is sending the following:
    <ns0:beginDate xsi:nil="1"/>
    or
    <ns0:sourceCode xsi:nil="1"/>
    But the corresponding column in my ADF data control is trying to initialize itself using the value ‘[{nil=1}]’. It fails with the following error.
    2006-04-20 13:31:37.510 WARNING JBO-25009: Cannot create an object of type:java.util.Date with value:[{nil=1}]
    I will appreciate if someone could help me resolve this issue.
    Thanks,

    I tried again, but it seems that I'm unable to reproduce this in a test project which uses another data controls but is still as similar as possible to the original project in which I've encountered this behaviour.
    However, using a data control based on the same web service as in the original project, [{nil=1}] appears again instead of emtpy values.
    Is it possible that there is a significant difference in the generated wrapper classes? The underlying PL/SQL is the same (in strucutre) and the corresponding elements in the response XML of the web service are the same in the two cases, always like <ns0:someResponeValue xsi:nil="1"/>, so I don't know how it is possible that I can't reproduce this behaviour.
    A short description of the projects:
    Services/Model:
    I created a PL/SQL funcition in a package that returns a user type object. This return parameter consists of a non-empty string and a null value string. On top of this I created a PL/SQL web service and a data control for that.
    View/Controller:
    A JSF JSP page which has a read-only form showing the return values of the web service.
    Regards,
    Patrik

  • Exception handling with fault message type not working

    Hi,
    I have a sync proxy to proxy scenario and I have created a fault MT and specified in the outbound and Inbound service interface...
    *In Inbound proxy I have the following code--*......
    RAISE EXCEPTION TYPE z_cx_test_fault
    EXPORTING
    standard = l_standard_data.
    In the sender side abap code which calls the outbound proxy I have the follwing code -
    CATCH cx_ai_system_fault INTO lo_cx_ai_system_fault.
    txt = lo_cx_ai_system_fault->get_text( ).
    WRITE txt.
    CATCH z_cx_test_fault INTO lo_cx_test_fault.
    txt = lo_cx_standard_message_fault->get_text( ).
    WRITE txt.
    CATCH cx_ai_application_fault INTO lo_cx_ai_application_fault.
    txt = lo_cx_ai_application_fault->get_text( ).
    WRITE txt.
    when i test the inbound proxy separately I get the custom fault message properly...
    however when i run the proxy to proxy sync scenario and the custom exceptionz_cx_test_fault  is raised inside the receiver proxy .......control goes to CATCH cx_ai_application_fault    and not CATCH  z_cx_test_fault .
    I understand that cx_ai_application_fault is the super class of all the exception class but why does control go to its exception handling when a custom exception is raised...
    Edited by: hema T on Feb 26, 2012 1:16 PM
    Edited by: hema T on Feb 26, 2012 1:17 PM

    Hi
    I tried changing the sequence also but it did not work...
    I can see an appropriate response coming from the receiver in SXMB_MONI of PI...this response has the "fault response "
    "fault detail" data that I want.....however when the control goes to the sender why does it go to CATCH CX_AI_APPLICATION_FAULT and not not my CATCH z_cx_test_fault .
    My observation - If I change the scenario to SOAP to Proxy sync..then the sender SOAP client gets the appropriate custom fault message back.
    Edited by: hema T on Feb 27, 2012 1:17 PM
    Edited by: hema T on Feb 27, 2012 1:17 PM

  • Authentication in ADF App using BAM Data Control

    Hi
    I' having problems with an ADF application using Oracle BAM Data Control. Whe I run the project I've the following error:
    According to Oracle Fusion Middleware Error Messages Reference seems to be an issues with the authentication against the JMS Server and the rigth credentials.
    oracle.bam.common.messaging.api.MessageFrameworkException: BAM-00562: Authentication Failure
         at oracle.bam.common.messaging.api.MessageConsumerRegistryFactory.authenticate(MessageConsumerRegistryFactory.java:210)
         at oracle.bam.common.messaging.api.MessageConsumerRegistryFactory.getInstance(MessageConsumerRegistryFactory.java:171)
         at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.AbstractChangeListListener.registerAsMessageConsumer(AbstractChangeListListener.java:176)
         at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.AbstractChangeListListener.<init>(AbstractChangeListListener.java:88)
         at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.SimpleChangeListListener.<init>(SimpleChangeListListener.java:75)
         at oracle.tip.tools.ide.bam.dc.rt.fsm.action.MessagingAction.register(MessagingAction.java:62)
         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 oracle.tip.tools.ide.bam.dc.rt.fsm.StateMachine.internalHandle(StateMachine.java:213)
         at oracle.tip.tools.ide.bam.dc.rt.fsm.StateMachine.handle(StateMachine.java:151)
         at oracle.tip.tools.ide.bam.dc.rt.provider.BAMDataProvider.startEvents(BAMDataProvider.java:303)
         at oracle.tip.tools.ide.bam.dc.rt.BAMDataControl.startEvents(BAMDataControl.java:354)
         at oracle.adf.model.bean.DCBeanDataControl.startEvents(DCBeanDataControl.java:2603)
         at oracle.tip.tools.ide.bam.dc.dt.adapter.BAMAdapterDCService.startEvents(BAMAdapterDCService.java:211)
         at oracle.adf.model.binding.DCBindingContainer.startDCEvents(DCBindingContainer.java:3927)
         at oracle.adf.model.binding.DCBindingContainer.startDCEvents(DCBindingContainer.java:3920)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.startEvents(JUCtrlValueBinding.java:3732)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding.startEvents(FacesCtrlHierNodeBinding.java:141)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel._addActiveDataListener(FacesCtrlHierBinding.java:932)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.startActiveData(FacesCtrlHierBinding.java:824)
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager$ActiveComponentRecord.startModel(PageDataUpdateManager.java:976)
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager$ActiveComponentRecord.startComponent(PageDataUpdateManager.java:939)
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager._startActiveData(PageDataUpdateManager.java:483)
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager.startActiveData(PageDataUpdateManager.java:458)
         at oracle.adfinternal.view.faces.context.RichPhaseListener$StartStopADSContextCallback.invokeContextCallback(RichPhaseListener.java:890)
         at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1041)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1380)
         at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:555)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:168)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
         at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:461)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:444)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         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:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         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:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         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:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <StateMachine> <internalHandle> null
    java.lang.reflect.InvocationTargetException
         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 oracle.tip.tools.ide.bam.dc.rt.fsm.StateMachine.internalHandle(StateMachine.java:213)
         at oracle.tip.tools.ide.bam.dc.rt.fsm.StateMachine.handle(StateMachine.java:151)
         at oracle.tip.tools.ide.bam.dc.rt.provider.BAMDataProvider.startEvents(BAMDataProvider.java:303)
         at oracle.tip.tools.ide.bam.dc.rt.BAMDataControl.startEvents(BAMDataControl.java:354)
         at oracle.adf.model.bean.DCBeanDataControl.startEvents(DCBeanDataControl.java:2603)
         at oracle.tip.tools.ide.bam.dc.dt.adapter.BAMAdapterDCService.startEvents(BAMAdapterDCService.java:211)
         at oracle.adf.model.binding.DCBindingContainer.startDCEvents(DCBindingContainer.java:3927)
         at oracle.adf.model.binding.DCBindingContainer.startDCEvents(DCBindingContainer.java:3920)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.startEvents(JUCtrlValueBinding.java:3732)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding.startEvents(FacesCtrlHierNodeBinding.java:141)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel._addActiveDataListener(FacesCtrlHierBinding.java:932)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.startActiveData(FacesCtrlHierBinding.java:824)
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager$ActiveComponentRecord.startModel(PageDataUpdateManager.java:976)
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager$ActiveComponentRecord.startComponent(PageDataUpdateManager.java:939)
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager._startActiveData(PageDataUpdateManager.java:483)
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager.startActiveData(PageDataUpdateManager.java:458)
         at oracle.adfinternal.view.faces.context.RichPhaseListener$StartStopADSContextCallback.invokeContextCallback(RichPhaseListener.java:890)
         at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1041)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1380)
         at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:555)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
         at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:168)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
         at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:461)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:444)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         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:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         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:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         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:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.bam.common.messaging.api.MessageFrameworkException, msg=BAM-00562: Authentication Failure
         at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.AbstractChangeListListener.registerAsMessageConsumer(AbstractChangeListListener.java:186)
         at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.AbstractChangeListListener.<init>(AbstractChangeListListener.java:88)
         at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.SimpleChangeListListener.<init>(SimpleChangeListListener.java:75)
         at oracle.tip.tools.ide.bam.dc.rt.fsm.action.MessagingAction.register(MessagingAction.java:62)
         ... 76 more
    Caused by: oracle.bam.common.messaging.api.MessageFrameworkException: BAM-00562: Authentication Failure
         at oracle.bam.common.messaging.api.MessageConsumerRegistryFactory.authenticate(MessageConsumerRegistryFactory.java:210)
         at oracle.bam.common.messaging.api.MessageConsumerRegistryFactory.getInstance(MessageConsumerRegistryFactory.java:171)
         at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.AbstractChangeListListener.registerAsMessageConsumer(AbstractChangeListListener.java:176)
    Can someone please help to resolve that error
    Thanks a lot
    Damian
    Edited by: 907704 on Jan 12, 2012 8:14 AM

    Hi,
    Please check this link and cross check your configuration.
    http://fmwarchitects.blogspot.in/2013/03/configuring-oracle-bam-adapter.html
    and while creating BAM connection Jdeveloper provide right credentials.
    Regards.

  • ADF Faces: Exception Handler activity ain't reraised

    Hi there!
    I'm using a Studio Edition Version 11.1.1.3.0 (Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660).
    I've done this:
    1. created a bounded task flow flow1 and added to it:
    1.1 a vew activity view1 (the default activity) - shows an inputText field for a db column, for which there is a constraint;
    1.2 a method call activity method1 - calls commit;
    1.3 a view activity view2 - has an ouputText depicting an attribute's value for the same collection as that of inputText in view1;
    1.4 a view activity errorView (marked as an exception handler) - displays a localizedMessage from the currentViewPort;
    1.5 created for the view activities page fragments (with necessary fields and buttons).
    2. linked them as follows:
    2.1 view1 -*-> method1 -*-> view2;
    2.2 errorView -*-> view1.
    3. in the default unbounded task flow created a view activity main, a page file for it, and dropped onto the latter the flow1 as a region;
    4. launched the app (as the table contains some data, the view1 displays first row in a row set);
    5. entered into the view1 's field a non-violating value;
    6. pressed a button (which has just an action property set to move to the method1 ) - everything's fine, we get to the view2;
    6. rerun the app;
    7. entered incorrect value, pressed the button - flow goes, as expected, to the errorView, which informs us the exception's details (JBO-...);
    8. on the errorView page fragment pressed a button - we are now on the view1 page again;
    9. left the wrong (violating) value (or changed it to another incorrect value, doesn't matter) and pressed the button again;
    10. wow, we reached the view2, but, I guess, we hadn't to. Why so?
    One must note, that in clauses 7 and 9, after pressing the button, there apears a popup, which advises us about an ORA-... error, that is, in step 9 the ADF Faces does receive the exception, but why it doesn't reraise the errorView, that's the question.
    Though, when I change the method1 so, that it calls a bean's method, which always throws an IllegalArgumentException, then everything works as should to - we get to the infinite loop - view1 -> method1 -> errorView -> view1.
    Or, when I extract view2 from flow1, and instead of the former insert return activity with End Transaction set to commit, and then wrap (i.e call) flow1 from a newly created bounded task flow flow2, and in main 's page replace flow1 with flow2 region, the result is quite different. The aforesaid popup with ORA- error arises, until one enters a non-violating value. That is in this case everything is good, except, that control never flows into the errorView.
    And there is one more thing to note yet. When I've, namely method1, been calling a bean with the ever exception throwing method, the Integrated WLS's log was silent, but when the method1 was calling commit, then in the log we can see this twice:
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: ORA-02290: check constraint CHECK(THE_USER.THE_CONSTRAINT) violated
    java.sql.SQLIntegrityConstraintViolationException: ORA-02290: check constraint CHECK(THE_USER.THE_CONSTRAINT) violated
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3467)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8044)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6373)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3172)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2980)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2018)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2277)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1577)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1404)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1427)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2141)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:730)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
         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:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:168)
         at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:161)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:989)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:878)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:147)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         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:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         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.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)What I'm doing wrong? And how can I dismiss that popup, as it duplicates errorView and does not get messages from a custom message bundle?
    Thanks in advance for any comments.
    Yerzhan.

    Hi there!
    I'm using a Studio Edition Version 11.1.1.3.0 (Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660).
    I've done this:
    1. created a bounded task flow flow1 and added to it:
    1.1 a vew activity view1 (the default activity) - shows an inputText field for a db column, for which there is a constraint;
    1.2 a method call activity method1 - calls commit;
    1.3 a view activity view2 - has an ouputText depicting an attribute's value for the same collection as that of inputText in view1;
    1.4 a view activity errorView (marked as an exception handler) - displays a localizedMessage from the currentViewPort;
    1.5 created for the view activities page fragments (with necessary fields and buttons).
    2. linked them as follows:
    2.1 view1 -*-> method1 -*-> view2;
    2.2 errorView -*-> view1.
    3. in the default unbounded task flow created a view activity main, a page file for it, and dropped onto the latter the flow1 as a region;
    4. launched the app (as the table contains some data, the view1 displays first row in a row set);
    5. entered into the view1 's field a non-violating value;
    6. pressed a button (which has just an action property set to move to the method1 ) - everything's fine, we get to the view2;
    6. rerun the app;
    7. entered incorrect value, pressed the button - flow goes, as expected, to the errorView, which informs us the exception's details (JBO-...);
    8. on the errorView page fragment pressed a button - we are now on the view1 page again;
    9. left the wrong (violating) value (or changed it to another incorrect value, doesn't matter) and pressed the button again;
    10. wow, we reached the view2, but, I guess, we hadn't to. Why so?
    One must note, that in clauses 7 and 9, after pressing the button, there apears a popup, which advises us about an ORA-... error, that is, in step 9 the ADF Faces does receive the exception, but why it doesn't reraise the errorView, that's the question.
    Though, when I change the method1 so, that it calls a bean's method, which always throws an IllegalArgumentException, then everything works as should to - we get to the infinite loop - view1 -> method1 -> errorView -> view1.
    Or, when I extract view2 from flow1, and instead of the former insert return activity with End Transaction set to commit, and then wrap (i.e call) flow1 from a newly created bounded task flow flow2, and in main 's page replace flow1 with flow2 region, the result is quite different. The aforesaid popup with ORA- error arises, until one enters a non-violating value. That is in this case everything is good, except, that control never flows into the errorView.
    And there is one more thing to note yet. When I've, namely method1, been calling a bean with the ever exception throwing method, the Integrated WLS's log was silent, but when the method1 was calling commit, then in the log we can see this twice:
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: ORA-02290: check constraint CHECK(THE_USER.THE_CONSTRAINT) violated
    java.sql.SQLIntegrityConstraintViolationException: ORA-02290: check constraint CHECK(THE_USER.THE_CONSTRAINT) violated
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3467)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8044)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6373)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3172)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2980)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2018)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2277)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1577)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1404)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1427)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2141)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:730)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
         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:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:168)
         at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:161)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:989)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:878)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:147)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         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:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         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.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)What I'm doing wrong? And how can I dismiss that popup, as it duplicates errorView and does not get messages from a custom message bundle?
    Thanks in advance for any comments.
    Yerzhan.

  • Never implemented exception handling  in Stored Procedures

    I have lots of stand alone stored procedures callled from .NET 20 programs that follow the following pattern. They runn against Oracle 10.2 on Win2003. The only deviiation is a couple where I insert to temptables. I specify a parameter for messages but don't know the best way to implement for Oracle as well as any tips on ODP.NET/oracle interactions error handling.
    1. Is it recommended to implement exception handling in With Clauses?
    2. If there is an exception in one cursor's SQL, how do I still execute the second?
    3. Is it best in some circumstances to pass a null back to client and check for null in program?
    From .NET programs I have run into a couple of problems.
    4. TNS packet failure.
    Anyways any suggestions or experiences are welcome.
    CREATE OR REPLACE  PROCEDURE   GET_SALES_DATA
                      ,   p_businessdate      in   date                 
                      ,   p_message         out varchar2     
                      ,   p_rcSales             out sys_refcursor
                      ,   p_rInventory            out sys_refcursor
    ) is
    open p_rcSales for
    with somedata as (select ...)
    , someMoreData as (selct ...)
    -- Main select
    Select * from somedata sd inner join somemoredata  smd on smd.key   = sd.key;
    open p_rcInventory for
    with somedata as (select ...)
    , someMoreData as (selct ...)
    -- Main select
    Select * from somedata sd inner join somemoredata  smd on smd.key   = sd.key;
    -- CODE NOT IMPLEMENTED
    -- exception 
    -- when TOO_MANY_ROWS  then  select 'Error handling for future implementations' into p_message from dual ;
    -- when NO_DATA_FOUND  then  select 'Error handling for future implementations. No data'  into p_message from dual;
    -- when others         then  raise_application_error(-20011,'Unknown Exception in GET_SALES_DATA Function');
    -- WHEN invalid_business_date then  select 'Invalid: Business date is in the current work week.' into p_message from dual ;
    END GET_SALES_DATA;Pseudocode'ish because Module level variables and properties have not been defined here for brevity.
    Public Class WebPage1
    PAge_Load
       GetData
    End Class Data Access Layer
    Public Class DAL
    Public Sub GetOracleData()
                Dim conn As OracleConnection
                    Try
                        conn = New OracleConnection
                    Catch ex As Exception
                        Throw ex
                    End Try
                    Dim cmd As New OracleCommand
                    With cmd
                        conn.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("MyConnectionString").ToString
                        cmd.CommandText = DATABASE.GetSalesData
                        cmd.CommandType = CommandType.StoredProcedure
                        cmd.Connection = conn
                    End With
                    cmd.Connection = conn
                    Dim oparam As OracleParameter
                    oparam = cmd.Parameters.Add("p_businessdate", OracleDbType.Date)
                    oparam.Value = BusinessDate.ToString("dd-MMM-yy")
                    oparam = cmd.Parameters.Add("p_message", OracleDbType.Varchar2, ParameterDirection.Output)
                    oparam = cmd.Parameters.Add("p_rc_inven_csv", OracleDbType.RefCursor, ParameterDirection.Output)
                    oparam = cmd.Parameters.Add("p_rcSales", OracleDbType.RefCursor, ParameterDirection.Output)
                    oparam = cmd.Parameters.Add("p_rcInventory", OracleDbType.RefCursor, ParameterDirection.Output)
                    Dim Adapter As New OracleDataAdapter(cmd)
                    Try
                        Adapter.TableMappings.Add("Table", Sales)
                        Adapter.TableMappings.Add("Table1", Inventory)              
                        Adapter.Fill(dsOracleData)
                    Catch ex As OracleException
                        HandleError("Exception Retrieving Oracle Data", ex, MethodInfo.GetCurrentMethod.Name, True)
                     Finally
                        If conn.State = ConnectionState.Open Then
                            conn.Close()
                        End If
                    End Try
                    dbMessages = cmd.Parameters("p_message").ToString
                End If
                arrStatusMessages.Add("Retrieved Oracle Data Successfully")
            End Sub
           ' Original Implementation ; No longer used
            Public function GetOracleData
               Dim conn As New OracleConnection
                conn.ConnectionString = dbconn.Connectionstring
                 Dim cmd As New OracleCommand
                    With cmd
                        conn.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("MyConnectionString").ToString
                        cmd.CommandText = DATABASE.GetSalesData
                        cmd.CommandType = CommandType.StoredProcedure
                        cmd.Connection = conn
                    End With
                    cmd.Connection = conn
                    Dim oparam As OracleParameter
                    oparam = cmd.Parameters.Add("p_businessdate", OracleDbType.Date)
                    oparam.Value = BusinessDate.ToString("dd-MMM-yy")
                    oparam = cmd.Parameters.Add("p_message", OracleDbType.Varchar2, ParameterDirection.Output)
                                 oparam = cmd.Parameters.Add("p_rcSales", OracleDbType.RefCursor, ParameterDirection.Output)
                    oparam = cmd.Parameters.Add("p_rcInventory", OracleDbType.RefCursor, ParameterDirection.Output)
                    Dim Adapter As New OracleDataAdapter(cmd)
                    Try
                        Adapter.TableMappings.Add("Table", Sales)
                        Adapter.TableMappings.Add("Table1", Inventory)              
                        Adapter.Fill(dsOracleData)
                    dim dt as datatable = dsoracledata.tables("sales")
                    If IsDataNull(dt) Then
                         _errorType = DBErrorType.NullData
                    End If
                    If isDataEmpty(dt) Then
                         _errorType = DBErrorType.EmptyData
                    End If
                    _hasError = False
                Catch oraEx As OracleException
                      _ExceptionText = oraEx.Message.ToString
                    _errorType = DBErrorType.OracleException
    #If DEBUG Then
                    Throw oraEx
    #End If
                Catch zeroEx As DivideByZeroException
                    _ExceptionText = zeroEx.Message.ToString
                    _errorType = DBErrorType.DivideByZeroException
    #If DEBUG Then
                    Throw zeroEx
    #End If
                Catch oflowEx As OverflowException
                    _ExceptionText = oflowEx.Message.ToString
                    _errorType = DBErrorType.OverflowException
    #If DEBUG Then
                    Throw oflowEx
    #End If
                Catch argEx As InsufficientMemoryException
                    _ExceptionText = argEx.Message.ToString
                    _errorType = DBErrorType.InsufficientMemoryException
    #If DEBUG Then
                    Throw argEx
    #End If
                Catch nomemEx As OutOfMemoryException
                    _ExceptionText = nomemEx.Message.ToString
                    _errorType = DBErrorType.OutOfMemoryException
    #If DEBUG Then
                    Throw nomemEx
    #End If
                Catch Ex As Exception
                    _ExceptionText = Ex.Message.ToString
                    _errorType = DBErrorType.GenericException
    #If DEBUG Then
                    Throw Ex
    #End If
                Finally
                    If conn.State = ConnectionState.Open Then
                        conn.Close()
                    End If
                End Try
    End class Error Class
    Public Class Errors
           Public Sub ExitClass()
                Return
            End Sub
            ' 'blnWriteNow says when Error is critical and no further processing needs to be done by class, then write to event logs or text files and call exit class
            '  to return control back to webpage. This is my first time trying this way.
            Public Sub HandleError(ByVal friendlyMsg As String, ByVal objEx As Exception, ByVal methodInfo As String, Optional ByVal blnWriteNow As Boolean = False)
                If Not blnWriteNow Then Exit Sub
                Dim strMessages As String
                strMessages = arrStatusMessages
                'Send error email
                If  blnSendEmails Then
                     SendMail("[email protected],  strMessages. applicationname, " has thrown  error. ")
                End If
              'Throw error for   debugging
                If  blnThrowErrors Then  
                            Throw New Exception(strMessages & vbCrLf & objEx.Message)
                End If
               ' Write to event log and if not available (shared hosting environment), write to text log
                If blnWriteNow Then
                    If  blnWriteToEvtLog Then
                        If  blnCanWriteToEvtLog Then    'Program has write permission to log
                             WriteToEventLog(strMessages, _appname, EventLogEntryType.Error,  appname)
                        Else
                            If Not Directory.Exists( appPath & "\log") Then
                                Try
                                    Directory.CreateDirectory( appPath & "\log")
                                Catch ex As Exception
                                    arrStatusMessages.Add("Cant't write to event log or create a directory")
                                End Try
                            End If
                        End If
                    End If
                End If          
            End Sub
    End Class

    I have lots of stand alone stored procedures callled from .NET 20 programs that follow the following pattern. They runn against Oracle 10.2 on Win2003. The only deviiation is a couple where I insert to temptables. I specify a parameter for messages but don't know the best way to implement for Oracle as well as any tips on ODP.NET/oracle interactions error handling.
    1. Is it recommended to implement exception handling in With Clauses?
    2. If there is an exception in one cursor's SQL, how do I still execute the second?
    3. Is it best in some circumstances to pass a null back to client and check for null in program?
    From .NET programs I have run into a couple of problems.
    4. TNS packet failure.
    Anyways any suggestions or experiences are welcome.
    CREATE OR REPLACE  PROCEDURE   GET_SALES_DATA
                      ,   p_businessdate      in   date                 
                      ,   p_message         out varchar2     
                      ,   p_rcSales             out sys_refcursor
                      ,   p_rInventory            out sys_refcursor
    ) is
    open p_rcSales for
    with somedata as (select ...)
    , someMoreData as (selct ...)
    -- Main select
    Select * from somedata sd inner join somemoredata  smd on smd.key   = sd.key;
    open p_rcInventory for
    with somedata as (select ...)
    , someMoreData as (selct ...)
    -- Main select
    Select * from somedata sd inner join somemoredata  smd on smd.key   = sd.key;
    -- CODE NOT IMPLEMENTED
    -- exception 
    -- when TOO_MANY_ROWS  then  select 'Error handling for future implementations' into p_message from dual ;
    -- when NO_DATA_FOUND  then  select 'Error handling for future implementations. No data'  into p_message from dual;
    -- when others         then  raise_application_error(-20011,'Unknown Exception in GET_SALES_DATA Function');
    -- WHEN invalid_business_date then  select 'Invalid: Business date is in the current work week.' into p_message from dual ;
    END GET_SALES_DATA;Pseudocode'ish because Module level variables and properties have not been defined here for brevity.
    Public Class WebPage1
    PAge_Load
       GetData
    End Class Data Access Layer
    Public Class DAL
    Public Sub GetOracleData()
                Dim conn As OracleConnection
                    Try
                        conn = New OracleConnection
                    Catch ex As Exception
                        Throw ex
                    End Try
                    Dim cmd As New OracleCommand
                    With cmd
                        conn.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("MyConnectionString").ToString
                        cmd.CommandText = DATABASE.GetSalesData
                        cmd.CommandType = CommandType.StoredProcedure
                        cmd.Connection = conn
                    End With
                    cmd.Connection = conn
                    Dim oparam As OracleParameter
                    oparam = cmd.Parameters.Add("p_businessdate", OracleDbType.Date)
                    oparam.Value = BusinessDate.ToString("dd-MMM-yy")
                    oparam = cmd.Parameters.Add("p_message", OracleDbType.Varchar2, ParameterDirection.Output)
                    oparam = cmd.Parameters.Add("p_rc_inven_csv", OracleDbType.RefCursor, ParameterDirection.Output)
                    oparam = cmd.Parameters.Add("p_rcSales", OracleDbType.RefCursor, ParameterDirection.Output)
                    oparam = cmd.Parameters.Add("p_rcInventory", OracleDbType.RefCursor, ParameterDirection.Output)
                    Dim Adapter As New OracleDataAdapter(cmd)
                    Try
                        Adapter.TableMappings.Add("Table", Sales)
                        Adapter.TableMappings.Add("Table1", Inventory)              
                        Adapter.Fill(dsOracleData)
                    Catch ex As OracleException
                        HandleError("Exception Retrieving Oracle Data", ex, MethodInfo.GetCurrentMethod.Name, True)
                     Finally
                        If conn.State = ConnectionState.Open Then
                            conn.Close()
                        End If
                    End Try
                    dbMessages = cmd.Parameters("p_message").ToString
                End If
                arrStatusMessages.Add("Retrieved Oracle Data Successfully")
            End Sub
           ' Original Implementation ; No longer used
            Public function GetOracleData
               Dim conn As New OracleConnection
                conn.ConnectionString = dbconn.Connectionstring
                 Dim cmd As New OracleCommand
                    With cmd
                        conn.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("MyConnectionString").ToString
                        cmd.CommandText = DATABASE.GetSalesData
                        cmd.CommandType = CommandType.StoredProcedure
                        cmd.Connection = conn
                    End With
                    cmd.Connection = conn
                    Dim oparam As OracleParameter
                    oparam = cmd.Parameters.Add("p_businessdate", OracleDbType.Date)
                    oparam.Value = BusinessDate.ToString("dd-MMM-yy")
                    oparam = cmd.Parameters.Add("p_message", OracleDbType.Varchar2, ParameterDirection.Output)
                                 oparam = cmd.Parameters.Add("p_rcSales", OracleDbType.RefCursor, ParameterDirection.Output)
                    oparam = cmd.Parameters.Add("p_rcInventory", OracleDbType.RefCursor, ParameterDirection.Output)
                    Dim Adapter As New OracleDataAdapter(cmd)
                    Try
                        Adapter.TableMappings.Add("Table", Sales)
                        Adapter.TableMappings.Add("Table1", Inventory)              
                        Adapter.Fill(dsOracleData)
                    dim dt as datatable = dsoracledata.tables("sales")
                    If IsDataNull(dt) Then
                         _errorType = DBErrorType.NullData
                    End If
                    If isDataEmpty(dt) Then
                         _errorType = DBErrorType.EmptyData
                    End If
                    _hasError = False
                Catch oraEx As OracleException
                      _ExceptionText = oraEx.Message.ToString
                    _errorType = DBErrorType.OracleException
    #If DEBUG Then
                    Throw oraEx
    #End If
                Catch zeroEx As DivideByZeroException
                    _ExceptionText = zeroEx.Message.ToString
                    _errorType = DBErrorType.DivideByZeroException
    #If DEBUG Then
                    Throw zeroEx
    #End If
                Catch oflowEx As OverflowException
                    _ExceptionText = oflowEx.Message.ToString
                    _errorType = DBErrorType.OverflowException
    #If DEBUG Then
                    Throw oflowEx
    #End If
                Catch argEx As InsufficientMemoryException
                    _ExceptionText = argEx.Message.ToString
                    _errorType = DBErrorType.InsufficientMemoryException
    #If DEBUG Then
                    Throw argEx
    #End If
                Catch nomemEx As OutOfMemoryException
                    _ExceptionText = nomemEx.Message.ToString
                    _errorType = DBErrorType.OutOfMemoryException
    #If DEBUG Then
                    Throw nomemEx
    #End If
                Catch Ex As Exception
                    _ExceptionText = Ex.Message.ToString
                    _errorType = DBErrorType.GenericException
    #If DEBUG Then
                    Throw Ex
    #End If
                Finally
                    If conn.State = ConnectionState.Open Then
                        conn.Close()
                    End If
                End Try
    End class Error Class
    Public Class Errors
           Public Sub ExitClass()
                Return
            End Sub
            ' 'blnWriteNow says when Error is critical and no further processing needs to be done by class, then write to event logs or text files and call exit class
            '  to return control back to webpage. This is my first time trying this way.
            Public Sub HandleError(ByVal friendlyMsg As String, ByVal objEx As Exception, ByVal methodInfo As String, Optional ByVal blnWriteNow As Boolean = False)
                If Not blnWriteNow Then Exit Sub
                Dim strMessages As String
                strMessages = arrStatusMessages
                'Send error email
                If  blnSendEmails Then
                     SendMail("[email protected],  strMessages. applicationname, " has thrown  error. ")
                End If
              'Throw error for   debugging
                If  blnThrowErrors Then  
                            Throw New Exception(strMessages & vbCrLf & objEx.Message)
                End If
               ' Write to event log and if not available (shared hosting environment), write to text log
                If blnWriteNow Then
                    If  blnWriteToEvtLog Then
                        If  blnCanWriteToEvtLog Then    'Program has write permission to log
                             WriteToEventLog(strMessages, _appname, EventLogEntryType.Error,  appname)
                        Else
                            If Not Directory.Exists( appPath & "\log") Then
                                Try
                                    Directory.CreateDirectory( appPath & "\log")
                                Catch ex As Exception
                                    arrStatusMessages.Add("Cant't write to event log or create a directory")
                                End Try
                            End If
                        End If
                    End If
                End If          
            End Sub
    End Class

Maybe you are looking for