Images Browser Dialog gets OutOfMemoryError no stack trace available

Hello all.
I am writing a dialog to list the image by showing their thumbnail, which like the style of ACDSee or CoffeeCup Free Viewer Plus.
For this, I build 3 objects(thumbCanvas,thumbPanel,testingfrm). thumbCanvas - displays the thumbnail with aspect ratio as original image
thumbPanel - contains thumbCanvas and image file name
testingfrm - put the thumbPanel of the list of images row by row
When I run testingfrm by listing 11 images, the following error is given out.
java.lang.OutOfMemoryError
<<no stack trace available>>
I would be appreciated if anyone can suggest the methodology and hints to do that or state what is the problem of my coding and methodology. Thanks.
The code of 3 objects are as following:
//thumbCanvas.java
import java.awt.*;
import java.io.*;
public class thumbCanvas extends Canvas {
public int new_h=0, new_w=0;
private double thumb_h, thumb_w;
private double img_h, img_w;
private double ratio_h, ratio_w, ratio_thumb;
private String imgFileName;
private Image thumbImg;
/** Creates new thumbCanvas */
public thumbCanvas(int w, int h) {
thumb_h = h;
thumb_w = w;
public thumbCanvas(String f, int w, int h) {
imgFileName = f;
thumb_h = h;
thumb_w = w;
setFile(imgFileName);
public void setThumbSize(int w, int h) {
thumb_h = h;
thumb_w = w;
repaint();
public void setImage(Image i) {
MediaTracker tracker = new MediaTracker(this);
thumbImg = i;
tracker.addImage(thumbImg,1);
try {
tracker.waitForAll();
} catch (java.lang.InterruptedException e) {}
if (tracker.checkAll()) {
img_h = thumbImg.getHeight(this);
img_w = thumbImg.getWidth(this);
if (img_h > thumb_h || img_w > thumb_w) {
ratio_h = thumb_h/img_h;
ratio_w = thumb_w/img_w;
ratio_thumb = java.lang.Math.min(ratio_h,ratio_w);
} else {
ratio_thumb = 1;
new_h = (int)(img_h*ratio_thumb);
new_w = (int)(img_w*ratio_thumb);
setSize(new_w, new_h);
repaint();
public void setFile(String f) {
Image img = Toolkit.getDefaultToolkit().getImage(f);
setImage(img);
public void paint(Graphics gr) {
if ( thumbImg != null ) {
gr.drawImage(thumbImg, 0, 0, new_w, new_h, this);
//thumbPanel.java
import javax.swing.*;
import java.io.*;
public class thumbPanel extends JPanel {
/** Creates new form thumbPanel */
public thumbPanel(String f, int w, int h) {
int thumb_w, thumb_h, thumb_x;
int label_w, label_h;
initComponents();
thumb_w = (int)(w*0.9);
thumb_h = (int)(h*0.7);
label_w = (int)(w*0.9);
label_h = (int)(h*0.2);
tc = new thumbCanvas(f, thumb_w, thumb_h);
thumb_x = (int)((w - tc.new_w)/2);
tc.setLocation(thumb_x,5);
add(tc);
thumbLabel = new JLabel("hihi");
add(thumbLabel);
thumbLabel.setBounds(thumb_x,thumb_h+1,label_w,label_h);
setSize(w,h);
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {//GEN-BEGIN:initComponents
setLayout(null);
setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED));
}//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
// End of variables declaration//GEN-END:variables
private JLabel thumbLabel;
thumbCanvas tc;
//testingfrm.java
public class testingfrm extends javax.swing.JDialog {
/** Creates new form testingfrm */
public testingfrm(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
int i;
int row,col;
for (i=1;i<=11;i++) {
row = (int)((i-1)/3);
col = ((i-1)%3)+1;
tp = new thumbPanel("D:\\ACN\\MultiMed\\Oracle\\images\\ts\\add0000" + i + ".jpg",120,120);
tp.setLocation(col*120,row*120);
getContentPane().add(tp);
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {//GEN-BEGIN:initComponents
getContentPane().setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
closeDialog(evt);
pack();
}//GEN-END:initComponents
/** Closes the dialog */
private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
setVisible(false);
dispose();
System.exit(0);
}//GEN-LAST:event_closeDialog
* @param args the command line arguments
public static void main(String args[]) {
new testingfrm(new javax.swing.JFrame(), true).show();
// Variables declaration - do not modify//GEN-BEGIN:variables
// End of variables declaration//GEN-END:variables
thumbPanel tp;
Sorry for putting the code here. However, I hope it can be helpful for solving my problem. Thanks again.

Thanks. The problem is already solved.
It is because I load too much full size images. When I load the resized images generated by Image.getScaledInstance(int,int,int). It seems much better.
Thanks again your suggestion.

Similar Messages

  • What caused the "java.lang.OutOfMemoryError (no stack trace available)"?

    We just met another problem: after I modified the BDM file on TUXEDO and bdmconfig.xml
    file on WEBLOGIC (with no ACL or authentication setup on both side), when I booted
    up the WebLogic 6.1 server, the ULOG file of Tuxedo says that the connection has
    been set up, however, I got the "java.lang.OutOfMemoryError (no stack trace available)"
    on the WebLogic side. I tried to enlarge the Java heap size even to 1024m, but it
    has no use. If I delete the WTC setting then WebLogic works fine.
    Could somebody helps me on this? Because we have a very tight schedule on development,
    I do appreciate your quick response.
    Thanks!
    Bill

    Hi,
    I am getting same OutofMemoryError. I could not understand change in bdmconfig.xml
    removed the outofmemory error.
    what is bdmconfig.xml file and you specified port#?
    I could not able to see any port # in the config.xml...
    any help is appreciated.
    RajKumar
    "Bill Yuan" <[email protected]> wrote:
    >
    Bob,
    Another expert in our company told me that we should use a different
    PORT# (kind
    of DUMMY port) in the bdmconfig.xml file on WebLogic side, instead of
    the real WebLogic
    instance PORT#. We tried and the OutOfMemoryError disappeared, and the
    WTC connection
    works OK. We don't know why should we do this, maybe it is a bug or some
    hardware
    requirement.
    Anyway, thank you very much for your help and quick respondse!
    have a good day!
    Bill
    Bob Finan <[email protected]> wrote:
    Bill,
    Check the logs to see if the out of memory is the only execption orif
    it is the last exception. It could be that there is something happening
    earlier on that you are missing.
    There are also other JVM problems that can arise besides the heap
    size. The Hotspot VM had an issue where you needed to set a maximum
    permanent generation size( helps garbage collection tuning I think).
    (-XX:MaxPermSize=32m for jdk130,64m for jdk131). It comes into
    play when you are loading many classes.
    Bob Finan
    Bill Yuan wrote:
    Bob,
    Thanks! We didn't set MTYPE in both BDMCONFIG files in Tuxedo and
    WebLogic
    sides.
    From the WTC document and Tuxedo document, it says that if MTYPE is
    not
    specified,
    the default is to turn ENCODING/DECODING on. Do you see any other
    possibilities?
    Thanks!
    Bill
    Bob Finan <[email protected]> wrote:
    Bill,
    One possible reason is if MTYPE is set, in the DMCONFIG on the
    Tuxedo side, as part of your remote domain definitions of the WTC
    domain. This should not be set or set it to NULL. This problem occurs
    because encoding/decoding is always needed between java and non-java
    domains.
    Bob Finan
    Bill Yuan wrote:
    We just met another problem: after I modified the BDM file on TUXEDO
    and
    bdmconfig.xml
    file on WEBLOGIC (with no ACL or authentication setup on both side),
    when
    I booted
    up the WebLogic 6.1 server, the ULOG file of Tuxedo says that the
    connection
    has
    been set up, however, I got the "java.lang.OutOfMemoryError (no
    stack
    trace available)"
    on the WebLogic side. I tried to enlarge the Java heap size even
    to
    1024m,
    but it
    has no use. If I delete the WTC setting then WebLogic works fine.
    Could somebody helps me on this? Because we have a very tight scheduleon development,
    I do appreciate your quick response.
    Thanks!
    Bill

  • How to get the complete Stack-Trace ?

    Hi,
    I'm getting the following error on the screen.
    oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement " INSERT INTO OTA.OTA_QUESTIONS(QUESTION_ID,TEXT,ALLOW_HTML_FLAG,OBJECT_VERSION_NUMBER,BUSINESS_GROUP_ID,START_DATE_ACTIVE) VALUES (:1,:2,:3,:4,:5,:6)".
    I want to get the complete stack-trace. I turned on the screen log, but still not getting the error-stack. Can anyone lemme know, how to get the complete error-stack ? This error is raised from a seeded page.
    Thanks,
    Guna.

    This is a developer raised exception and not a standard expection(depends on a profile), that is why you cannot see the error stack.You have to put system.out.println, to debug.You get such errors when there is some fundamental mistake and not framework exception.
    As the error says look into the query and see all bind variables are setting properly.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • no stack trace available

    Hi,
    Does anyone out there recognize it and know what to do with it ?
    Pt maj 18 14:45:32 GMT+02:00 2001:<E> <ServletContextManager> Servlet
    request terminiated with RuntimeException
    java.lang.NullPointerException
    <<no stack trace available>>
    It happens every time we overload BEA WebLogic Server 5.1.0 + Service
    Pack 8 on HP-UX 11.0 with JDK 1.2.2.07. It means that as we start
    running 10 or more concurrent users (using web stres tool) the error
    shows up.
    Jacek Laskowski

    Possibly running out of file descriptors.
    Mike
    Jacek Laskowski <[email protected]> wrote:
    Hi,
    Does anyone out there recognize it and know what to do with it ?
    Pt maj 18 14:45:32 GMT+02:00 2001:<E> <ServletContextManager> Servlet
    request terminiated with RuntimeException
    java.lang.NullPointerException
    <<no stack trace available>>
    It happens every time we overload BEA WebLogic Server 5.1.0 + Service
    Pack 8 on HP-UX 11.0 with JDK 1.2.2.07. It means that as we start
    running 10 or more concurrent users (using web stres tool) the error
    shows up.
    Jacek Laskowski

  • WLST errors ( No stack trace available.)

    for s in svrs:
    name = s.getName()
    try:
    cd('/ServerRuntimes/' + name)
    except:
    pass
    Above loop works fine for all the running servers but if any of server is not running then while executing cd commnad within loop it thows error "No stack trace available."
    How can avoid (hide) these errors --> "No stack trace available"
    Current state of 'hp1_d3_a' : RUNNING
    No stack trace available.
    Current state of 'hp1_d7_a' : RUNNING
    Current state of 'hp1_d5_a' : RUNNING
    No stack trace available.
    Current state of 'hp1_d4_a' : RUNNING
    Current state of 'hp1_d9_a' : RUNNING
    No stack trace available.
    Current state of 'hp1_d6_a' : RUNNING
    Current state of 'hp1_d2_b' : RUNNING
    ++++++++++++++++++++++++++++++++++++
    Output should be
    Current state of 'hp1_d3_a' : RUNNING
    Current state of 'hp1_d7_a' : RUNNING
    Current state of 'hp1_d5_a' : RUNNING
    Current state of 'hp1_d4_a' : RUNNING
    Current state of 'hp1_d9_a' : RUNNING
    Current state of 'hp1_d6_a' : RUNNING
    Current state of 'hp1_d2_b' : RUNNING

    Can any body show me how and explain why ---------
    "oc4j of course is intended only for testing purpose ;)
    besides this: try using the \"-mx \" switch when starting the oc4j to increase the memory "
    Why is the oc4j of course intended only for testing purpose ?
    And how does the the "-mx " switch used?I can not find the switch.

  • Startflightrecording: any way to get methods deeper stack traces?(dept 64)

    I'm using jrcmd PID start_flightrecording in order to get some useful samplings, but it seems the stack traces are limited to depth 64 (i.e. in the Hot Methods's Predecessors view of JRockit Mission Control 4.1.0 I see only the last 64 frames) hence I miss important info about calling dynamics. I'm using jrockit-jdk1.6.0_37-R28.2.5-4.1.0. I've seen the [R27 version|http://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/jrdocs/refman/optionXX.html] supported a -XX:Tracedepth argument, but I don't see it on [R28 documentation|http://docs.oracle.com/cd/E15289_01/doc.40/e15062/toc.htm].
    Any idea?
    Kind regards
    Davide
    Edited by: user970531 on Apr 15, 2013 8:39 AM

    I'm using jrcmd PID start_flightrecording in order to get some useful samplings, but it seems the stack traces are limited to depth 64 (i.e. in the Hot Methods's Predecessors view of JRockit Mission Control 4.1.0 I see only the last 64 frames) hence I miss important info about calling dynamics. I'm using jrockit-jdk1.6.0_37-R28.2.5-4.1.0. I've seen the [R27 version|http://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/jrdocs/refman/optionXX.html] supported a -XX:Tracedepth argument, but I don't see it on [R28 documentation|http://docs.oracle.com/cd/E15289_01/doc.40/e15062/toc.htm].
    Any idea?
    Kind regards
    Davide
    Edited by: user970531 on Apr 15, 2013 8:39 AM

  • Get the entire stack trace of exception ?

    Hi!
    If the JVM prints this :
    Caused by: java.sql.BatchUpdateException: ORA-00001: unique constraint (FOO.BAR) violated
    at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:367)
    at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9040)
    at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:517)
    at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
    at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
    ... 73 more
    then how do I get the missing 73 lines ?

    Why would you want to? they are shorthand indicating that they were thrown from the same method: From the API Docs
    Note the presence of lines containing the characters "...".
    These lines indicate that the remainder of the stack trace for this exception matches the indicated number of frames from the
    bottom of the stack trace of the exception that was caused by this exception (the "enclosing" exception).
    This shorthand can greatly reduce the length of the output in the common case where a wrapped exception is thrown from same method
    as the "causative exception" is caught. ~Tim
    Message was edited by:
    SomeoneElse
    Message was edited by:
    SomeoneElse

  • Evaluation 1.1 - Stack trace in preferences - database

    Navigating in the preferences under database I get the following stack trace :
    ava.lang.ArrayIndexOutOfBoundsException: -1
         at java.util.Vector.elementAt(Vector.java:435)
         at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:280)
         at javax.swing.JTable.getCellEditor(JTable.java:3946)
         at oracle.dbtools.raptor.config.ExtensionPanel.onExit(Unknown Source)
         at oracle.ide.panels.MDDPanel.exitTraversable(MDDPanel.java:972)
         at oracle.ide.panels.MDDPanel.mav$exitTraversable(MDDPanel.java:104)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1267)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1211)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1205)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:515)
         at java.awt.Dialog.show(Dialog.java:536)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
         at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:202)
         at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:795)
         at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:580)
         at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:47)
         at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:265)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:571)
         at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:823)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Duplicate threads 2197 ArrayIndexOutOfBoundsException in Preferences
    and AIOOB when navigating to Database/Worksheet Parameters in preferences
    Kris already fixed this, you'll get it in the next evaluation release...
    K.

  • JDialog subclass for optionally showing stack trace from exceptions?

    hi,
    does anyone know of some code/jar that includes a widgit that displays an error message, and has a button for toggling an exception stack trace on or off?
    this would be like the segmentation fault dialog on windows except instead of the grungy register contents you'd get the grungy stack trace..
    just trying to avoid having write one myself.. :)
    thanks,
    asjf

    this sounds like one:
    http://www.yworks.com/products/yDoc/showcase/batik-1.5/org/apache/batik/util/gui/JErrorPane.html

  • Oracle 11g: stack trace misses first line

    Hi,
    I am working with an Oracle 11g database and trying to make a Java file work. I get an error when I try to run it (using SQL developer), and when I output the stack trace it is not complete.
    My stack trace is:
    java.lang.NoSuchMethodError
      at oracle.security.xmlsec.wss.WSSecurity.sign(WSSecurity.java:1169)
      at Discimus.generateSoapMessage(DISCIMUS:176)
    I have a library issue somewhere, but I can't figure out where it is if I can't get a full stack trace. The sign method is large, so I need to know where the error is thrown.
    Any ideas?
    Thanks in advance!

    Hi,
    I am working with an Oracle 11g database and trying to make a Java file work. I get an error when I try to run it (using SQL developer), and when I output the stack trace it is not complete.
    My stack trace is:
    java.lang.NoSuchMethodError
      at oracle.security.xmlsec.wss.WSSecurity.sign(WSSecurity.java:1169)
      at Discimus.generateSoapMessage(DISCIMUS:176)
    I have a library issue somewhere, but I can't figure out where it is if I can't get a full stack trace. The sign method is large, so I need to know where the error is thrown.
    Any ideas?
    Thanks in advance!

  • Exception Handling and Stack Traces in JDK 1.1.8

    Hi,
    I'm presently maintain and upgrading a Web-Objects 4.5 application that uses the JDK 1.18. There are two constantly recurring exceptions that keep getting thrown, exceptions for which there are no stack traces. These are exceptions thrown by methods that do not presently have throws or try/catch code associated with them.
    My questions are:
    1) Why are there no stack traces available? Is it because the exception handling code is not there, or could there be another reason?
    2) Will the inclusion of exception-handling code ALWAYS lead to stack traces and messages becoming available (if I put a e.printStackTrace() in my catch(Excetion e) clause), or will there be situations where it will not be available?
    3) What is the best way for me to handle these types of exceptions in order to gain the most information possible about their root causes and possible solutions?
    Thanks for your help.

    I have never seen a case where there was no stack trace.
    I have seen cases where the stack trace does not provide line numbers. I have also seen cases where it is less than useful as it terminates on a native call (which is to be expected.)
    However, if you don't call printStackTrace() then you don't get it. And if you catch an exception an throw a different one you also loose information. So you might want to check those possibilities.

  • Stack trace when using translation workflow in CQ5.5

    Hi!
    When we use the translation workflow in 5.5 we get an ugly stack trace in the log (even though everything seems to work fine). We also tried a clean installation with only Geometrixx site and got the same problem. Does anybody have a solution for this? We have installed CQ5.5 and the following packages:
    cq-5.5-security-update-npr-1951.zip
    cq-update-pkg-5.5-1-load5.zip
    crx-hotfixpack-2.2.0.70-2.3.24.zip
    crx-hotfixpack-2.2.0.71-2.3.24.zip
    Here is the stack trace:
    19.10.2012 10:00:44.510 *WARN* [127.0.0.1 [1350633642682] POST /libs/wcm/msm/content/commands/translate HTTP/1.1] com.adobe.granite.i18n.impl.PreferencesLocaleResolverService Error occur resolving locale. javax.jcr.RepositoryException: This session has been closed. See the chained exception for a trace of where the session was closed.
              at org.apache.jackrabbit.core.session.SessionState.checkAlive(SessionState.java:150)
              at org.apache.jackrabbit.core.SessionImpl.sanityCheck(SessionImpl.java:372)
              at org.apache.jackrabbit.core.SessionImpl.getNodeById(SessionImpl.java:533)
              at org.apache.jackrabbit.core.security.user.UserManagerImpl.internalGetAuthorizable(UserMana gerImpl.java:832)
              at org.apache.jackrabbit.core.security.user.UserManagerImpl.getAuthorizable(UserManagerImpl. java:415)
              at com.adobe.granite.i18n.impl.PreferencesLocaleResolverService.resolveLocale(PreferencesLoc aleResolverService.java:93)
              at org.apache.sling.i18n.impl.I18NFilter$I18NHttpServletRequest.getLocaleList(I18NFilter.jav a:202)
              at org.apache.sling.i18n.impl.I18NFilter$I18NHttpServletRequest.getLocale(I18NFilter.java:17 8)
              at javax.servlet.ServletRequestWrapper.getLocale(ServletRequestWrapper.java:318)
              at javax.servlet.ServletRequestWrapper.getLocale(ServletRequestWrapper.java:318)
              at javax.servlet.ServletRequestWrapper.getLocale(ServletRequestWrapper.java:318)
              at org.apache.sling.i18n.impl.I18NFilter$BaseI18NSlingHttpServletRequest.getResourceBundle(I 18NFilter.java:233)
              at org.apache.sling.i18n.impl.I18NFilter$BaseI18NSlingHttpServletRequest.getResourceBundle(I 18NFilter.java:226)
              at com.day.cq.i18n.I18n.getResourceBundle(I18n.java:89)
              at com.day.cq.i18n.I18n.getResourceBundle(I18n.java:79)
              at com.day.cq.i18n.I18n.getVar(I18n.java:182)
              at com.day.cq.wcm.core.impl.LinkCheckerSettingsProviderImpl$RewriteConfigs.localize(LinkChec kerSettingsProviderImpl.java:209)
              at com.day.cq.wcm.core.impl.LinkCheckerSettingsProviderImpl$RewriteConfigs.createSettings(Li nkCheckerSettingsProviderImpl.java:214)
              at com.day.cq.wcm.core.impl.LinkCheckerSettingsProviderImpl.createSettings(LinkCheckerSettin gsProviderImpl.java:89)
              at com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl.createSettings(LinkCheckerImpl.java: 366)
              at com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformer.init(LinkCheckerTransformer.j ava:155)
              at org.apache.sling.rewriter.impl.PipelineImpl.init(PipelineImpl.java:106)
              at org.apache.sling.rewriter.impl.ProcessorManagerImpl.getProcessor(ProcessorManagerImpl.jav a:445)
              at org.apache.sling.rewriter.impl.RewriterResponse.getProcessor(RewriterResponse.java:172)
              at org.apache.sling.rewriter.impl.RewriterResponse.getWriter(RewriterResponse.java:110)
              at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.getWriter(OnDemandWriter.java: 38)
              at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.write(OnDemandWriter.java:47)
              at java.io.PrintWriter.write(PrintWriter.java:361)
              at org.apache.sling.api.servlets.HtmlResponse.send(HtmlResponse.java:464)
              at org.apache.jsp.libs.wcm.msm.components.commands.translate.POST_jsp._jspService(POST_jsp.j ava:205)
              at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
              at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:420)
              at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)
              at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :233)
              at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:85)
              at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:453)
              at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)
              at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)
              at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 56)
              at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:500)
              at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
              at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:147)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:308 )
              at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:141)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:257)
              at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
              at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:305)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:89)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)
              at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
              at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:153)
              at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:206)
              at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)
              at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
              at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)
              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)
              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
              at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)
              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)
              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
              at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)
              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)
              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
              at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:238)
              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)
              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
              at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75 )
              at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
              at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
              at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)
              at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
              at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)
              at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
              at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
              at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:250)
              at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)
              at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)
              at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:377)
              at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:351)
              at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:625)
              at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.Exception: Stack trace of  where session-admin-465820 was originally closed
              at org.apache.jackrabbit.core.session.SessionState.close(SessionState.java:275)
              at org.apache.jackrabbit.core.SessionImpl.logout(SessionImpl.java:943)
              at org.apache.jackrabbit.core.XASessionImpl.logout(XASessionImpl.java:392)
              at com.day.crx.core.CRXSessionImpl.logout(CRXSessionImpl.java:116)
              at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.sling.jcr.base.SessionProxyHandler$SessionProxyInvocationHandler.invoke(Sessio nProxyHandler.java:109)
              at $Proxy9.logout(Unknown Source)
              at com.day.cq.workflow.impl.CQWorkflowSession.logout(CQWorkflowSession.java:615)
              at org.apache.jsp.libs.wcm.msm.components.commands.translate.POST_jsp._jspService(POST_jsp.j ava:201)
              ... 77 more

    The workaround is [1] do not close session in translate.jsp , Seems that is right way but I am not 100% confident.  Though I verified session analyser and seems getting closed by other thread once request is fullfilled. Internally, I have filled the case(CQ5-22443).  For further assistance please file a daycare.
    [1]   Overlay /libs/wcm/msm/components/commands/translate/POST.jsp  and comment out  or remove wfSession.logout();

  • Enabling stack trace on a realtime thread

    Hi,
    I'm having issues with getting a stack trace for a real time thread. I keep getting the following:
    com.sun.rtsjx.DisabledStackTrace.canBeEnabledWithRealtimeDebugBean(DisabledStackTrace.java:24)
    so i went inside my factory where i initialize my RT Threads, and added the following:
    com.sun.rtsjx.DisabledStackTrace.canBeEnabledWithRealtimeDebugBean();
    I still wasnt able to get a stack trace. So then i thought, maybe i had to make that same call in each thread. So inside one of my classes that runs on a RT Thread, i added the above logic. Still nothing..
    can anyone tell me how to enable?
    Thanks so much

    There is no stack trace. At least that's what im getting from the output. My guess is RTSJ sees pausing the thread to get a full stack trace causes jitter and makes the system just that much more undeterministic. Therefore by default they disable stack tracing for realtime threads (when called from a different thread). Here is the entire output:
    INFO [ProcessMonitor InputQ-1 Cell] stax.StackTraceAspect: (21/Dec/2010 17:47:22.177) 21/Dec/2010 17:47:22.177
    Missed Heartbeat Trace for CELL [ShapeCell]
    Strack Trace Dump
    _________Input Thread
    "ShapeCell InputQ-1 Cell" id [173] priority [20] state [WAITING] alive [true] daemon [false] native [false] suspended [false]
    at com.sun.rtsjx.DisabledStackTrace.canBeEnabledWithRealtimeDebugBean(DisabledStackTrace.java:24)
    queue: depth [0] max size [10000]
    The "ProcessMonitor InputQ-1" is a non-realtime thread attempting to get a stack trace of "ShapeCell InputQ-1" thread (which is a realtime thread)
    I believe the developers of RTSJ are probably going to have to answer this question. I have a followup meeting with them in the near future and will post their response.

  • Good stack trace for runtime errors?

    Is there any way to get a good stack trace for runtime errors, as in real line numbers and source file text? all i can find via google is posts about 'javap -c', but the posts are a couple of years old. i am hoping we've made some progress in this area.
    thanks,
    tom arnall
    north spit, ca
    usa

    Right now some of the device menufacturers are providing thier tools for realtime on device debugging. As per my knowledge, Motorola, SonyErricsson & Nokia are providing these types of tools.
    Amonst those I have used Motorola KDWP debuger. Its really very helpful. There is one other tool named "MIDWay" which provides trace of debug statments like "System.out.println" on the screen, while running application of the device.

  • How to get Java source in applet stack trace to debug Java security manager

    How can I get line numbers for Java source in stack traces for my applet? I'm having a problem with my code-signing certificate. On one of my applets, I consistently get a NullPointerException inside the security dialog code in the JDK. As a result, either the "trust this applet" dialog never appears, or even though it appears, it defaults to untrusted because of the exception, so I can't access any local files (and that's a bit of a problem for an applet whose sole purpose is to upload files to our server). I unzipped src.zip in my JDK directory and set the debug flag for my Ant <javac> task as well as set debuglevel to "lines." Anything else? Here's the trace that I'm getting so far. See that after the NullPointerException it assumes that the user has denied permission. If I could read this Java source maybe I could figure out why it hates my code-signing certificate (jarsigner, BTW, never complains when I verify my jar).
    security: Blacklist file not found or revocation check is disabled
    security: Accessing keys and certificate in Mozilla user profile: null
    security: Loading Root CA certificates from D:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from D:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading Deployment certificates from C:\Users\Rich\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
    security: Loaded Deployment certificates from C:\Users\Rich\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA has been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: Start checking trusted extension for this certificate
    security: Start comparing to jurisdiction list with this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    java.lang.NullPointerException
         at com.sun.deploy.ui.UIFactory.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDeciderDialog.showDialog(Unknown Source)
         at com.sun.deploy.security.X509Util.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByTrustDecider(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCodeSources(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.strategy(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.openClassPathElement(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$700(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    security: User has denied the priviledges to the code
    security: Adding certificate in Deployment denied certificate store
    security: Added certificate in Deployment denied certificate store
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA has been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: Start checking trusted extension for this certificate
    security: Start comparing to jurisdiction list with this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment denied certificate store

    Rats, now that I look at the stack trace and compare to what's in the JDK srce.zip, it appears that most of this code is not part of the JDK source. I don't see any com/sun/deploy, etc.

Maybe you are looking for

  • Grouping in Cross Tab

    I have a cross tab with a date in column 1. I have it grouped by week. This makes the date displayed as a Sunday date, since day 1 is Sunday. If I change the group option to last day, it displays a Saturday date. I would like to see this date as a Fr

  • Synchronization request - HELP please !!!!

    I cannot synchronize my iphone 4 with itunes: my phone doesn't appear on the left side of the screen... I have done all the things recommended in the help repertory. Does anybody have an idea please ? (excuse my bad english: I'm french ) Many thanks

  • Gapless playback information

    sometimes it does it, but only when i dont want it to and then it slows down itunes completely but when im going to be away for awhile, i dont know how to make it run the scan to do the gapless playback info scan, does anyone know how?

  • OR and UNION

    Is there any difference between OR condition in where clause and set operator UNION? i tried queries with OR condition in where clause and then split that query in two queries with UNION set operator. i have tested for some queries and its giving me

  • Exporting/Importing Reports

    Hi, We have different environments for our application....Dev, Test, and Production. We want to create Discoverer Reports on Dev and then port them on test and Production. Is there any way I can do this through Exporting/Importing. I know one way of