Visibility Problems

Hello everyone. I am relatively new to swing, I've worked with it for less than a month. However, I am not new to Java.
I have an easy problem to resolve and I think I'm doing something basic wrong, so I thought I'd ask for help here.
Consider the following code (an abridged version of what I have):
public class Gui extends JFrame {
    private JScrollPane p2;
    public Gui() {
        SwingUtilities.invokeLater(new Runnable() {
              public void run() {
                   buildGUI();
    private void buildGUI() {
    //initialize p2, add components in it
    //due to an event, the following method is invoked
    private void somemethod() {
        p2.setVisible(false);
        //do whatever I need to do
        p2.setVisible(true);
        validate();
}The problem occurs in somemethod(). The component p2 disappears and doesn't reappear. I tried to use repaint() and validate() on the component and the frame, but it was in vain. I also tried running the instructions toward the swing component in the EDT, as suggested by a swing developer; no luck again.
What is it I am doing that's wrong here?
Message was edited by:
pvangarde
I've achieved the effect I desire. Only I have to remove the component from the ContentPane and add it, instead of doing the setVisible shebang. However, I don't like the solution for obvious reasons, and this also disrupts the size of the component.

Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html
Here's a standard solution for a very common problem:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Gui extends JFrame {
    private JScrollPane p2;
String text = "For anyone interested in reducing child poverty, there was"
+ " heartening bad news out of Britain last month. In 1999 the Blair"
+ " government introduced an initiative to end child poverty by 2020, with"
+ " an initial goal of cutting it by one-quarter by April of last year."
+ " Recently the government reported that it missed that target: The number"
+ " of children in poverty dropped by \"only\" about 17 percent -- some"
+ " 700,000 kids over the past five years.\n\nIf only we could have such"
+ " problems in this country.\n\nSince 2000 the number of American children"
+ " living in poverty has risen 12 percent -- to 13 million. The initial"
+ " growth was due to the economic downturn. But since then, despite the"
+ " ongoing expansion, the poverty rate for children on this side of the pond"
+ " keeps rising, largely because the benefits of the recovery have flowed"
+ " so disproportionately to families at the top of the income scale.\n\nBut"
+ " in the United Kingdom, the policy-driven focus on reducing child poverty"
+ " has helped to ensure that economic growth is reaching those at the bottom"
+ " of the income scale. Yes, they've missed an interim target, and some parts"
+ " of the plan need rethinking, but they're making progress while we're"
+ " backsliding.\n\nThis all started back in 1999, when Prime Minister Tony"
+ " Blair gave a speech in which he set the goal of eliminating child poverty"
+ " by 2020. As we learned on a recent trip there to see how things were"
+ " unfolding, the officials at the relevant agencies don't claim to know all"
+ " the answers. But with a directive to end poverty in 20 years, they rolled"
+ " up their sleeves and got to work.\n\nMembers of Parliament and the Blair"
+ " government built, and continue to build, a comprehensive system designed"
+ " to boost the incomes of working parents, mainly through subsidies to"
+ " low-wage earners. They raised the minimum wage and have continued to push"
+ " it up regularly.";
    public Gui() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        SwingUtilities.invokeLater(new Runnable() {
           public void run() {
             buildGUI();
    private void buildGUI() {
    //initialize p2, add components in it
      JPanel panel = new JPanel();
      JButton button = new JButton("Do it");
      panel.add(button);
      JTextArea ta = new JTextArea(text);
      ta.setLineWrap(true);
      ta.setWrapStyleWord(true);
      p2 = new JScrollPane(ta);
      add(p2, BorderLayout.CENTER);
      add(panel, BorderLayout.SOUTH);
      button.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e){
          somemethod();
      setSize(300, 300);
      setVisible(true);
    //due to an event, the following method is invoked
    private void somemethod() {
      Thread t = new Thread(){
        public void run(){
          SwingUtilities.invokeLater(new Runnable(){
            public void run(){ 
              p2.setVisible(false);
          //do whatever I need to do
          try{
            Thread.sleep(3000);
          catch (InterruptedException ie){
            ie.printStackTrace();
          SwingUtilities.invokeLater(new Runnable(){
            public void run(){ 
              p2.setVisible(true);
      t.start();
    public static void main(String[] args){
      new Gui();
}

Similar Messages

  • Email visibility problem fixed?

    Since I don't know how to check (and I'm really not that interested) I was wondering if someone can confirm what this e-mail I got from Sun seems to be saying:
    In other words, did they fix the e-mail hole?
    Hello,
    Thank you for writing. I am very sorry for this
    trouble and any inconvenience you experienced
    as a result. We have followed up on this matter
    and it has been fixed.
    Sincerely,
    Sun Web Team
    Sun Microsystems, Inc.
    name: ***
    url: http://forum.java.sun.com/forum.jspa?forumID=31
    descself: Software Development
    comments: The privacy hole mentioned the thread:
    http://forum.java.sun.com/thread.jspa?messageID=3938145 is serious.
    I don't feel like I can trust with my privacy details with something likethis
    going on. Please fix this soon. I would appreciate being informed of progresson
    this hole.
    mailfrom: ***
    mailsubject: Forums or Community
    thanks_url: /contact/thankyou.jsp
    category: sdn
    Time Stamp: Tue Oct 18 15:31:02 PDT 2005
    Contact Page Referer: http://forum.java.sun.com/forum.jspa?forumID=31
    Remote host : ***
    Remote IP address : ***
    Remote Agent : ***
    Script : http://developers.sun.com/jsp_utils/form_mailer.jsp
    Referring URL : ***
    ---

    Yes, the email visibility problem has been fixed.

  • T70 / tx9 touch screen visibility problems - patchy somewhat iridescent hazing

    I currently own a tx9 that has served me well for a year and a half.   in the past few months, the surface of the touch screen developed an iridescent patchy filmy look  that interferes with my ability to know if the picture I am about to take is in crystal clear focus, and as you might imagine, my photos have suffered as a result. the screen functions, and in certain lighting conditions (indirect mid morning light inside my house) I can mostly see what's going on, but generally, it is as though I am taking pictures mostly on faith, and do not know how the images look for certain from a clarity perspective until I upload them to my pc.  think of my problem as sort of an oil slick on water, but not swirly lore more like, peeling paint although nothing has peeled off that I am aware of)    is there anything at all that can help remedy this visibility problem or prevent it on future t series camera purchases? I have tried simply wiping it, using a lens cloth dampened with lens cleaner, and today just purchased a zagg screenprotector that I have yet not attempted to install as I ran across this forum.    i have for the most part kept my camera in a lined carrying case when not in use and in travels.  is it advisable to use a screen protector for the oled screen on the tx66? if so, what kind? ( I honestly would prefer to salvage my tx9 if possible and not shell  out the three hundred   plus dollars for the tx66, especially if this happens again in only two years..and I would hate to have to start looking at other brands.  my first Sony, the t70, also had similar problems and I willingly upgraded for the improvement in light sensitivity, but I really am ok with the tech in my tx9 otherwise ) .  

    There are MANY of us that have experienced the same issue.  This is NOT simply damage to the screen due to misuse, it is a failure of the anti-reflective coating.  We experienced this with a previous version of the Sony Cybershot and the store we purchased through advised us that the problem had been corrected on the new models.  As we have all found out, the touch screen on the Sony cameras has a serious durability issue and Sony has washed their hands of the problem.  We will not buy another sony camera again.  It's too bad, because the camera is really nice as a pocket camera and performs well otherwise.  Had we known that this was going to be an issue, we would have installed a protective film while it was new or simply chosen another camera.  We liked the simplicity of the touch screen but the failure of the anti reflective coating makes the screen almost unusable in areas where there is a lot of light.  The only solution that we have been able to find is to use a very fine polishing compound and remove the residual coating.  It means that the screen will have reflections but it will at least be more usable.  Toothpaste and a soft rag will remove the patchy areas of the coating that remains.  A touch sensitive screen should be a lot more durable than the one that Sony has been shipping. Sony has really done a disservice to their customers that have spent good money for a product that has a known failure problem.  What's worse is that they deny that there is an issue.  We all know better.

  • [svn] 3216: Fix for MXMLG-228, a visibility problem with graphic elements.

    Revision: 3216
    Author: [email protected]
    Date: 2008-09-15 18:13:11 -0700 (Mon, 15 Sep 2008)
    Log Message:
    Fix for MXMLG-228, a visibility problem with graphic elements. This is a quick fix that may force extra display objects when toggling visibility. We should investigate alternate solutions if performance is a problem.
    Bugs: MXMLG-228
    Reviewer: Deepa
    QA: Please check for performance problems when toggling visibility of a large number of graphic elements.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/MXMLG-228
    http://bugs.adobe.com/jira/browse/MXMLG-228
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/graphicsClasses/GraphicElement .as

    Hello Antonio;
    After many, many test I discovered that the problem, at least in my case it is caused by the new ACR 4.5. Please read the Thread that I post under Camera Raw. I include the link below.
    I also open two Bug Reports about this, but as usual Adobe (and other Software Companies) will never take responsability for this, until one day they release a new version with "enhancements".
    PSE6 Organizer Crash with ACR 4.5 (Vista Only?)
    http://www.adobeforums.com/webx/.3bb6a869.59b60d3e

  • Data visibility problem in PDF file generated from R/3 system

    Hi all,
    We are converting the output of a Smartform into a PDF format. From this smart from, we receive data in OTF format, after which the required data is converted from OTF format to PDF format. Then PDF data is sent through mail using FM SO_NEW_DOCUMENT_ATT_SEND_API1 as an attachment. 
    For the above mentioned Smartform, we have defined Paragraph & Character font type as 'TIMES' in smart style. But when we receive the PDF file (through mail), some data of appears in other fonts:
    1) When PDF file is generated from Development system, the different font types which are used by PDF are Arial and Times-Roman. In this case, we are able to see the PDF output and faced no major problems because both of these fonts are supported by PDF file format.
    2) When PDF file is generated from Testing system, the font types which is used by PDF is Arial. In this case, we are able to see the PDF output because this font is supported by PDF file format.
    3) When PDF file is generated from Production system, the different font types which are used by PDF are Arial, Times-Roman and PBRS. Here, we are able to see the data which is displayed in Arial font and Times-Roman font. But we are not able to see the data which is displayed in PBRS font because this type of font is not supported by PDF file format. If we copy the distorted text from PDF file and paste it in MS-Word then the required data is clearly visible and that is due to the reason that MS-Word supports PBRS font.
    But as per smart style we have used only 'TIMES' font, then why different fonts are appearing in PDF file?
    What settings are required to be done to make this data visible?
    Any pointer to solve this issue will be really appreciable. Thanks in advance for your help.
    Thanks and Regards,
    Dheeraj Tolani

    Hi,
    check the following
    http://help.sap.com/bp_biv235/BI_EN/html/bw.htm
    business content
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20co-pa%20extraction%203.0x
    https://websmp203.sap-ag.de/co
    http://help.sap.com/saphelp_nw04/helpdata/en/37/5fb13cd0500255e10000000a114084/frameset.htm
    (navigate with expand left nodes)
    also co-pa
    http://help.sap.com/saphelp_nw04/helpdata/en/53/c1143c26b8bc00e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fb07ab90-0201-0010-c489-d527d39cc0c6
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1910ab90-0201-0010-eea3-c4ac84080806
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ff61152b-0301-0010-849f-839fec3771f3
    FI-CO 'Data Extraction -Line Item Level-FI-CO'
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a7f2f294-0501-0010-11bb-80e0d67c3e4a
    FI-GL
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/fe943b2bcbd11ee10000000a114084/frameset.htm
    http://help.sap.com/saphelp_470/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm
    http://www.sapgenie.com/sapfunc/fi.htm
    Please reward for the same.

  • Jpopupmenu visibility problem with JWindows

    Hello,
    BACKGROUND:
    I am attempting to implement a feature similar to one found in the netbeans IDE for a programming editor I am helping to write. The feature is an autocomplete/function suggestion based on the current word being typed, and an api popup for the selected function.
    Currently a JPopupMenu is used to provide a list of suggested functions based on the current word being typed. EG, when a user types 'array_s' a JPopupMenu pops up with array_search, array_shift, array_slice, etc.
    When the user selects one of these options (using the up/down arrow keys) a JWindow (with a jscrollpane embedded in it) is made visible which displays the api page for that particular function.
    PROBLEM:
    The problem is that when a user scrolls down the JWindow the JPopupmenu disappears so he user cannot select another function.
    I have added a ComponentListener to the JPopupMenu so that when componentHidden is called I can do checks to see if it should be visible and make visible if necessary. However, componentHidden is never called.
    I have added a focuslistener to the JPopupMenu so that when it loses focus I can do the same checks/make visible if necessary. This function is never called.
    I have added a popupMenuListener but this tells me when it is going to make something invisible, not actually when it's done it, so I can't call popup.setVisible(true) from popupMenuWillBecomeInvisible because at that point the menu is still visible.
    Does anyone have any suggestions about how I can scroll through a scrollpane in a JWindow whilst still keeping the focus on a separate JPopupMenu in a separate frame?
    Cheers

    The usual way to do popup windows (such as autocomplete as you're doing) is not to create a JPopupMenu, but rather an undecorated (J)Window. Stick a JList in the popup window for the user to select their choice from. The problem with using a JPopupMenu is just what you're experiencing - they're designed to disappear when they lose focus. Using an undecorated JWindow, you can control when it appears/disappears.
    See this thread for information on how to do this:
    http://forum.java.sun.com/thread.jspa?threadID=5261850&messageID=10090206#10090206
    It refers you to another thread describing how to create the "popup's" JWindow so that it doesn't steal input focus from the underlying text component. Then, further down, it describes how you can forward keyboard actions from the underlying text component to the JWindow's contents. This is needed, for example, so the user can keep typing when the autocomplete window is displayed, or press the up/down arrow keys to select different items in the autocomplete window.
    It sounds complicated, but it really isn't. :)

  • XDK 9.0.2.0.C XSQL parameter visibility problem

    Dear Steven,
    I consider this as a serious bug:
    When one set XSQL page or XSQL session page parameter it
    become visible in page/request/session or otherwise only after
    the following round trip to the client.
    In other words, it is not present in the incoming XML to xslt to
    process.
    Thank you,
    David

    David,
    I just re-tested with 9.0.2C and things are working as they
    should. For example, the following XSQL page:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="test.xsl"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="demo">
      <xsql:set-page-param name="page-param" value="1"/>
      <xsql:set-session-param name="sess-param" value="2"/>
      <xsql:set-stylesheet-param name="sheet-param" value="3"/>
      <xsql:include-param name="page-param"/>
      <xsql:include-param name="sess-param"/>
    </page>referencing the following stylesheet:
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:param name="sheet-param"/>
      <xsl:template match="/">
        <html><body>
        <b><xsl:value-of select="$sheet-param"/></b>
        <b><xsl:value-of select="/page/sess-param"/></b>
        <b><xsl:value-of select="/page/page-param"/></b>
        </body></html>
      </xsl:template>
    </xsl:stylesheet>shows an HTML page with the expected "321" the first request.
    If you are talking about cookies, then you are correct that the
    cookies you set this request are not visible until the next
    request (which is the standard way cookies work), however, you
    can use the new XSQL 9.0.2C feature to "see" the cookie value
    immediately by adding the immediate="yes"] attribute to
    your <xsql:set-cookie> action.
    If I've misunderstood your problem, please post a testcase that
    illustrates the issue. Thanks.

  • Developing new Swing Components - Visibility problems with UI classes

    I was wondering if anyone out there had run into the following problems when developing new Swing components. If so it might be worth banding together and putting pressure on Sun to fix them. However, if no one else develops new Swing components then I guess I'm just a lone voice...
    I have been writing a new dockable toolpanel Swing component and when it came to implementing the UI manager I was unable to access many of the standard features in basic and metal LAFs because they had been made package protected. This forced me to reimplement quite a bit of existing code which took time as well as being bad practice.
    While in some cases I can understand this from a security POV I am pretty sure that in this case it is the result of lazy programming practice. Appart from basic architectural reasons for this I have noticed a trend where newer code seems to suffer from this more than the original code. The practice of using package protection reminds me of C++ style coding, or just that of an inexperienced developer who does not understand the need to code for extensibility.
    An additional problem arises because the Security manager stops you cheating the system by putting new classes into the javax.swing.plaf... package structure. Thus the only way to solve this nicely is a proper fix.
    This would entail going through all the UI PLAF classes and rationalizing the visibility to either public or protected as appropriate. Really there should be minimal use of package protection unless it is vital for security concerns.
    Some Examples (there are many more):
    javax.swing.plaf.basic.LazyActionMap
    javax.swing.plaf.basic.BasicBorders.RolloverMarginBorder
    javax.swing.plaf.basic.BasicBorders.SplitPaneDividerBorder (why are just these two classes package protected when all the others are public?)
    javax.swing.plaf.metal.MetalUtils
    javax.swing.plaf.metal.MetalBumps
    Anyway, I am happy to give advice to other poor saps who wind up fighting the UI manager but it would be better if we could get Sun to sort out this mess (after all they created it).
    Cheers, Lewis

    It may be more a case of creating new Swing components and trying to provide support for all the standard LnFs.
    This is very awkward although you can sometimes achieve what you want by borrowing resources from UIManager (a border here, an icon there etc.).
    Essentially the problem is that Swing is designed to have new components added to it but the standard LnFs aren't quite so accommodating!

  • Photoshop CS4 Pen Tool Visibility Problem

    I recently upgraded to CS4 and started using Photoshop to do some work. Working on some clipping path with the pen tool I've come to notice how incredibly light the pen tool outline is. I cant see where or what im tracing cause I can't tell where the line is unlike the other earlier creative suites where the line was visible.
    Anyone have any ideas on making this outline more visible so I can actually see what I am doing. Input would be much appreciated.

    I am having the exact same problem with Photoshop CS 4 on my MacBook OSX 10.5.7 4 GB RAM    Intel GMA X3100:  graphics card
    When I enable Open GL in PS CS4 preferences, the pen tool line is too light, too thin to use and the anchor points aren't accurate , I have to disable Open GL to get the normal pen function back. Adobe should get us a fix to make Open GL compatable with all graphics cards. All functions in Open GL work fine except the Pen Tool.

  • Visibility problem

    I'm currently using Director MX 2004, basically I'm wanting
    the mouse pointer to click on an object, and when the object has
    been clicked, for it to disappear. The problem comes when the
    sprite doesnt return at the start of a new game. What code could I
    use to make it re-appear at the start of a new game? I'm currently
    using
    on mouseUp
    sprite(2).visible = FALSE
    end
    to get the objects to dissappear. Any help would be greatly
    appreciated.

    When the new game starts, make it always set all of the
    parts'
    visibility back to true. If there are only a few things, then
    it may be
    easiest to put a script like this on the "reset button" (or
    whatever is
    used to start the game over)
    sprite(2).visible=true
    sprite(3).visible=true
    ..etc...
    If there are a lot of them, then put a handler like this in
    the script
    for those objects
    on resetVisibility me
    sprite(me.spriteNum).visible=true
    end
    and on your rest button, put this command to do all of them
    at once:
    sendAllSprites(#resetVisibility)

  • JFileChooser visibility problem

    Hi,
    I have a problem with JFileChooser-component. Every now and then the JFileChooser-component won't come visible and the application hangs.
    For example:
    import java.io.File;
    import javax.swing.JFileChooser;
    public class Main {
        public static void main(String args[])
             JFileChooser fcSaveAs = new JFileChooser();
             fcSaveAs.setSelectedFile(new File(fcSaveAs.getCurrentDirectory() + File.separator + "test.pdf"));
         int saveResp = fcSaveAs.showSaveDialog(null);
         if(saveResp == JFileChooser.APPROVE_OPTION) {
              System.out.println("true");
    }So, I want to give the user a sample filename, which he/she can use to save a file.
    But if I run that, every fifth or sixth time the dialog won't come visible and the application hangs. The user can't do anything but stop java.exe.
    If i take that line 8 off, system works fine. But I want to give a sample filename to the user, which he/she can use to save the file.

    Hi,
    Have you tried running on the Event Dispatch Thread (as you always should with Swing code)?
    import java.io.File;
    import javax.swing.JFileChooser;
    import javax.swing.SwingUtilities;
    public class ChooserTest {
        public static void main(String[] args) {
         SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
              JFileChooser fcSaveAs = new JFileChooser();
              fcSaveAs.setSelectedFile(new File(fcSaveAs
                   .getCurrentDirectory()
                   + File.separator + "test.pdf"));
              int saveResp = fcSaveAs.showSaveDialog(null);
              if (saveResp == JFileChooser.APPROVE_OPTION) {
                  System.out.println("true");
    }Piet

  • ActiveX container visibility problem

    I am having problems with container visibility on a tab when the tab is made invisible. I have made a demo program to change tabs with and see how visibility behavior is affected based on which tab-page is visible at the time. I know there is a work around by programmatically changing to a different tab before setting visibility false.
    Attachments:
    ActiveX_Problem.vi ‏34 KB

    Hi,
    Actually, if you set the visibility of the ActiveX container to be the same as that of the Visibility boolean, the program seems to work correctly.
    Go ahead and take a look at the modified example I've attached. Also, I slightly modified the way the stop button was being handled (I included it as a case in the event structure, which is generally the way NI recommends the use of the Stop button in event structures).
    Hopefully this program will now work as expected. Thanks!
    Kileen C.
    Applications Engineer
    National Instruments
    NI Week 2004 is here!!
    Attachments:
    ActiveX_Problem.vi ‏48 KB

  • Class visibility problems in deployed OC4J application

    I have an entity, autogenerated from a database table by JDeveloper, which has the form:
    Entity.java:
    package a.b.c;
    import ...
    @Entity
    @NamedQuery( ... )
    @Table( ... )
    public class Entity implements Serializable {
        @Column( ... )
        : etc.
    }Then I have a stateless session bean, also autogenerated by JDeveloper, which has the form:
    SessionEJBBean.java:
    package a.b.c;
    import ...
    @Stateless(name="SessionEJB")
    public class SessionEJBBean implements SessionEJB {
        @PersistenceContext(unitName="Simple")
        private EntityManager em;
        public List<Entity> queryFindAll() {
            return em.createNamedQuery( ... ).getResultList();
        : etc.
    }Then I have my client (again, largely autogenerated):
    SessionEJBClient.java:
    package a.b.c;
    import ...
    public class SessionEJBClient {
        public static void main(String [] args) {
            try {
                final Context context = getInitialContext();
                SessionEJB sessionEJB = (SessionEJB)context.lookup("SessionEJB");
                List<Entity> entities = sessionEJB.queryFindAll();
            } catch (Exception ex) {
                ex.printStackTrace();
        private static Context getInitialContext() throws NamingException {
         : etc.
    }The above code works fine, however I now want to experiment with the oracle.toplink.essentials.tools.sessionconfiguration.SessionCustomizer interface. To this end, I create a bare-bones customizer class:
    Customizer.java:
    package a.b.c;
    import ...
    public class Customizer implements SessionCustomizer {
        public Customizer() {
        public void customize(Session session) {
    }and make corresponding updates to the persistence.xml file:
    persistence.xml:
    <?xml version="1.0" encoding="windows-1252" ?>
    <persistence
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
      http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
      version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
      <persistence-unit name="Simple">
        <properties>
          <property name="toplink.session.customizer" value="a.b.c.Customizer"/>
        </properties>
      </persistence-unit>
    </persistence>Now, when I redeploy and attempt to run my client application, I'm told that the customizer class cannot be found:
    11-Jun-2007 16:32:17 oracle.j2ee.rmi.RMIMessages
    EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    javax.ejb.EJBException: Exception [TOPLINK-28006]
    (Oracle TopLink Essentials - 2006.8 (Build 060829)):
    oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: ClassNotFound: [a.b.c.Customizer]
    specified in [toplink.session.customizer] property.
    Internal Exception: oracle.classloader.util.AnnotatedClassNotFoundException:
           Missing class: com.logicacmg.security.Customizer
         Dependent class: oracle.toplink.essentials.internal.security.PrivilegedAccessHelper
                  Loader: oracle.persistence:1.0
             Code-Source: /usr/oc4j/toplink/jlib/toplink-essentials.jar
           Configuration: <code-source> in /usr/oc4j/j2ee/home/config/server.xml
    This load was initiated at oracle.persistence:1.0 using the Class.forName() method.
    The missing class is available from the following locations:
         1. Code-Source: /usr/oc4j/j2ee/home/applications/SimpleApp/SimpleApp.jar
    (from <ejb> in /usr/oc4j/j2ee/home/applications/SimpleApp)
            This code-source is available in loader SimpleApp.root:0.0.0.
    This is the current thread's context loader, and it appears that Class.forName()
    was used to load the dependent class. If a loader was not explicitly passed to
    Class.forName(), try passing the result of calling
    Thread.currentThread().getContextClassLoader()So, my question is: what is the correct way for me to configure the system so that my Customizer class is picked up?
    Apologies if this is obvious - I'm still rather new to working in this area (so if anything else I've written doesn't make sense - please don't be afraid to point it out!).
    Regards,
    Alistair.

    Hi, you all seem highly intelligent so I'll give this a shot.
    We're having a similar problem, but TopLink is not involved. Axis2 is, but in our case, the Axis2 application runs fine, it's the other applications that fail.
    We have three applications, Login, Candle, and Webservices (the one with Axis2). When we first start up the applications, they all instantiate fine. We can run Login pages and Candle pages fine. We can also run non-Axis2 Webservices servlets without breaking Login and Candle. But when we run a webservices servlet that uses Axis2, something happens that causes all future Login and Candle class loading to fail! From the error message, OC4J indicates that it is trying to load classes for Login and Candle using the classloader for Webservices.
    So, to summarize, once the webservices app runs an Axis2 servlet, OC4J tries to use the webservices' classloader to load classes for the other applications instead of using their classloaders. The example error message I give below is for the Candle application, but the same problem occurs for Login.
    Please help, even if it's just a suggestion for something to try!! We've been trying to understand this for 2 days and we're still as stumped as ever.
    [java] 2007-06-15 14:59:59,159 ERROR [org.apache.struts.action.RequestProcessor] - No action instance for path /adpThrowableHandler could be created
    [java] oracle.classloader.util.AnnotatedClassNotFoundException:
    [java] Missing class: com.adp.candle.core.ui.struts.exceptionhandler.AdpThrowableHandlerAction
    [java] Dependent class: org.apache.struts.util.RequestUtils
    [java] Loader: default.web.candle:0.0.0
    [java] Code-Source: /C:/build/javaroot/candle/WEB-INF/lib/struts.jar
    [java] Configuration: WEB-INF/lib/ directory in C:\build\javaroot\candle\WEB-INF\lib
    [java] This load was initiated at default.web.webservices:0.0.0 using the loadClass() method.
    [java] The missing class is available from the following locations:
    [java] 1. Code-Source: /C:/build/javaroot/candle/WEB-INF/classes/ (from WEB-INF/classes/ in C:\build\javaroot\candle\WEB-INF\classes)
    [java] This code-source is available in loader default.web.candle:0.0.0.
    -- Brad

  • Visibility problems in my macbook pro 13'

    hi!.
    i have a macbook pro 13' mid 2010. last week i turned on my macbook and i detected some problems in my screen..
    i don't know what happened.. i need some help with this, please.
    i'm going to attach some pictures...
    could you tell me what's the problem?
    how many cost the reparation?
    i'm desperate!

    Hi casscr,
    Welcome to the Apple Support Communities!
    I understand that the display on your MacBook Pro is not functioning the way you would expect. Please use the troubleshooting steps in attached article to troubleshoot the issue. 
    Apple computers: Troubleshooting issues with video on internal or external displays - Apple Support
    Have a great day,
    Joe

  • Spry Menu+Flash Content: Visibility Problem in IE

    Hi, I created a web page with Dreamweaver CS3, and I put a
    Spry Menu just over a Flash Banner. I set the wmode to transparent
    and it works fine on all browser except for IE. It still doesn't
    display the submenus which are hidden by the .swf file.
    I read some articles but none explaining how to fix this
    problem. Anybody knows how to solve it? Thanks for any help!
    The code is here in case I made some mistakes:
    <div id="FlashContent">
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','700','height','160','title','Flash
    Banner','src','images/flash/flash_banner','quality','high','pluginspage','
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','wmod e','transparent','movie','images/flash/flash_banner'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="700" height="160" title="Flash Banner">
    <param name="movie" value="images/flash/flash_banner.swf"
    />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <embed src="images/flash/flash_banner.swf" width="700"
    height="160" quality="high" pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash"
    wmode="transparent"></embed>
    </object>
    </noscript></div>

    add this to the
    @media screen, projection section of the css.
    ul.MenuBarVertical li.MenuBarItemIE a and give it a fixed
    height. That should fix it.

Maybe you are looking for

  • WiFi issues with iPhone 4S & ios 6 update

    Okay here is my issue... I've been reading alot of issues that people have with connecting to WiFi with their new iPhone 5, iPhone 4S or other devices but I have no trouble connecting to WiFi at all. My problem is that WiFi wont 'work'. The WiFi I'm

  • ODI 11.1.1.5 Installation is failing in HP UX

    Hi All, ODI 11.1.1.5 Installation is failing due to below error. OS: HP UX 11.3i Itanium system JDK 6 Error: /usr/lib/dld.sl: Can't find path for shared library: libjli.sl /usr/lib/dld.sl: No such file or directory [HP ARIES32]: Error occured while w

  • ECATT: SAP's Best Practice For eCATT

    Hello All, If multiple projects are handled on same server, then the master data keep on changing due to which the screen sequences of transactions may change and hence causing the failure of earlier automated eCATT scripts. What is the best practice

  • Facetime Setting is Missing

    After updating my iOS to 6.1.2 Facetime settings was removed, even in the settings for phone and restrictions. Few of my friends have the same problem. Anyone else having this issue?

  • Outlook appointments not editable on iPhone after sync

    When an appointment is created in Outlook and sync'ed to the iPhone, you can't edit or delete the appointment. But if you create an appointment, on your iPhone you can edit and delete, unless you change and save the item from Outlook. Also, you can't