BC4J: NullPointerException in Tomcat 4.1.24, but in OC4J it works fine

Dear reader,
I am having a weird exception in tomcat, which does not occur in the OC4J server (shipped with JDeveloper 9.0.3.1).
I have a web-application built with BC4J/struts (struts final release) and this works fine in the OC4J server. In Tomcat it works fine until a certain row does not contain data (it looks like that). The code in the jsp where it goes wrong is the following:
<jbo:RowsetIterate datasource="ConsultantModule.ConsultantGeneralView" changecurrentrow="true" userange="false">
<jbo:Row id="generalRow" datasource="ConsultantModule.ConsultantGeneralView" action="current">
<jbo:Row id="allocatiesRow" datasource="ConsultantModule.AllocatieRegistratiesView" action="current">
The last row it goes wrong if there is no data in it (in OC4J it just works fine there). I've also looked up the generated servlet in tomcat, and the following lines are responsible (for the last jbo:Row tag):
oracle.jbo.Row allocatiesRow = null;
jspxallocatiesRow_1 = allocatiesRow;
oracle.jbo.html.jsp.datatags.RowTag jspxth_jbo_Row_2 = new oracle.jbo.html.jsp.datatags.RowTag();
jspxth_jbo_Row_2.setPageContext(pageContext); jspxth_jbo_Row_2.setParent(_jspx_th_jbo_Row_1); jspxth_jbo_Row_2.setId("allocatiesRow"); jspxth_jbo_Row_2.setDatasource("ConsultantModule.AllocatieRegistratiesView");
jspxth_jbo_Row_2.setAction("current");
int jspxeval_jbo_Row_2 = jspxth_jbo_Row_2.doStartTag(); // This line throws a NullPointerException in Tomcat
Has anyone encountered a similar problem? And is it a bug in the tag libraries, or is it a bug in Tomcat? And most importantly can it be solved, so that I can still deploy to Tomcat.
Thanks a lot for your time!
Regards Martijn

[UPDATE]
I've done some more research to the problem of the NullPointerException in Tomcat.
It seems to happen only when a certain View does not contain rows (no data, it is empty).
Once the <jbo:Row id="anyID" ... > defines a row based on that view, this causes Tomcat to crash on the doStartTag, in the RowTag class. OC4J does not crash. The source tomcat crashes on in the RowTag class is:
   public int doStartTag() throws JspException
      initialize();
      handleAction();
      pageContext.setAttribute(id , row); // NULLPOINTER EXCEPTION
      return Tag.EVAL_BODY_INCLUDE;
   }Apparently row is null, which is the case as I know there is no row, which causes an exception (as per the setAttribute definition of pageContext).
It seems that OC4J does never execute this tag, or it should have crashed as well, wouldn't it? As in the handleAction() method, the action 'current' is defined as follows:
else
if (ACTION_ROW_CURRENT.equalsIgnoreCase(sAction))
         row = rs.getCurrentRow();
         if (row == null)
            row = rs.first();
            if (row == null)
               rs.executeQuery();
               row = rs.first();
      } The row must always be null, as the view doesn't contain any rows (not even after executeQuery()).
Can someone please have a look at this? I really need to know whether this is indeed a Tomcat bug, BC4J tag library bug or an OC4J bug (perhaps the code it generates is too kind to developers, and prevents errors, compared to normal specifications of jsp/servlets?).
Using the <jbo:RowSetIterate ..> tag in front of the <jbo:Row ..> tag (empty one) prevents the crash (also in Tomcat).
If you require the Tomcat and/or OC4J generated java-code to see what happens, please let me know. But it is rather large to paste it here.
Thanks a lot for your time!
Regards Martijn

Similar Messages

  • Problem with photoshop CS6 I have an imac intel 10.6.8...when I try to launch photoshop the icon bounces a few times then the adobe app manager tries to open then they both quit. they keep doing this over and over again but won't launch. worked fine for a

    problem with photoshop CS6 I have an imac intel 10.6.8...when I try to launch photoshop the icon bounces a few times then the adobe app manager tries to open then they both quit. they keep doing this over and over again but won't launch. worked fine for a few days after install.

    problem with photoshop CS6 I have an imac intel 10.6.8...when I try to launch photoshop the icon bounces a few times then the adobe app manager tries to open then they both quit. they keep doing this over and over again but won't launch. worked fine for a few days after install.

  • Just bought the new iPhone4S yesterday, and my back camera isn't working/loading up. But my front camera works fine. What's wrong? Can anyone help?

    Just bought the new iPhone4S yesterday, and my back camera isn't working/loading up. But my front camera works fine. What's wrong? Can anyone help?

    I had the same problem- go to Utilities, General, Use Side Switch To, and change it from Mute to Lock Rotation- this solved the problem for me.
    Good luck!

  • So I went to update my ipod on itunes....and a box appeared saying to make sure my network settings are correct and active, but the internet is working fine. Every device in my house has great internet connection. What do I do?

    So I went ot update my ipod on itunes....and a box appeared saying to make sure the internet setting are correct and active, but my internet is working fine. What do I do?

    Sounds like this:
    Update Server
    Try:
    - Powering off and then back on your router.
    - iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    - Change the DNS to either Google's or Open DNS servers
    Public DNS — Google Developers
    OpenDNS IP Addresses
    - Try on another computer/network
    - Wait if it is an Apple problem

  • IPad 2 suddenly showing "no service" but seems to be working fine otherwise. Any need for concern? Hard close didn't help. Changing locations with different wi if servers didn't help.

    iPad 2 suddenly showing "no service" but seems to be working fine otherwise. Any cause for concern? Time to get a new iPad?

    It is not picking up the wifi - though it says it is connected . All other devices are connecting fine to the same network

  • No animation or videos will play from Firefox, but other browsers still work fine. I have checked plugins and even updated to the Firefox 14 beta - no fix

    As of yesterday no animation or videos will play from Firefox, but other browsers still work fine. I have checked plugins and even updated to the Firefox 14 beta today, but this did not fix the problem.
    this problem started yesterday; before then there was no problem.
    I have updated everything I can find, and ran a system restore and disc clean.
    The problem still persists. What am I missing here?

    This happened to me too. This problem started suddenly with no changes made on my part. I had 11.2 Flash version with Firefox 13. I tried updating to the new Firefox, same problem, then updated to Flash 11.3. I even uninstalled RealPlayer.
    I read a solution on another forum and it was as easy as clearing my cache. Everything works fine now (even after reinstalling RealPlayer and allowing the download button function).

  • How much will it cost to replace the outer glass casing of an iphone 4 ?? but the touchsceen is working fine..!

    how much will it cost to replace the outer glass casing of an iphone 4 ?? but the touchsceen is working fine..!

    Out-of-Warranty Service
    If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
    iPhone model
    Out-of-Warranty Service
    iPhone 5
    $229
    iPhone 4S
    $199
    iPhone 4, iPhone 3GS,
    iPhone 3G, Original iPhone
    $149
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in U.S. dollars and are subject to local tax. "

  • IPad3 Speaker isn't working but the headphone is working fine.

    iPad3 Speaker isn't working but the headphone is working fine. I have resetted the all settings and restore to old backup also but it doesn't work.
    Let me know the steps to resolve the issue!

    Check System Preferences > Network > active connection > Proxies tab. Are there proxy servers enabled? If you aren't behind a proxy server (which you probably aren't), uncheck those boxes. (Firefox bypasses the OS's proxy settings, so it's not affected by those settings.)
    Hope this helps...

  • Why can't I make or receive calls but everything else is working fine.

    Why can't I make or receive calls but everything else is working fine?

    For that you have to talk to your carrier, what did they say?

  • 5th gen ipod not recognized by windows, but old ipod min works fine.

    my new ipod is not recognized by windows at all. my old ipod mini works fine. i even uninstalled everything and tried reinstalling the new ipod. after that didnt work, i plugged in my mini, and it reinstalled perfectly.
    I also plugged my new 5th gen into another computer with itunes and it recognized it perfectly.
    is there some sort of software conflict between the mini and other ipods? this is driving me insane.

    Try Resetting Your iPod while it's connected to the computer.
    Hold down the Menu and Select buttons until you see the Apple logo (or Menu & Play/Pause in older models).
    This will often get it recognized. It may take several attempts.
    Also See:
    Your Windows PC doesn't recognize iPod
    iPod does not appear in iTunes or on the desktop
    iPod appears in Windows Explorer but does not appear in iTunes

  • Just started MobileMe.  Struggled with the setup of iCal but eventually got everything working fine for about a day.  Then I started receiving an iCal error message stating that the URL was wrong.  Of course, sync no longer works.  What is correct URL?

    Just signed up for MobileMe.  Had a little difficulty setting up iCal but eventually got everything working.  Whether posting to iCal on my Mac Book or iPhone, sync seemed to be working fine for about a day.  Then suddenly when I opened iCal on my Mac Book, I would receive the following iCal error message:
    "The calendar https://cal.me.com/calendar/calendar/principals/users/1.1117025442/ was not found on the server. Make sure the URL is correct."  I know where it is located but because I did not enter the URL when I set up MobileMe/iCal, I don't know what the correct URL should be.

    Mike,
    Welcome to Apple Support Communites.
    Review; MobileMe: Setting up iCal for the new MobileMe Calendar, and post back with further questions.

  • New internet provider, Apple devices can't download updates/apps but all other devices work fine! help

    Hi there
    I have changed to a new internet provider, and they configured my router (which was working fine previously with my Apple devices)
    It is a D-Link router, and it is connected to the internet via PPPOE. (previous provider did not have this PPPOE configuration)
    The technician did the configuration and the Wifi works fine for all my devices including laptops, and friends who use Android.
    My Iphone, Ipad, and my friends' ones are the only things that seem not to work correctly.
    They can find the network on the router. It then connects for a short time, then either after a few mins of browsing on Safari, or any attempt to download an App or update an App, it fails.
    To summarise - All non-apple devices function fine and connect to router. Apple Iphones and Ipads find and connect to Wifi, but the internet works temporarily on browser, and any App update or download will fail. (Wi-fi remains connected)
    I am hoping it is a simple router configuration issue and the installation technician missed something. Has anyone ever come across this?
    what I have tried - Rebooting router, restarting Ipad, resetting network settings and other things, but I am almost certain it is a router configuration thing.
    Just hope someone can help, because I have called my internet provider and if they will charge for a call-out if they find it is not ''their fault'.
    Really really appreciate any answers to this one.

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at
    http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are drooping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Fix WiFi Issue for iOS 7
    http://ipadnerds.com/fix-wifi-issue-ios-7/
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    iPad: Issues connecting to Wi-Fi networks
    http://support.apple.com/kb/ts3304
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.hmL
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Signal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    10 Ways to Boost Your Wireless Signal
    http://www.pcmag.com/article2/0,2817,2372811,00.asp
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Some Wi-Fi losses may stem from a problematic interaction between Wi-Fi and cellular data connections. Numerous users have found that turning off Cellular Data in Settings gets their Wi-Fi working again.
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • No audio in 32-bit version of Flash Player, but  64-bit version works fine?

    Hello,
    I have a story similar to the one posted here: http://forums.adobe.com/message/4274606#4274606.  The main difference with my issue is that, since it began last summer, it has never worked.  I have no audio when running Flash-based content in any 32-bit browser (IE9, Firefox, Chrome, Safari).  I typically use YouTube as my testbed.  If I am simply using programs on my computer or if I use the 64-bit version of IE9 to access YouTube, I can hear audio without a problem.  Another site that gives me the same problem in 32-bit browsers, but works fine in the 64-bit version of IE9, is Amazon's Cloud Player for Web.  My son also plays games using Steam, many of which are Flash-based, and he sees significant performance issues when playing these.
    I've been all over the web and tried just about everything I've been able to find that sounds viable and legitimate.  I tried the solution identified as "the answer" to the issue in the link above but when I perform step 4, attempting to delete files and folders in C:\Windows\SysWOW64\Macromed\Flash, I am unable to delete the file "Flash10w.ocx".  I have tried several times in the past to delete this file and have never been able to.  I have Malware Bytes Pro with FileAssassin, which is supposed to delete unwanted files during a reboot and it isn't even able to kill this file.
    Does anyone have any ideas?  I am very suspicious of the "Flash10w.ocx" file and wonder if it is malware masquerading as a legitimate file.
    Thanks in advance,
    Tim

    Try a clean install of Flash Player, as follows:
    Download the current 64 bit uninstallerUninstaller for 64 bit Operating Systems
    Close all browser windows and run the uninstaller
    Restart Windows
    Delete all remaining files and folders located in the following directories.  (tip: copy and paste these paths into the path bar in an Explorer window)
    C:\Windows\system32\Macromed\Flash
    C:\Windows\SysWOW64\Macromed\Flash *
    %appdata%\Adobe\Flash Player
    %appdata%\Macromedia\Flash Player
    Verify that the file “FlashPlayerCPLApp.cpl” in C:\Window\system32\ for 32 bit systems or C:\Windows\SysWOW64\ if you are using a 64 bit system, has been deleted.
    Download
    the 64-bit installer for Internet Explorer
    the 64-bit installer for other browsers
    close all browser windows, then run the downloaded installers
    *) If you are still unable to delete that old OCX file, try Unlocker to remove that file.

  • LabVIEW 64-bit crashes upon startup but LabVIEW 32-bit works fine.

    Recently had to uninstall and reinstall both LabVIEW 32 and 64-bit versions because the network administrator is dumb.  Now 32-bit works fine but the 64-bit version immediately crashes upon opening.  Getting the following Labview Crash: Exception: Unknown (0xC06D007E) at EIP=0x000007FEFCE1940D.  We're running LabVIEW 2012 on Windows 7 64 bit system.

    Did you try to repair the 64-bit version? Was it working previously fine?
    The best solution is the one you find it by yourself

  • Problem HDMI connection to new Panasonic TC-60ps34 plasma; tv says no signal but computer detects tv; worked fine on 4 yr old phillips plasma; 2011 macbook pro running os10.6.8.

    New 60" Panasonic plasma says no signal won't display picture/sound from 2011 macbook pro running os10.6.8 connected via HDMI with moshi MDP to HDMI Adapter. Same setup on former 4-yr-old Phillips Plasma worked fine (but the tv died!)

    dohdoh1985 wrote:
    - I tried every Snow Leopard Release from 10.5.8 to 10.6.4
    Assuming this means the TV was not detected in any of these versions, this would not be a Snow Leopard installation or setup issue. I think that is what sig is trying to tell you.
    If this is true, you might want to post in the MacBook forums to see if anyone has a similar issue. It would be a good idea to post the model number of your Toshiba if you do so, as this might be relevant. Otherwise, it sounds like the problem is in the TV, since the MacBook works with other displays.
    Tip: to avoid unexpected formatting oddities that might make your posts hard to read, you can use the "Preview" tab before you post to see how your post will be formatted.
    Message was edited by: R C-R

Maybe you are looking for

  • IOS4 on 3GS - photos cannot import to PC

    Had my iphone 3GS upgrade to iOS4, problem is that photos taken after the upgrade are not able to import to PC when i connect my iphone to PC. Photos taken after the upgrade are stored in camera roll , old photos were syc. to camera roll too. But whe

  • Deleting rows from table based on value from other table

    Hello Members, I am struck to solve the issue said below using query. Would appreciate any suggestions... I have two tables having same structures. I want to delete the rows from TableA ( master table ) with the values from TableB ( subset of TableA)

  • How do I reinstall Voiceover Utility?

    i tried my leopard disc but it's not in optional install and it wants to partition another hunk of my hard drive to reinstall the whole os again. i can't find it as a separate utility and there's no links for it on this site or anywhere else. the onl

  • MacBook Pro Internal HDD Not Recognized

    My late 2012 MacBook Pro does not seem to want to recognize internal hard drives any longer. I have pulled the original startup disk and installed it in an external hard drive case and the mac will now boot from that. The brand new replacement hard d

  • Using Acrobat 8 Standard, XI reader got auto-loaded now can't combine files

    I was using Acrobat 8 Standard for a while (mainly to combine files).  Recently, my Microsoft updates automatically loaded Acrobat Reader XI and now I can't combine files anymore.  Is upgrading to Acrobat XI Standard a free download?  If not, do I ju