Strange references from "sun.awt.X11.InputMethod"

We profiled our software and found obscure references for panels that have been closed, but can not be garbaged collected because there is a reference from "sun.awt.X11.InputMethod".
It seems that it has something to do with the clipboard / Klipper of Linux, as the reference is sometimes solved when marking and copying text. Anyone had this error too and is this a bug in Java, or how can we fix that issue? We have very huge panels and are getting memory problems if they are not deleted correctly or too late. Has anyone more infos of the cause and what can be done?
Please help.

Similar problem I solved with update driver printer.
Bya

Similar Messages

  • Sun.awt.X11.XToolkit processException

    In my application, I'm embedding a Java AWT Frame into a Qt widget and for that I'm using "sun.awt.X11.XEmbeddedFrame.java" class.
    I pass the "Window Id" of the QWidget to XEmbeddedFrame which then displays itself into the QWidget.
    The embedding works fine, i.e., the Java frame gets displayed into the QWidget but when I try to close the QWidget (by clicking on the 'x' button on the QWidget window), I get the following exception:
    sun.awt.X11.XToolkit processException
    WARNING: Exception on Toolkit thread
    sun.awt.X11.XException: Cannot write XdndProxy property
    at sun.awt.X11.XDnDDropTargetProtocol.registerEmbedderDropSite(Unknown Source)
    at sun.awt.X11.XDropTargetRegistry.updateEmbedderDropSite(Unknown Source)
    at sun.awt.X11.XDropTargetEventProcessor.doProcessEvent(Unknown Source)
    at sun.awt.X11.XDropTargetEventProcessor.processEvent(Unknown Source)
    at sun.awt.X11.XToolkit.run(Unknown Source)
    at sun.awt.X11.XToolkit.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Any ideas on what might be causing this exception and how to handle it?
    Do I need to write my own error handler? But XToolkit.XErrorHandler interface is not public. Is there any other way?
    Thanks!

    Well The issue was somewhere else due to it reading too much of data. It ran but my program is very slow (approx 2-3 hrs).
    I am worried about the speed...
    is it because of the large amount of data.. 23,355,459 records..?? or there could be some issue in programming probably memory leak etc..??
    -> reads db
    -> for each record set
    -> perform different operation/ writes to file

  • Could not initialize class sun.awt.X11.XToolkit

    hi all
    String fileName = "c:/test/one.jpg";
    Image imgg = Toolkit.getDefaultToolkit().getImage(fileName);
         ImageIcon img = new ImageIcon(imgg);
         imgDim = ""+img.getIconHeight();
    when i run this code in linux machine am getting the error Could not initialize class sun.awt.X11.XToolkit....but its runnig on windows machine.. is there anything wrong wiht my code........pl help me any1 out of dis

    here http://rapid-i.com/rapidforum/index.php?topic=366.0
    they talk about adding to the JVM options a "-Djava.awt.headless=true"

  • Regarding jms implementation that comes with reference j2ee server from sun

    I have a message bean that is trying to read message off the queue, do something, and put a message on to other queue.
    The problem: I am loosing a message.
    I have tried both the container managed as well as bean managed transaction.
    Is there any bug with the reference JMS server? I am using the SimpleQueueSender that comes with the jms tutorial from sun to send message in a persisted mode. I am running the J2EE server that comes from SUN.
    I will post the code if someone is willing to take a sincere look.
    Thanks
    Aman

    I can tell you one thing about JMS, I have websphere MQ Series, Even the product like MQ from IBM have limitation when using 2 phase commit(), it supports 2 PC only when websphere and MQ Series are installed on the same box, So i would not be surprised if there is a bug in reference JMS implementation and you are losing messages even though in transaction. Are you using distributed transaction.

  • Sun.awt alternative

    Do you know an sun.awt library alternative ?? I have had problems with sun.awt and securitymanager because sun.awt classes require AllPermission permissions or do you have an alternative solution, obvioosly without providing AllPermission to all classes and packages ??
    Greetings

    Maxideon wrote:
    ...it sounds like the installed Security Manager is not allowing read access to the system.Speaking of which, it sounds as though this SecurityManager needs to be less restrictive. Perhaps you can adapt this custom security manager (designed to prevent child frames from exiting) to grant your own code 'all permissions' while restricting what the plug-ins can do.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.EmptyBorder;
    import java.security.Permission;
    /** NoExit demonstrates how to prevent 'child' applications from ending the VM with a call
    to System.exit(0).
    @author Andrew Thompson */
    public class NoExit extends JFrame implements ActionListener {
         JButton frameLaunch = new JButton("Frame");
         JButton exitLaunch = new JButton("Exit");
         /** Stores a reference to the new 'no exit' security manager. */
         ExitManager sm;
         public NoExit() {
              super("Launcher Application");
              // close only using the Exit button
              setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
              JPanel mainUI = new JPanel(new GridLayout(0,1,5,5));
              mainUI.setBorder( new EmptyBorder(10,10,10,10) );
              sm = new ExitManager();
              System.setSecurityManager(sm);
              frameLaunch.addActionListener(this);
              exitLaunch.addActionListener(this);
              mainUI.add( frameLaunch );
              mainUI.add( exitLaunch );
              setContentPane( mainUI );
              pack();
              setLocationRelativeTo(null);
         public void actionPerformed(ActionEvent ae) {
              if ( ae.getSource()==frameLaunch ) {
                   new TargetFrame();
              } else {
                   exit();
         public void exit() {
              // change back to the standard SM that allows exit.
              sm.resetSecurityManager();
              System.out.println("Bye, bye!!");
              // exit the VM when *we* want
              System.exit(0);
         public static void main(String[] args) {
              Runnable r = new Runnable() {
                   public void run() {
                        NoExit ne = new NoExit();
                        ne.setVisible(true);
              SwingUtilities.invokeLater(r);
    /** This example frame attempts to System.exit(0) on closing, we must prevent it from doing so. */
    class TargetFrame extends JFrame {
         static int x=0, y=0;
         TargetFrame() {
              super("Close Me!");
              setLocation(++x*10,++y*10);
              JLabel label = new JLabel("Hi from " + x + "!",SwingConstants.CENTER);
              label.setBorder( new EmptyBorder(40,40,40,40) );
              add(label);
              addWindowListener( new WindowAdapter() {
                   public void windowClosing(WindowEvent we) {
                        System.out.println("Bye!");
                        System.exit(0);
              pack();
              setSize( getPreferredSize() );
              setVisible(true);
    /** Our custom ExitManager does not allow the VM to exit, but does allow itself to be
    replaced by the original security manager.
    @author Andrew Thompson */
    class ExitManager extends SecurityManager {
         SecurityManager original;
         ExitManager() {
              original = System.getSecurityManager();
         /** Deny permission to exit the VM. */
         public void checkExit(int status) {
              handleFailure();
         /** Allow this security manager to be replaced, if fact, allow pretty much everything. */
         public void checkPermission(Permission perm) {
              if (perm.getName().equals("setSecurityManager")) {
                   int changeOK = JOptionPane.showConfirmDialog(
                        null,
                        "Change the security manager?",
                        "ExitManager",
                        JOptionPane.OK_CANCEL_OPTION,
                        JOptionPane.WARNING_MESSAGE
                   if ( changeOK==JOptionPane.CANCEL_OPTION ) {
                        handleFailure();
         public void handleFailure() {
              JOptionPane.showMessageDialog(
                   null,
                   "Exit denied",
                   "ExitManager",
                   JOptionPane.ERROR_MESSAGE
              throw( new SecurityException() );
         /** Sets the SecurityManager back to the original. */
         public void resetSecurityManager() {
              System.setSecurityManager(original);
    }

  • Problems with xalan migrating from Sun One 7 to Sun One 8.1

    Hi!
    I'm migrating one application from Sun One 7 to Sun One 8.1, my problem is when I use xalan/xerces to transform XML/XSL appears the following error:
    javax.xml.transform.TransformerException: java.lang.NullPointerException
    I put my xalan/xerces version in my WEB-INF/lib but I think that the problem is that internally the server use its xalan that is a strange version, because in MANIFEST file put 2.6.0 version but I compared with 2.6.0 of xalan and it's different.
    How any idea to solve this?
    Thanks in advance
    Josep M

    As you have an existing portal installation, you will need to have the 9iAS Portal 3.0.8 Upgrade Scripts in order to upgrade to 3.0.8. We expect to have these 3.0.8 upgrade scripts available next week (April 23-27) for download from OTN.
    With regards to import/export, Import/Export Utilities currently will ONLY work between portal installations which are at the SAME VERSION LEVEL.
    The 3.0.8 upgrade process is an "in-place" upgrade, meaning that it upgrades an existing installation to the 3.0.8 release. You will need to have Portal 3.0.7 on your new box, and then upgrade "in place" to 3.0.8 there. I would advocate also doing a "cold backup" snapshot(backup all database data and log files) of your existing production database files as well.
    null

  • Sun.awt.image.ToolkitImage

    Hi
    I'm integrating with a 3rd party package which delivers various images.
    These come in different objects, mostly BASE64DecoderStream and BufferedImage. But, GIF files are delivered as a ToolkitImage object.
    For the BufferedImage I do something like
    ByteArrayOutputStream stream = new ByteArrayOutputStream();
    ImageIO.write(image, "JPG", stream);and puts it in DB. I just can't figure out a way to do the same for ToolkitImage.
    My questions are:
    1. Is there a way to convert/cast the ToolkitImage so i can format/encode it and put it in DB, similar to the example above?
    2. Where is the API documentation for the internal classes in package "sun.awt.image"?
    Hope you experts can help me out here :)

    > Didn't know it could be casted to an Image.
    Do you know of any documentation on sun.awt.image in general?
    Why Developers Should Not Write Programs That Call 'sun' Packages
    The classes that Sun includes with the Java 2 SDK, Standard Edition, fall into package groups java.*, javax.*, org.* and sun.*. All but the sun.* packages are a standard part of the Java platform and will be supported into the future. In general, packages such as sun.*, that are outside of the Java platform, can be different across OS platforms (Solaris, Windows, Linux, Macintosh, etc.) and can change at any time without notice with SDK versions (1.2, 1.2.1, 1.2.3, etc). Programs that contain direct calls to the sun.* packages are not 100% Pure Java. In other words:
    The java.*, javax.* and org.* packages documented in the Java 2 Platform Standard Edition API Specification make up the official, supported, public interface.
    If a Java program directly calls only API in these packages, it will operate on all Java-compatible platforms, regardless of the underlying OS platform.
    The sun.* packages are not part of the supported, public interface.
    A Java program that directly calls into sun.* packages is not guaranteed to work on all Java-compatible platforms. In fact, such a program is not guaranteed to work even in future versions on the same platform.
    For these reasons, there is no documentation available for the sun.* classes. Platform-independence is one of the great advantages of developing in the Java programming language. Furthermore, Sun and our licensees of Java technology are committed to maintaining backward compatibility of the APIs for future versions of the Java platform. (Except for code that relies on serious bugs that we later fix.) This means that once your program is written, the class files will work in future releases.
    Each company that implements the Java platform will do so in their own private way. The classes in sun.* are present in the SDK to support the Sun implementation of the Java platform: the sun.* classes are what make the Java platform classes work "under the covers" for the Sun Java 2 SDK. These classes will not in general be present on another vendor's Java platform. If your Java program asks for a class "sun.package.Foo" by name, it may fail with ClassNotFoundError, and you will have lost a major advantage of developing in Java.
    Technically, nothing prevents your program from calling into sun.* by name. From one release to another, these classes may be removed, or they may be moved from one package to another, and it's fairly likely that their interface (method names and signatures) will change. (From the Sun point of view, since we are committed to maintaining the Java platform, we need to be able to change sun.* to refine and enhance the platform.) In this case, even if you are willing to run only on the Sun implementation, you run the risk of a new version of the implementation breaking your program.
    In general, writing java programs that rely on sun.* is risky: they are not portable, and are not supported.
    ~

  • Com.sun.awt

    Hi all,
    From where I can find the package com.sun.awt
    I've search the web but unable to find a location to download it. Anyone of you have a link to download it.
    Thanks.

    Don�t know if it help, but I found that 'org.apache.batik.svggen.SVGGraphics2D' substitutes 'com.sun.awt.svg.*'
    Also I found some info about com.sun.awt in here:
    http://java.sun.com/products/personaljava/spec-1-1/pJavaSpec.html

  • URGENT!!!! help me!Where I can get package com.sun.awt.svg.*

    Hello,everybody!
    I want to know Where I can get package com.sun.awt.svg.* ??

    Requirements
    JDK 1.3 Software -
    To use the Graphics2D SVG Generator, you need to have installed the Java 2 Software Developer's Kit (SDK). You can obtain the Java 2 SDK from the Sun Java 2 web site (http://java.sun.com/j2se/).
    The Graphics2D SVG Generator software was tested with version 1.3, so you should use the same version or a newer one.
    DOM Implementation -
    A DOM level 1 implementation is needed to use the Graphics2D SVG Generator. You can obtain a Java language DOM implementation from the following:
    Apache Xerces (http://xml.apache.org/xerces-j/index.html)
    Sun Microsystem's Project X
    (http://developer.java.sun.com/developer/products/xml)
    You also need to put the corresponding jar files in the classpath. The following table shows commands for doing this.
    Operating System DOM Implementation Command
    Windows 98 Xerces set classpath=%classpath%;
    xercesinstalldir\xerces.jar
    Windows 98 Project X set classpath=%classpath%;
    projectxinstalldir\xml.jar
    UNIX Xerces setenv CLASSPATH ${CLASSPATH}:
    xercesInstallDir/xerces.jar
    UNIX Project X setenv CLASSPATH ${CLASSPATH}:
    projectxinstalldir/xml.jar
    SVG Viewer
    To view the generated SVG files, you need to have an SVG viewer. You can find a list of available SVG viewers at the W3C SVG web site (http://www.w3.org/Graphics/SVG/SVG-Implementations).
    top of the page
    Installing the Graphics2D SVG Generator Software
    IMPORTANT:
    Before installing the software, make sure you agree to the license terms.
    To install the software, perform the following steps:
    Step 1: Uncompress the distribution file in the desired installation directory. Use these commands (from the command line):
    > cd installDir
    > jar xf j2d2svg.zip
    The j2d2svg.jar file expands into a directory (j2d2svg) that contains the following:
    README.html (this file) -- Provides important information about installing and using the Graphics2D SVG Generator.
    svggraphic_license.html -- License agreement.
    svggen.jar -- A jar (java archive) file that contains the SVGGraphics2D classes.
    glf.jar -- A jar file that contains the Graphic Layers Framework classes.
    svggenDoc.jar -- A jar file that contains the software's API documentation in HTML.
    HelloSVG.java -- Example file.
    HelloManipulatedSVG.java -- Example file.
    Step 2: Add svggen.jar to the classpath.
    On Windows, use this command:
    - set classpath=%classpath%;<j2d2svginstalldir>\svggen.jar
    On UNIX, use this command:
    - setenv CLASSPATH=${CLASSPATH}:j2d2svginstalldir/svggen.jar
    To use the Graphic Layer Framework conversion utility (i.e., to use the com.sun.awt.svg.util.GlfSVGPrettyPrint), you will also need to add the glf.jar file to your classpath. However, this is not required to run the examples.

  • Where is sun.awt.image.Image in Java5?

    Hello,
    I'm trying to compile a package using Java 5, which was before compiled with 1.4. I geth the error "sun.awt.image.Image cannot be resolved or is not a valid superclass".
    I found that class in 1.4.2, but not in 1.5. Is there an substitution for that?
    Regards,
    Kai

    Look in:
    java.awt.Image and java.awt.image for your needs and remember the sun.* packages are not guarenteed to be supported or be the same from version to version.

  • Com.sun.awt.AWTUtilities run in ubuntu

    com.sun.awt.AWTUtilities.setWindowOpaque();
    when i want to run the above script in ubuntu, it raise exception:
    Exception in thread "main" java.lang.IllegalArgumentException: The window must use a translucency-compatible graphics configuration
    at com.sun.awt.AWTUtilities.setWindowOpaque(AWTUtilities.java:371)
    at runtext.<init>(runtext.java:40)
    at runtext.main(runtext.java:67)
    i use Ubuntu8.04 and GNOME2.22.2
    how can i fix this problem?

    You know that saying about "when to break the rules ...", don't you? I mean, come on, this class is advertised in a public tech tip article from a SUN employee. Normally, you do not advertise stuff you don't want people to use.

  • Sun.awt.windows.WToolkit$ModalityListenerList

    Everytime I try to start a java program, the java program freeze.
    I tryed
    java -verbose -jar FileChooserDemo.jar (which comes with the java development kit. (1.3.02) )
    It freezes when it comes to :
    [Loaded sun.awt.windows.ModalityListener from C:\Program Files\JavaSoft\JRE\1.3.1_02\lib\rt.jar]
    [Loaded sun.awt.windows.WToolkit$ModalityListenerList from C:\Program Files\JavaSoft\JRE\1.3.1_02\lib\rt.jar]
    Anybody got any ideas why ?
    Agner (denmark)

    I have reinstalled JDK 3 times. (at least). I've tryed every version of JDK 1.3.

  • Sun.awt.SunTooljit documentation

    I'm working to modify a program that uses sun.awt.SunToolkit package . This one is implemented in the release 1.3.0 of the JDK for Windows and it is no more supported by Sun. Now I need his documentation to know how to use it, because I cannot entirely rewrite it...
    Someone could help me?

    I think your best bet may be to RTFS.
    You can get the source to the JDK from the community download area, and read the Java and the C sources yourself to figure out what they do..

  • Sun.awt.windows.WToolkit

    what is this
    sun.awt.windows.WToolkiti cant find it in the API, i am having a IOExeption related to this and as i dont know what this is responsible for i cannot work out how to fix it!
    Dori

    It's probably a concrete implementation of java.awt.Toolkit. Usually you just use the Toolkit type and don't care about the concrete implementation.
    Judging from your previous thread, you probably have a problem with serialization somewhere. You seem to store a Toolkit instance in an object that you try to serialize. Again the same solution is applicable: Mark the field as serializable.
    And please stay with the original thread in the future. Context is important and helps others help you.

  • Problems and Workarounds from Sun Workshop[tm] 6 update 2 C++ Compiler Read

    Hello out here,
    the Sun Workshop[tm] 6 update 2 C++ Compiler Readme says
    in Chapter E. Problems and Workarounds
    and
    Topic 4. Reference From Template to Non-Global File-Scope object is Not Supported:
    A program using templates and static objects causes link-time errors of undefined
    symbols. The compiler currently does not support reference to non-global file-scope
    objects from templates.
    So my problem is:
    I have static tyname objects in Templates and get that link-time errors of undefined
    symbols.
    And I do not know how to get rid of that static typename objects.
    Is there a Workaround?
    Which?
    P l e a s e h e l p.
    If you need further information, please let me know.
    Any help is appreciated.
    Thanks in advance.
    Yours truly
    Karsten J. Martin

    Hello,
    Thank you for your detailed answer!
    Unfortunately there has arosen another problem while
    migrating from 4.2 to SunWorkshop[tm] 6 update 2 C++ Compiler.
    Here comes the original(4.2) code:
    template <class PersistObject>
    class DIDDatabaseInterface : public DIDPersistenceInterface<PersistObject>
    private:
         DIDTableObject<PersistObject>     m_tableObject;
    public:
    It does not compile under Version 6.
    Now the new version:
    template <class PersistObject>
    class DIDDatabaseInterface : public DIDPersistenceInterface<PersistObject>
    private:
    typedef     DIDTableObject<PersistObject> PersistTable;
    static typename DIDDatabaseInterface::PersistTable m_tableObject;
    public:
    That compiles until...
    "did_factory.cc", line 73: Information: Instantiating DIDDatabaseInterface<Devx003>::DIDDatabaseInterface(const RWDBConnection&)
    "did_persist.cc", line 81: DIDDatabaseInterface<Devx003>::m_tableObject cannot be initialized in a constructor.
    Here comes line 81 and surroundings(compiles under 4.2):
    template <class PersistObject>
    DIDDatabaseInterface<PersistObject>::DIDDatabaseInterface(const RWDBConnection &c)
         :     DIDPersistenceInterface<PersistObject>(),
              m_tableObject(c)
    Any idea?
    I would be grateful if you could help.
    Thank you so much.
    Sincerely yours
    Karsten J. Martin

Maybe you are looking for

  • What should I know about getting my imac and powerbook repaired?

    Hello again, Just an update re my 2 computers. My macbook pro that refused to "wake up" or start has returned from apple and diagnosed as a problem with my "logic board" and has been returned repaired in warranty. My imac who exhibited the ticking so

  • My US ATV in the UK isn't working properly. Can anyone advise please?

    My friend bought me an ATV from the US, but I can't seem to get it to work properly. It's plugged into a US-UK adaptor, powers up fine, got past the point where I connect to my network. It's just when I get to the main menu screen, it freezes up - st

  • Command in windows to file shared file storage name?

    Hi, We have a number of windows servers that are mounted to netapp or sun storages.  We need to find a command in windows that give us the name of the shared storage. We tried wmic but this give me the information of the c d drive but not the shared

  • Adjustment Brush Shapes

    It would be handy to be able to draw out a shape like an spline shape (as in LightZone) with edit points rather than always have to paint things in. I find the auto mask handy but not that accurate and quite a fiddle to go back around edges with a li

  • Currency to Non Leading Ledger

    Friends, I want ot give the USD currency to my non leading ledger. how should i do that? Please give me IMG path also. My co  code currency is INR. For my non leading ledger i want to give UDS currency. Right now posting in non leading ledgers are al