Nullpointer when violating a ADF BC Domain

Hi,
I've created a simple ADF BC Domain that checks if a field has the value 'Y' or 'N'. After that I set the attribute type of my entity object to that domain.
I run JHeadstart JAG and run the generated application (using Struts and UIX). If I violate the domain for that field I get a nullpointer. See the stacktrace below. If I test my EntityObject in the AppModule Tester it runs fine.
Though it is not urgent for our case I thought may be someone likes to look into it.
Grtz,
Paskal
java.lang.NullPointerException at oracle.jheadstart.controller.struts.action.JhsAction.handleFailedCommit(JhsAction.java:519) at oracle.jheadstart.controller.struts.action.JhsAction.commitChanges(JhsAction.java:496) at oracle.jheadstart.controller.struts.action.JhsAction.saveChanges(JhsAction.java:413) at oracle.jheadstart.controller.struts.action.SaveDataObject.execute(SaveDataObject.java:467) at oracle.jheadstart.controller.struts.action.JhsAction.execute(JhsAction.java:249) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at oracle.jheadstart.controller.struts.JhsRequestProcessor.processActionPerform(JhsRequestProcessor.java:351) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at oracle.jheadstart.controller.struts.JhsRequestProcessor.process(JhsRequestProcessor.java:635) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at oracle.jheadstart.controller.struts.JhsActionServlet.process(JhsActionServlet.java:139) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16) at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:174) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)

all,
just found the solution to the problem (in our case, anyway)!
The problem is not related to the ADF BC Domain. In our case, the entity object was based on a table which had a trigger defined on it (which on its turn updates several columns in the same row). The actual exception we got was "JBO-25014 - Another user has changed the row". In the commit process, the exception is noticed and the JhsAction.handleFailedCommit(...) gets fired. In this method "sessionData.getAttribute(JhsConstants.SAVED_DATA_OBJECT_SETS)" return null ... hence ... a NullPointerException. After we set the "Refresh After Insert/Update" properties on the Entity Object, we did not receive the exception anymore.
Short story short : JhsConstants.SAVED_DATA_OBJECT_SETS is not always set on handleFailedCommit.

Similar Messages

  • Extension-Name: adf.oracle.domain.webapp, exact-match: false

    hi i have install weblogic 12c in window 7 64 bit now am doing deployment following this link http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/03-DeployApps/deployapps.htm ,my development is done in jdeveloper 11.1.1.6.0.when i what to activate my install debployment in y weblogic am geting this error
    Message icon - Error An error occurred during activation of changes, please see the log for details.
    Message icon - Error Error: Unresolved Webapp Library references for "WebAppModule(UAMOrganisation:UAMApplication_ViewController_webapp1.war)", defined in weblogic.xml [Extension-Name: adf.oracle.domain.webapp, exact-match: false], [Extension-Name: jstl, Specification-Version: 1.2, exact-match: false], [Extension-Name: jsf, Specification-Version: 1.2, exact-match: false]

    but when am installing am geting this error
    Starting Oracle Universal Installer...
    Checking if CPU speed is above 300 MHz .   Actual 3192 MHz     Passed
    Checking swap space: must be greater than 512 MB .   Actual 413554 MB     Passed
    Checking monitor: must be configured to display at least 256 colors Higher than
    256 .    Actual 4294967296     Passed
    Preparing to launch Oracle Universal Installer from C:\Users\10017134\AppData\L
    ocal\Temp\OraInstall2013-01-25_03-44-46PM. Please wait ...
    Please specify JRE/JDK location ( Ex. /home/jre ), <location>/bin/java should e
    xist :C:\Oracle\Middleware\jdk160_24
    when i put my jdk directory it disappear
    MY PATH IS
    PATH=C:\OracleClient32;C:\app\10017134\product\11.2.0\dbhome_1\BIN;C:\DevSuiteHome\jdk\jre\bin\classic;C:\DevSuiteHome\jdk\jre\bin;C:\DevSui
    teHome\jdk\jre\bin\client;C:\DevSuiteHome\jlib;C:\DevSuiteHome\bin;C:\DevSuiteHome\jre\1.4.2\bin\client;C:\DevSuiteHome\jre\1.4.2\bin;C:\Dev
    SuiteHome;C:\app\10017134\product\11.2.0\dbhome_1;C:\Windows\System32;C:\Windows;C:\DevSuiteHome\BIN;C:\app\10017134\product\11.2.0\dbhome_1
    \NETWORK\ADMIN;C:\Oracle\Middleware\jdk160_24
    C:\runtime\Disk1\install\win64>java -version
    java version "1.4.2_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
    why am i geting jdk error i do have java installed,where must i specify this  Please specify JRE/JDK location ( Ex. /home/jre ), <location>/bin/java shouldEdited by: adf009 on 2013/01/25 4:49 PM
    Edited by: adf009 on 2013/01/25 4:53 PM

  • The publishing settings page does not open when I click on the domain name and the iWeb application will not stay on the dock.

    Hello,
    I have been trying to help a friend who is having problems publishing her website. (She has done so previously using Mobile me)
    There seem to be a couple of things wrong with the application,
    1     if I drag the application icon onto the dock, it won't stay there
    2     I wanted to change where her site is published to (she has bought a domain name and has a hosting service now) but when I click on the domain name I do not get the "site publishing settings page" so we can't enter the new details.  All that comes up is the main page of her website.
    I would suggest uninstalling and re-installing Iweb, to see if that clears the problem, but as Iweb came pre-installed with her Imac, I am not sure that we can do this.
    Any ideas please?
    she's using and imac 24 in (approx 4 years old) and running osx 10.5.8

    NO - not correct.  Even if you are still using iWeb 08, you can still publish to another host and not MobileMe.  You do this by selecting the option 'Publish to a local folder" and this will publish the site to your desktop and you can then use an ftp programme such as Cyberduck to upload your site to your host.
    MobileMe will not be here after the end of June, so you will have to find alternative hosting.  They are not taking any new subscriptions.
    On new Macs, iLife 11 is pre-installed, but only iPhoto, iMovie and GarageBand are included, not iWeb and iDVD. The Apple Online store is not selling the boxed version of iLife 11 any longer, so if you want to upgrade to iLife, then you'll have to look online at Amazon.com or Amazon.co.uk for a boxed set of either iLife 09 or iLife 11.  Both contains iWeb 09, which is what you would want.

  • JDeveloper 11.1.1.3 has Bug "adrci.exe" when I Run ADF Applications

    Hi all
    my Environment is
    1- Windows XP Service pack 3
    2- Database 10g r10.2.0.4.0
    2- Jdev 11.1.1.3
    when I Run any ADF Applications, I got this error "adrci.exe"
    any solution for this error or this bugs from JDev 11.1.1.3?
    mugmug

    Hi Shay ;
    I did not get this error "adrci.exe" inside the WLS log file and
    when I Run ADF Application for the first time only I get this error "adrci.exe" in popup window;
    like the figure in this link:
    http://adfbugs.blogspot.com/2009/11/issues-after-migrating-our-application.html
    but when I run it again (next time) I do not get the error (only for first time)
    thanks

  • Validation messages in JSF (when not using ADF faces)

    I've spent some time with JDeveloper 11 and would like to use it on an upcoming project. I have to target IE 6, so I won't be able to take advantage of ADF Faces. Instead I'd like to use the ADF Business Components with a standard JSF interface so it can be used by people still running IE 6.
    I've created a Business Component from a database table and can bind a JSF HTML Creation Form by dragging the appropriate view from the AppModule in the Data Controls pane. However, when I attempt to submit the page without all the fields being valid I get the following validation error message:
    j_id__ctru2:j_id__ctru6: Validation Error: Value is required. j_id__ctru2:j_id__ctru6: Validation Error: Value is required.
    I've tried making this more descriptive, but editing the error message in the Validation Rules section of the Business Component has no effect. What's the best way to convey a meaningful validation message to the user when not using ADF Faces?
    Also - I'm still very new to JDeveloper. Since I won't be able to rely on my users having Internet Explorer 7, would you recommend I stay with JDeveloper 10? The examples and documentation I've seen so far for JDeveloper 11 appear heavily biased towards using ADF Faces so I'm starting to wonder how much support is there for using plain old JSF.
    Thanks for your time!

    Hi,
    if you are completely new to this then I suggest to use JDeveloper 10.1.3 and ADF Faces in there. Its good to use with IE6 as well. Currently we do have more tutorials available for this release than for 11, which for this reason is a better choice for someone new to this
    Frank

  • ADF Server Domain Requirement on Oracle WLS 11g

    Hi All....
    I am new to ADF
    I would like to know if it is necessary to create an ADF server domain, or perform ADF specific configuration on WLS in order to deploy and run ADF web Apps on Oracle Weblogic Server 11g?
    Or can ADF web apps be deployed directly to the Admin Server without extra server configuration?
    I am migrating an ADF web app from WLS10g to WLS11g.
    Web App runs perfect on 10g...Though 10g contains an ADF server domain.
    I have deployed the Web app directly onto the Admin Server on 11g...(NO ADF Server Domain)
    The Web App runs, but does not display some components (buttons, tables, etc) on some pages. I am not seeing any errors or exceptions either.
    I think this may have to do with the Environment I am running the App in.
    Can you please guide/advise me as to what needs to be configured and setup on WLS for ADF to be deployed and run successfully on 11g?
    Thanking you in advance.

    Hi dvohra21
    I am not sure if ADF Runtime is installed....
    I can however see the following libs installed and Active on the WLS console
    adf.oracle.businesseditor(1.0,11.1.1.2.0)
    adf.oracle.domain(1.0,11.1.1.2.0)
    adf.oracle.domain.webapp(1.0,11.1.1.2.0)
    oracle.adf.dconfigbeans(1.0,11.1.1.2.0)
    oracle.adf.desktopintegration(1.0,11.1.1.2.0)
    oracle.adf.desktopintegration.model(1.0,11.1.1.2.0)
    oracle.adf.management(1.0,11.1.1.2.0)
    Is this correct or am I still missing anything?
    Your assistance is much appreciated

  • Adf.oracle.domain error

    Hello.
    Some days ago i find one problem with deploying adf applications on Weblogic via http://<IP>:<PORT>/console:
    extension-name adf.oracle.domain, exact-match false.
    This Weblogic have 2 servers Admin and Main. This problem happens only after deploying to Main server. I find some information about it and shared ADF libraries from one tirget(Admin) to both targets(Admin, Main). I helped me.
    But one other Server with weblogic (10.3.1) has not got any libraries. The Deployment panel in web console is empty. There are no applications and it gives me same error: extension-name adf.oracle.domain, exact-match false.
    How i can add ADF libraries to the weblogic?
    P.S.: Configurtion wizard has only 1 parameter in Extesions: Basic Weblogic Server Domain.
    How i can add more extension libraries?

    use JDeveloper 11.1.1.3.0 and applications will be deployed to WeblogicServer v 10.3.1.0.You need to use the correct version: JDev 11.1.1.3 needs WLS 10.3.3
    http://docs.oracle.com/cd/E12839_01/web.1111/b31974/deployment_topics.htm#CHDHGGHH

  • DNS is incredibly slow on Lion 10.7.4 when connected to a .local domain

    Im running Lion 10.7.4 and am connected to a .local domain.    I've googled the problem and cant really work out if there is a fix or not.
    I am also running VMWare Fusion on the same machine with Windows 7.  neither Lion or Windows 7 are joined to the domain. The windows 7 VM browses the internet perfectly but lion is painfully slow.
    My IP's are DHCP assigned and the search domain is xxxx.local
    The VM is using bridged not NAT which is why the VM is perfming perfectly.
    I know its something to do with the .local but cant change the TLD here so need a fix. 
    PLEASE HELPPPP   

    Im using Chrome and it happens in Safari and Firefox too.  To be honest its not specifically web browsing.  DNS is just ridiculously slow when connected to a .local domain.

  • When will new ADF UIX demo be released?

    Are there any one can tell me when the new ADF UIX demo based on uix 2.2 be released?
    I want to know if we can get databind uix tree component (or other ui components) from ADF data action control which return dataobject and something else.
    Thanks a lot.

    Hi Daniel,
    Are there any one can tell me when the new ADF UIX
    demo based on uix 2.2 be released?I'm not sure when any sample applications will be released, but there is an ADF UIX tutorial available here:
    http://otn.oracle.com/products/jdev/collateral/tutorials/9050/adfuix_tut.html
    I want to know if we can get databind uix tree
    component (or other ui components) from ADF data
    action control which return dataobject and something
    else.I'm not sure about the tree component - I'll try to find out whether that is/will be supported. Once your data controls are available in the Data Control Palette, you can bind them to components in your UIX page by:
    1. Selecting the data control that you want to bind.
    2. Selecting a component type from the "Drop As" choice.
    3. Dragging the data control onto the UIX page.
    This process is illustrated in the tutorial above.
    Andy

  • WHEN - VALIDATE IN ADF.

    hi jdev experts,
    am using jdev 11.1.1.5.0 - adfbc - oracle db10g
    and also i worked in Oracle forms 10g.
    there is some thing like when-validate-item.
    eg: in for oracle forms 10g
    take 2 fields (emp_id,emp_decription) here emp_id as lov.
    in when validate item , i will wrote.
    if emp_id is present return emp_id or else employee not found.
    here my question is:
    in form 10g having when validate. so adf may have like this options.
    so any one route it to that direction.
    hey and one more. and i known about lov,cascading lov,and its dependent bla bla in adf. so i need not know that links.
    again my question simple.
    oracle forms *10g when - validate* equivalent in adf.?
    why am asking i lost that docs and example link and example blogs.. so only asking.
    edit in late: anyone direct me(by blogs,eg,links,videos) how to use when validate in adf good in manner.

    thanks frank.
    i completed project and some many complicated viewlinks with that table.
    so only asking without any viewlink it's possible ah?

  • Unable to start OC4J with warning on 'adf.oracle.domain'

    Hi,
    I am getting this kind of error. Any advice? Thank you.
    WARNING: Application.setConfig Application: default is in failed state as initialization failedjava.lang.InstantiationException: Shared library "adf.oracle.domain" could not be found.
    Nov 20, 2011 4:24:14 PM com.evermind.server.Application setConfig
    WARNING: Application: default is in failed state as initialization failedjava.lang.InstantiationException: Shared library "adf.oracle.domain" could not be found.
    11/11/20 16:24:14 Error initializing server: Shared library "adf.oracle.domain" could not be found.
    Edited by: Samantha on Nov 20, 2011 4:30 PM

    This one should go to Sun.
    Try OC4J with the VM installed with JDeveloper. Also, you might want to try 1.3.1_02 (just to see if that works on your machine)
    Rob

  • Is it possible to set up ADFS without domain admin rights in Windows 2012 R2?

    I've set up Windows 2012 R2 on my development box and want to enable the ADFS feature to test claims based authN. In ADFS 2.0, you could opt to install standalone and local admin privileges would be enough to install ADFS and authenticate against the domain
    AD.
    However, with the new ADFS, after installing the feature it asks to enter the credentials for an account that is a domain admin. Is it still possible to configure ADFS without domain admin privileges?

    Hi,
    According to my research, if you want to set up AD FS in Windows server 2012 R2, each computer
    that functions as a federation server must be joined to an Active Directory domain.
    Besides, AD FS requires a certificate for SSL server authentication on each federation server in your federation server farm. Furthermore, you need a membership in
    Administrators on the local computer to install the AD FS role service.
    For more detailed information, please refer to the links below:
    How to deploy AD FS in Windows Server 2012 R2
    http://technet.microsoft.com/en-us/library/dn303423.aspx
    Best regards,
    Susie

  • IE11 doesn't accept format of domainname\username when authentication through ADFS

    I am using IE11 , when I log on to Office365 through ADFS , the login page only accepts userprincipalname format . It doesn't accept domain\username format , if use domain\username , password will prompt again and again .
    However , the issue is not happening on Firefox or Chrome on same computer , and also , the issue is not happening on a different computer which has same IE version .
    could anyone please help me on this ? Thanks in advance

    Hi,
    Since this just happens on a single computer, I suggest to reset the Internet Explorer,by resetting Internet Explorer settings, you return it to the state it was in when it was first installed on your computer. This is useful for troubleshooting problems
    that might be caused by settings that were changed after installation,
    reset Internet Explorer in this way:
    a. Close all Internet Explorer and Explorer windows that are currently open.
    b. Start Internet Explorer.
    c. On the Tools menu, tap or click Internet options. If you don't see the Tools menu, press Alt.
    d. In the Internet Options window, tap or click the Advanced tab.
    e. Tap or click Reset
    Details can be found at:
    http://support.microsoft.com/kb/923737
    Regards
    Wade Liu
    TechNet Community Support

  • Return 504 Gateway TimeOut when access exchange service by domain/user and password

    hi,
    here is the scenario: a user of our app is in ntdev domain, and his exchange server located at apj.cloudmail.microsoft.com. our backend api is deployed at the Azure servers at US West.
    our api get 504 Gateway Timeout when calling the
    FindFolders API of exchangeService. does anyone know how to fix this issue? the following is the core code:
    var
    service = newExchangeService(ExchangeVersion.Exchange2010);
    service.Credentials =
    newNetworkCredential(username,
    password, domain);
    service.AutodiscoverUrl(emailAddress, RedirectionUrlValidationCallback);
    service.FindFolders(
    WellKnownFolderName.Root,
    newFolderView(1));

    That doesn't sound like its an EWS issue more an issue with the Network path your trying to traverse to the Exchange Server. My suggestion is that you test EWS using the EWSeditor
    https://ewseditor.codeplex.com/ (eg it sounds like you may have proxy server that expecting authentication etc.).
    Cheers
    Glen

  • Issue when SelectOneChoice is used with Domain data type in JDev 11.1.2.0.0

    Hi,
    I am facing one issue while working with SelectOneChoice along with Custom Domain data type. Sample app to simulate the issue is available at http://www.filejumbo.com/Download/6FDF6ECF2922BD24
    Issue Details.
    Base view object’s attribute is of type CustomString, for which another static VO’s attribute is attached as LOV. LOV attribute is of type String. Because of this data type mismatch between LOV VO attribute and Base VO attribute, while working in screen, initially we were facing Class cast exception.
    Cannot convert <<LOV Attr. Val.>> of type class java.lang.String to class model.domain.common.CustomString This is not only for this type of SelectOneChoice but also for InputText field whose underlying VO attribute is of type CustomString (i.e. any Custom Domain type)
    On raising this in Jdeveloper forum, I came to know that adding a default oracle converter against the UI Component will take care of converting to respective data type. After added the converter for InputText and SelectOneChoice components, this issue got resolved. This was our lesson while working in Jdeveloper version 11.1.1.3.0. Converter we used,
    <f:converter converterId="oracle.genericDomain"/> When we try the same scenario in Jdev Version 11.1.1.4.0, without having the oracle converter itself, SelectOneChoice started working fine!! (i.e. it is able to set the base attribute with LOV attribute’s value but with proper base attribute’s domain data type). Anyhow, converter is required for InputText.
    When we try the same scenario in Jdeveloper new version 11.1.2.0.0, it started giving class cast exception when we don’t have oracle converter for SelectOneChoice. But by adding it, though it didn’t give such class cast exception message, though a selection is made in SelectOneChoice, VO attribute has not been updated with the new value. Instead it is updated with null value (Checked the setter method of view row impl by having break point) . Because of this, after a selection is made, when we try to read the attribute value from VO on button click, VO attribute always returns null.
    We have also tried our own converters but there is no change in the behavior.
    The above misbehavior can be tested either by having SOP programmatically or by refreshing the SelectOneChoice by giving its id as Partial trigger to itself with autosubmit set to true, so that the selected value will be reset to null irrespective of the selection made.
    For convenience, Issue details with Sample application is shared. Shared link : http://www.filejumbo.com/Download/6FDF6ECF2922BD24
    Shared folder contains
    1. Sample App developed on Jdev 11.1.1.4.0 to ensure it didn’t give this error.
    2. Sample App developed on Jdev 11.1.2.0.0 to simulate this error.
    3. Error details in a document.
    Can anybody have a look at this and tell me why this misbehavior and is it a bug? If so, any workaround available to continue the development?
    Thanks in Advance.
    Raghu
    Edited by: Raguraman on Sep 10, 2011 10:31 AM

    Sorry for the late reply John and Frank. Ya i did. Thank you.
    One more detail:
    I tested the behavior in Jdeveloper 11.1.2.0.0. The recent surprise is Select One Choice is behaving perfectly when it used in Grid layout and fail to work when it is form layout. I am getting surprised why behavior of component varies based on the way it refers the binding.
    for form layout,
    value=#{bindings.
    for grid layout,
    value=#{row.bindings.
    The bug details (#/title) are Bug 12968871 - RUNTIME CONVERSION FAILURE WHEN USING CUSTOM DOMAIN OBJECT VALIDATION IN EO
    Edited by: Raguraman on Sep 12, 2011 8:23 PM
    Edited by: Raguraman on Sep 12, 2011 8:31 PM

Maybe you are looking for