Using GenericPortlet sublcass .. cannot get any log messages to come out.

Hi all ..
I'm having a lot of problems getting any exceptions or log messages dumped from my portlet to help me debug.
I'm currently using subclass of javax.portlet.GenericPortlet and not a sublcass of com.sun.portal.providers.jsp.JSPProvider. Does that matter? Anyone know if there are issues that I might be running into here?
More details ..
I've tried making nice PortletException wrappers around all sorts of other exceptions .. and even using the API call:
GenericPortlet.getPortletContext().log(<msg>,<throwable> )
I've tweaked every debug/log/show exception config setting I can find .. including setting logger.log.level=ALL in:
/etc/opt/SUNWps/portlet/PDConfig.properties
It'll mostly fail with nada .. zilch .. zero. No hint or reason why. Occasionally I'll get something useful and I'll see an exception I made .. but the other 95% of the time I get no hint.
I've a script that searches for any file touched in /opt/SUNW*, /var/opt/SUNW* and /etc/opt/SUNW*. I regularly get the following files touched:
/var/opt/SUNWam/debug/portletcontainer.log
/var/opt/SUNWam/debug/<myportlet>.log
/var/opt/SUNWam/debug/desktop.debug
Can anyone tell me where I should expect to see PortletExceptions logged? How do I turn that feature on .. just in case I've missed the config I need to change? Has anyone had any luck using the PortletContext.log(<msg>,<throwable) API calls? Is there some config that controls where that goes? (I would've assumed it all goes in the <myportlet>.log file .. but not for me.)
Many thanks for your time ..
Curtis.
p.s. Below is an example of some of the messages I do see.
One instance I get "ERROR: Content not available" .. I get a series of
rather unhelpful internal exceptions that (for example) complain the portlet threw an exception of some sort. If only the root cause had been printed out it would be possible to nail exactly what's going on in my code that's the issue. Unfortunately this style of "black box" debugging is taking me 10 times (literally .. honestly!) longer than it should. I have to comment out stuff and slowly add it back in again .. if only I could've seen the exception.
(NOTE: I modifed PrefPortlet.java example .. still called the same at the minute :-) )
From log file /var/opt/SUNWam/debug/desktop.debug ..
06/09/2004 09:25:08:066 PM PDT: Thread[Thread-76,5,main]
ERROR: ProviderCaller.run(): exception thrown from PrefPortlet
com.sun.portal.providers.ProviderException: PortletWindowProvider.getContent():container exc
eptioncom.sun.portal.container.ContainerException: PortletContainer.getMarkup():getting cont
ent com.sun.portal.container.ContentException: PortletContainer.getMarkup(): Cannot get cont
ent
at com.sun.portal.providers.portletwindow.PortletWindowProvider.getContent(PortletWi
ndowProvider.java:284)
at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.
java:158)
com.sun.portal.container.ContainerException: PortletContainer.getMarkup():getting content co
m.sun.portal.container.ContentException: PortletContainer.getMarkup(): Cannot get content
at com.sun.portal.container.portlet.impl.PortletContainer.getMarkup(PortletContainer
.java:201)
[snip]
(not much help really)
From the file /var/opt/SUNWam/debug/<myportlet>.log (my specific portlet log) ..
2004/06/09 21:25:08.058 PDT | Curtis First Port | SEVERE | Thread-76 | Portle
tAppEngineServlet.HandleError()() - Error: null | LifecycleManagerImpl.getPortlet(),
can not get portlet.
x -----------------------------------------------------------------------------
X javax.portlet.PortletException: LifecycleManagerImpl.getPortlet(), can not get por
tlet.
X at com.sun.portal.portletappengine.impl.LifecycleManagerImpl.getPortlet(Life
cycleManagerImpl.java:163)
X at com.sun.portal.portletappengine.PortletAppEngineServlet.service(PortletAp
pEngineServlet.java:187)
X at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[snip]
(still not much help)
Note .. i sometimes get useful exceptions dumped to that last file .. but
it's rare .. I just can't seem to spot the pattern when they will and won't
get printed.
From file /var/opt/SUNWam/debug/portletcontainer.log
2004/06/09 21:25:07.414 PDT | null | INFO | Thread-76 | Portle
tContainer.invokePAE(): invoking:
app name /<myportlet>
portlet name PrefPortlet
action RENDER | -
2004/06/09 21:25:08.063 PDT | null | SEVERE | Thread-76 | Portle
tContainer:executeAction(): Exception thrown from render() of <myportlet>|PrefPortlet
|PrefPortlet | -
[snip]
(the least helpful of all!!)
When I simply comment out the new code I added, recompile, and view the portlet again .. it works fine. If I could only see the root cause exception!!

Ok .. weirder and weirder ...
I left this for a while .. and then went back to my xterms where I was working .. and one of them I saw this:
# Jun 9 21:55:14 troy server1 appservd[7440]: [ID 702911 daemon.alert] SEVERE ( 7440): hefalump - Problem setting up PAL array!
Jun 9 21:55:14 troy java.io.FileNotFoundException: http://pie1.some.thing.com/portal/arraylist.xml
Jun 9 21:55:14 troy at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:789)
Jun 9 21:55:14 troy at java.net.URL.openStream(URL.java:913)
Jun 9 21:55:14 troy at com.tarantella.portal.bell.test.WebtopHostFinder.<init>(WebtopHostFinder.java:42)
Jun 9 21:55:14 troy at com.some.portal.test.PrefPortlet.init(PrefPortlet.java:72)
Jun 9 21:55:14 troy at com.sun.portal.portletappengine.impl.LifecycleManagerImpl.createPortlets(LifecycleManagerImpl.java:329)
Jun 9 21:55:14 troy at com.sun.portal.portletappengine.impl.LifecycleManagerContextListenerImpl.contextInitialized(LifecycleManagerContextListenerImpl.java:13)
Jun 9 21:55:14 troy at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3255)
Jun 9 21:55:14 troy at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2525
Jun 9 21:55:14 troy at com.sun.portal.portletappengine.impl.LifecycleManagerImpl.init(LifecycleManagerImpl.java:109)
That is exactly the information I'm looking for!!!
I've no idea how it got there .. I think the appservd process just dumped it there .. after I saw this I grep'ed the entire set of files in /opt/SUNW* /var/opt/SUNW* /etc/opt/SUNW* for "hefalump" (my unique 'log' key) and it's not in any log file.
Anyone know what's going on?
Curtis.

Similar Messages

  • Trying to connect a Belkin brand audio cable from my MacBook Pro to a Sony flatscreen TV. Cannot get any sound from the laptop out of the TV. What am I doing wrong?

    I'm trying to connect a Belkin brand stereo audio cable from my MacBook Pro to a Sony flatscreen TV (Apple "genius" handed me the cable to purchase.)  I have tried all the ports in the back of the Sony, and tried the volume on both the cable and TV remotes. I cannot get sound out of the Sony from my MacBook Pro laptop. What am I doing wrong???

    Downloaded your operating manual.  It appears that you need to connect the HDMI to HDMI 1 and the audio to the input socket just to the right of the VGA socket (i.e., between the VGA and the RF input connection).  The picture on page13 seems to be the clearest I could find:
    Although it's not exactly clear I think they are talking about a standard 3.5 mm (1/8") stereo jack for the audio inpu as opposed to the more common RCA jacks used in the row just above that VGA input socket.
    I haven't checked the manual as yet whether you need to set anything special with the controls other than input select.
    Note, if that truly is a 3.5 mm stereo jack cables are very common.  In your case it would just be a cable with a 3.5 mm jack on each end.
    Update:
    You will have to experiment with this but I think you will need to try pusing the input button to select either HDMI1 or PC (or Component?).  The manual is not clear on this (page 31).  Sometimes it just comes down to pushing buttons.

  • After up dating iphone3 cannot get any sound on receiving calls or messages

    After updating my iphone3 cannot get any sound on receiving calls or text does anybody no how to rectify this problam ?

    I have been having this issue as well and have been looking online for possible solutions to the issue of the iPhone not receiving phone calls or text messages.   The solution for me was solved when I turned off the LTE service, forcing the device to use the 4G network.  Apparently, my location was just far enough from the LTE tower that calls to the phone were not going through, regardless of the signal strenght showing on the device.  The LTE iPhone will always look for the closest LTE town which may be further than the closest non-LTE tower and as a a result, the signal drops.  I would suggest contacting your service provider and have them locate the closest LTE tower to your location to determine if this is the cause of your issue.

  • I am trying to connect my Apple TV to an older Panasonic projection TV using an HDMI to a DVI cable to the Digital IN. I cannot get any sound. Can you help?

    I am trying to connect my Apple TV to an older Panasonic projection TV using an HDMI to a DVI cable to the Digital IN. I cannot get any sound. Can you help?

    DVI interface does't allow audio. Is there optical IN from your Panasonic TV? By then you can connect your ATV to Panasonic using optical together. It will work.

  • I have downloaded Fiefox 7 for my laptop running Windows 7. Now i cannot get any sound from web content. ( I can still get sound using Google Chrome !!) Any ideas ?

    I downloaded Firefox 7 and now cannot get any sound when playing web content. I have reinstalled but still no joy. When I use Google Chrome for the same useage, it plays sound fine.
    Any ideas ??

    1. System Preferences > Other/ Flash Player > Advanced >  Delete  All
         Press the "Delete All" button
      2. Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
       Download it first.
       The next step is important.
       Click Safari in the menubar and select “Quit Safari”.
        Follow the prompts and install it.
        Restart computer. Relaunch Safari.
    2.  Allow  Plug-ins  
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.

  • HT5731 My iPad says I cannot download any more because I am out of memory.  I purchased space in cloud and still get same message.  I do not know how to delete shows to open space.  Can you help?  Thanks.

    My iPad says I cannot download any more because I am out of memory.  I purchased space in cloud and still get same message.  I do not know how to delete shows to open space.  Can you help?  Thanks.

    Your iPad is physically out of storage space. Purchasing space in iCloud dosen't magically give your actual iPad more physical  storage space.
    You need to delete content off of your iPad.
    https://discussions.apple.com/thread/5122738?start=0&tstart=0
    http://m.youtube.com/watch?v=mZdBQoE37FA&desktop_uri=%2Fwatch%3Fv%3DmZdBQoE37FA

  • I am using a MacBook Pro with 16GB ram.  PS opens but I cannot get any files to open.  I need some h

    I am using a MacBook Pro with 16GB ram.  PS CS6 opens but I cannot get any files to open.  I need some help please

    What files? How do you try to open them? From where? What else can yyou tell us? You need to provide more info.
    Mylenium

  • HT4528 MY IMESSAGE WILL NOT ACTIVATE, THEREFORE I CANNOT GET ANY MESSAGES AT ALL

    Just got my iphone5 replaced and the imessage will not activate..and i cannot recieve any text messages!! please help!!

    iOS- Troubleshooting Messages
    iOS- Deactivating iMessage

  • Cannot get any sound forn iPod nano 3 on my JBL iPod dock, it used to work fine, but I haven't used it for awhile.  Appreciate any suggestions for non technical grandmother. Thanks

    I have an older iPod nano.  I have a JBL iPod dock that worked fine with this over a year ago, but I tried it recently and I cannot get any sound to come out.  I am a technically challenged grandmother so this stuff does not come naturally.  Help would be appreciated.  Thank you

    Wow, thank you so much!
    Turns out there was a topic on the forums there with guy having same problem and they linked him to topics that saved his iPod too.
    Thank you so much, it works now

  • Can't on to iTunes Store. But don't get any error messages

    Since upgrading to 10.6 I can't log on to the store. I don't get any error messages, it just doesn't log on.
    Password etc is right and I can access the internet Ok just not iTunes.
    I have tried downgrading to a previous version of iTunes but then can't use iTunes as I get a message saying the "library is not accesible because it was created
    in a newer version of iTunes"
    I have tried disabling Firewalls and AVG Antivirus without any success.
    Anyone got any ideas?

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 &amp; above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • My kids have given me a second hand ipad 1st gen MC497B/A ipad  3G 64GB- GBR and I cannot get ANY apps even free ones as says I must have V6 Surely this device is not so old I can't get any apps Plea tell a novice what to do as no free Apple support!

    I am the proud owner of a first gen ipad given to me for Easter by my kids and we cannot get any apps even freebies as says I must have V6 but now idea how to upgrade my ipad! i would be very grateful for simple instructions as to how to get apps ASAP And I have no idea what operating system I have
    Many thanks a VERYNovice ipadder

    The iPad 1 can be updated to iOS 5.1.1. You can see what level you are running in Settings > General > About > Version.
    If you are not at iOS 5.1.1 and if you are have iOS 4 (or earlier) there is no Software Update in Settings. That feature was first added in iOS 5.
    To update you will have to connect your iPad to iTunes on a computer (preferably the one you sync with and backup to).
    See here: http://support.apple.com/kb/HT4972
    If you are on level 5 but not at 5.1.1 you can update to 5.1.1 using Settings > General > Software Update.
    There are still many Apps which will run on iOS 5. Also, some developers have older levels still available for the iPad 1.

  • I recently upgraded my 4s to a 5s. the verizon store took my old phone for a trade in. i cannot get any of my pictures to download from icloud. my photo stream folder only has a small percentage of the photos in it. any help would be greatly appreciated.

    i recently upgraded my 4s to a 5s. the verizon store took my old phone for a trade in. i cannot get any of my pictures to download from icloud. my photo stream folder only has a small percentage of the photos in it. any help would be greatly appreciated.

    That's possible if he didn't connect to a WiFi hotspot after taking them.  I don't think the "Personal" Photo Stream uploads over Cellular, unless they changed it since the last time I used it.
    If that's the case, then the photos likely didn't upload to Photo Stream and are stuck on the phone.
    And you're not going to be able to get them back, either.

  • I am trying to upload photos to a library but only some of them uploaded.  I even tried to rename and upload to a different library but I can't get it to work.  I don't get any error message it just doesn't respond.

    I have been uploading pictures for a while but ran into a problem last night that I cannot resolve.  I was uploading files starting in Revel and selecting the "add photos to album".  I selected 144 photos but only 88 uploaded.  I checked and confirmed that the missing ones are not in the library.  I tried to re-save and reinitiate the upload on Revel.  I then tried to save the files with a new name and upload to a new library.  Neither option worked.  I do not get any error message.  it just fails to upload. 
    Is there a system problem?  Any suggestions?

    Hi there,
    Are you uploading from the Revel Mac app or a browser from adoberevel.com or from a mobile device?
    Thanks!
    Glenyse

  • Cannot get any audio on spdif coa

    Im using vista 64 with a regular xfi xtreme gamer. I installed the newest drivers but cannot get any audio to output on the FlexiJack. The digital i/o setting is greyed out on the creative console. Ive tried everything i can and cannot not get any sound. I am using the Z5500. The receiver is across the room and my only choice is to use a long coax cable i have.

    You enabled it in your windows speaker configuration under "playback devices" ?
    You probably have to set it to default by rightclicking on it and activating it and set it to default!?
    http://www.homeys-bunker.de/spdif.jpg

  • I have a bose docking station with a 30 pin connector and purchased the Ipod 5G and also have a Ipad4th Gen and have tried several connectors but cannot get any audio.  Any suggestions?

    I have a Ipod Touch 5G and a Ipad 4th Gen with a Bose sound dock with a 30 pin adapter.  I have tried several connectors but cannot get any audio on the sound dock.  Do you have any suggestions?

    Have you tried this adapter from the Apple on-line store http://store.apple.com/us/product/MD823ZM/A/lightning-to-30-pin-adapter?fnode=3c  They also have one that uses a cord to connect the dock to lightning that is $10 more.

Maybe you are looking for