Applet loads full jar instead one resource

Hi,
i noticed that applet load full jar file instead loading one image!
i load images with:
InputStream in = this.getClass().getResourceAsStream(kaynakAdresi);how can i fix this?

This will happen if the Jar is not being properly cached. Check your settings for the Plug-In and the browser; also check the headers are being sent correctly from the web server - if the expiry time etc are missing then the browser will not cache the file. Look up an HTTP sniffer if you need to trace the headers.,

Similar Messages

  • XL Reporter not loaded in SAP Business One Resource Error

    Hi to forum,
    I have installed SAP B 1 and using SQL Server 2k for database. I have got problem loading time of add-on i.e. XL Reporter below given error occur. Any expert can guide me to resolve this.
    (1) Unable to connect SAP Business One
         The requested lookup key was not found in any active activation context
    (2) then message shows " Unable to connect DI " , Resource Error
    Awaiting your help..
    With Warm Regards,
    Chintesh Soni
    Intellicon Pvt. Ltd.
    Gandhinagar, Gujarat, India.

    Hi Runar,
    Most of the times this message appears to users who have got .Net Framework 1.0 and 2.0 installed on their machines at the same time. That actually confuses the XL Reporter on which to run. I would recommend creating an XML file with the name as "SBOXLReporter.exe.config" and save it at the following XLReporter working location
    C:\Program Files\SAP\SAP Business One\AddOns\XLR\XLReporter\Client\
    Make sure u paste the following text as it is in that XML File and save it and then run XLReporter. Hope it works out.
    <?xml version="1.0"?>
    <configuration>
    <startup>
    <supportedRuntime version="v1.1.4322"/>
    <supportedRuntime version="v1.0.3705"/>
    <requiredRuntime version="v1.0.3705"/>
    </startup>
    </configuration>
    Reagrds
    Rizwan Hafeez
    Team Lead
    SAP Addon Development Section
    Abacus Consulting - Pakistan

  • Applet freezes while Jar is loading

    Hi everyone,
    I have a fundamental question concerning the loading mechanism of an applets resources.
    The problem is as follows:
    I have two jars, the first containing all *.class files, the second (size: 10MB) containing only graphics and sounds.
    I start the applet with this code:
    <APPLET ARCHIVE="init.jar,resources.jar" HEIGHT="100" [...]>Of course the point is to have the small init.jar loaded fast an display a loading animation while the big file is beeing loaded in the background. Up to here everything works as expected. When i start the applet, the init.jar is loaded and displays a loading animation as long as i try to get a resource from the resource.jar.
    When I do that, my applet freezes while the big resource.jar file is beeing downloaded.
    This is how i access the resource in the resource.jar
    public void run() {
         while(/*some condition*/) {
              // this is the line which blocks until whole jar is downloaded
              java.io.InputStream input = this.getClass().getClassLoader().getResourceAsStream(/*resource String*/);
              // use input to load resource
    }The freeze happens only upon the first time the while-loop runs, after that the resource.jar is chached and access is almost instant.
    Now the concrete problem is, that the applet freezed in all its threads while the jar is beeing downloaded. I NEED to display an idle animation while this is done.
    Has anyone any suggestion how i can avoid the complete freeze?
    I have already concidered to load the resources without specifing the jar in the HTML-ARCHIVE-Tag, this works becouse of the codebase i can load the ressources from, but the problem is, that these resources have a large overhead from the server to the client until i can use them in the program.
    Also it is no option to load them all on startup in another backgound thread (which would slove the freeze problem, i tried it), becouse i have to dynamically load and unload these resources to avoid OutOfMemory-Errors. Reloading them brings the overhead-Problem up again.
    Only when i specify the 2nd jar in the ARCHIEVE-Tag i have direct access to the browsers chache without wasting memory when holding references to all resources.
    After all every loading and stuff works, there are no errors in the programm only this strange behaviour. I Also tried it with different VMs, on different OS, and different Browser, all the same.
    I would be glad if someone could give me a hint on this, i've been searching for days now, even tried to analyse the Classoader sources but ended up in sun's native calls...
    Thank you in advance
    - Loddi

    I've been encountering the same problem and I think I've figured out the reason behind it and how to solve it.
    It appears that the class loader can only ever load one resource at a time. Once you've forced it to start downloading resources.jar, it can't load any classes until that download has finished, not even classes that are part of the Java API. In your case I believe the solution would be to display one loop of your idle animation before you start loading resources.jar, to make sure that everything the idle animation needs has already been loaded by the class loader.

  • Loading applet for a jar within an ear

    Hi,
    Apologies if my question sounds ignorant, this is the first time i'm playing with applets.
    I'm trying to load an applet from a JAR (applet.jar) which contains all the files specific to the applet. The applet.jar resides within an ear (application.ear) which is deployed on JBoss.
    The applet related stuff is in the package com.dms.applet (which makes up the applet.jar)
    My index.html resides in a war file (webapp.war), which essentially contains a bunch of servlets. Index.html is a two frame page, which tries to load the applet in one frame and a servlet in another (servlets work fine).
    My <APPLET> tag for the frame in which the applet is displayed (is another html file - applet.html) looks something like this:
    <html><body>
    <APPLET
         code="com.dms.applet.NavigationApplet.class"
         codebase=./"
         archive="applet.jar, application.ear"
         width=200
         height=500
    >
    </APPLET></body></html>
    however, the applet always fails to load, i get the following exception when i open the java console:
    java.lang.ClassNotFoundException:
    com.dms.applet.NavigationApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    load: class com.dms.applet.NavigationApplet.class not found.
    java.lang.ClassNotFoundException:
    com.dms.applet.NavigationApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    It seems evident that the applet class loader can't find my applet.class and hence can't load it. I guess that its something wrong with my <APPLET> tag, but can't quite seem to get my finger on it. Do i need to explicitly tell the class loader to look for it in the applet.jar which is in the applicatin.ear?
    Any help would be very much appreciated.
    Thanks in advance
    EnterpriseJavaBones

    Hi,
    I managed to fix this problem. For those who mite come across the same issue in the future, this is how i did it.
    I put the applets code in the war file under an applet dir. That the the index.html is in the root (of the war dir) and the applets code is in a /applet dir.
    Hence the codebase simply reads, codebase="applet/"
    Cheers
    EnterpriseJavaBones

  • Applet not loading from JAR?

    Well, I've been having a bit of a problem with embedding my applet into a webpage. My applet tag looks like this:
    <applet archive="poke.jar" code="a.class" width=550 height=600>
    <param name=cachelistsrcdir value="http://io9labs.com/poke/cache">
    </applet>and when I access the page, I set the trace level to 5 in the Java Console, and look into it and see the following:
    basic: Stopping applet ...
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@61db2b
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@1df377e, refcount=0
    basic: Caching classloader: sun.plugin.ClassLoaderInfo@1df377e
    basic: Current classloader cache size: 3
    basic: Done ...
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    basic: Quiting applet ...
    basic: Joined applet thread ...
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@1df377e, refcount=1
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@c710ba
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: completed perf rollup
    network: Cache entry not found [url: http://io9labs.com/poke/a.class, version: null]
    network: Connecting http://io9labs.com/poke/a.class with proxy=DIRECT
    network: Connecting http://io9labs.com/poke/a.class with cookie "PHPSESSID=831a2067577cfe38db085b2566c36631"
    network: Cache entry not found [url: http://io9labs.com/poke/a/class.class, version: null]
    network: Connecting http://io9labs.com/poke/a/class.class with proxy=DIRECT
    network: Connecting http://io9labs.com/poke/a/class.class with cookie "PHPSESSID=831a2067577cfe38db085b2566c36631"
    load: class a.class not found.
    java.lang.ClassNotFoundException: a.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    basic: Exception: java.lang.ClassNotFoundException: a.classIt seems as though it's trying to load the applet from the actual directory, instead of the JAR. Any ideas on why this is happening? Thanks in advance for your help.
    Also, the applet is located at http://io9labs.com/poke/

    I'm using Mozilla Firefox 3.0.1 on Windows XP with SP2. I tried running it with IE7 and it gives me the same exact problem. It can't be my browser because it loads JAR'ed applets on any other webpage just fine.
    I tried it with a non-obfuscated JAR, and it STILL gives me the same error. Do you have any ideas as to why it would choose to ignore the archive attribute?
    EDIT: I think it might be because I signed it improperly, lemme try that.
    EDIT2: Nope, still doesnt work
    EDIT3: Problem solved, it was because the JAR needed a unique name, and i already had a jar of the same name in my cache.
    Edited by: io9_ on Aug 20, 2008 11:17 AM

  • Loading External JAR librarys in an applet

    HI all,
    I have an application that I would like to add an excell extention to. The extension is in the form of a JAR file, and I only want my applet to load this jar file when a menu item has ben clicked. I do not want the jar file to be loaded together with the rest of the application, because it is large, and unessisary for normal applet operation. Anyone have an idea how to do this?
    Thanks in advance.
    -percious

    I don't think this is exactly what I am looking for.
    I want something that only downloads the .jar file if
    the user chooses an option in a menu. That way
    normal users will not have to download unessesary
    items. I believe indexing will select appropriate
    classes from a jar file the first time the applet is
    initialized.
    -perciousOn the contrary, I believe it is what you want. This is from the first google hit on "jar indexing":
    JAR indexing
    If an application or applet is bundled into multiple JAR files, the class loader uses a simple linear search algorithm to search each element of the class path, which may entail the class loader downloading and opening many JAR files until the class or resource is found. If the class loader tries to find a nonexistent resource, all the JAR files within the application or applet will have to be downloaded. For large network applications and applets this could result in slow start up, sluggish response, and wasted network bandwidth.
    [Since JDK 1.3, the JAR file format has supported indexing to optimize the process of searching for classes in network applications, especially applets. The JarIndex mechanism collects the contents of all the JAR files defined in an applet or application and stores the information in an index file in the first JAR file. [b]After the first JAR file is downloaded, the applet class loader will use the collected content information for efficient downloading of JAR files. This directory information is stored in a simple text file named INDEX.LIST in the META-INF directory of the root JAR file.
    http://www-106.ibm.com/developerworks/library/j-jar/

  • Applet loading Failed .... for diagnostics-console-extension.jar

    Hi everybody,
    i downloaded diagnostics-console-extension.jar from bea site. i copied this file to D:\bea9.0\user_projects\domains\mydomain\console-ext. i started weblogic server . in administration console when i clicking WLDF console extension tab it gives the Applet loading failed....and also in server console it gives an exaception as follows ""
    java.lang.ClassNotFoundException: jsp_servlet._com._bea._diagnostics._dashboard.
    __chartpanelapplet_class.
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:512)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:224)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(Servlet
    StubImpl.java:383)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:298)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
    a:165)
    Truncated. see log file for complete stacktrace
    >
    in Java console output Exception
    Java Plug-in 1.5.0_06
    Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\mselvan
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.lang.ClassFormatError: Truncated class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception in thread "Thread-5" java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletException(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception in thread "thread applet-com.bea.diagnostics.dashboard.ChartPanelApplet.class" java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletException(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    so kindly any one help for the same.please help me
    Thanks & regards
    Selvan.M

    Several issues with the diagnostic console extension have been fixed in WLS 9.2. Can you try the extension from 9.2? WLS 9.2 is now ready for download from the BEA site.
    Thanks

  • HT1175 Time Machine wants to start with a new, full backup instead of using the existing one

    Hi, my Time Machine wants to start a new, full backup, instead of continuing with the existing one on the time Capsule.
    Looking a the Troubleshooting guide, I've found the following piece of info, which is, as 99% of the times with the troubleshooting guides, totally useless to resolve my problem...
    Message: Time Machine starts a new, full backup instead of a smaller incremental backup
    There are three reasons why this may occur:
    You performed a full restore.
    Your Computer Name (in Sharing preferences) was changed--when this happens, Time Machine will perform a full backup on its next scheduled backup time.
    If you have had a hardware repair recently, contact the Apple Authorized Service Provider or Apple Retail Store that performed your repair. In the meantime, you can still browse and recover previous backups by right-clicking or Control-clicking the Time Machine Dock icon, and choosing "Browse Other Time Machine disks" from the contextual menu.
    It should be noted (hence the uselessness of the guide) that:
    -I haven't performed ANY full restore
    - I havent changed my computer name
    - My computer has not had ANY repair, much less a hardware repair. Neither recently, nor in the 9 months I've owned it.
    Which puts me back to square one, with the marginal improvement that now I have a way of browsing my old backups.
    In the event I decide to start all over again, will there be a way for me to "sew" the two backup files?
    Or will I always have to go the silly way around?
    Anybody has any idea?
    Thank you for your time (machine/capsule, your choice;-)

    Hi John,
    no, that doesn't have anything to do with my problem.
    Just look at the image below.
    Time Machine thinks that the disk I've always used to do my backups has none of them.
    If I open the disk with Finder, obviously they are where they should be.
    It is even possible to navigate them as per the instruction reported above, but even following Pondini's advice #s B5 and B6 (which are more applicable to my problem) didn't solve the problem.
    Actually, not being a coder, I'm always scared of doing more damage than good when I have a Terminal window open.
    My question is: how is it possible that Apple hasn't thought of some kind of user command to tell the idiotic Time Machine software that a hard disk backup is a hard disk backup, no matter what?
    Estremely frustrating and annoying: I'm wasting HOURS in trying to find a solution to a problem that should not have arisen in the first place...
    Have a nice weekend
    Antonio

  • HT5557 My Ibooks has started acting up!! I have purchased 2 books this weekend, and neither one will open, they say, failed to load book because the requested resource is missing. I have deleted the book, and re downloaded it, and I have even deleted the

    All the purchased books in my iBooks app have stopped opening. The message, FAILED TO LOAD BOOK BECAUSE THE REQUESTED RESOURCE IS MISSING, comes up!!
    I have deleted the book, and redownloded it, and have even deleted the entire app and redownloaded it as well!!
    Does anyone have an helpful suggestions??

    I am having the same issue in my iPad Mini with iOS 7. I have deleted the same books and redownloaded them several times and still have the same problem.

  • Java 1.5_13 applet loading problem due to 'activate control' fix

    I updated my JRE to Java 1.5 revision 13, and it seems to introduce a new problem. In order to fix the "click here to activate this control" problem in internet explorer, I iterate the document model and set the outerHTML of the applet tag to the same outerHTML. This removes the annoying rectangle in IE. This also causes the applet to load and break down the first time the page is displayed, because IE removes the old applet instance and creates a new one when replacing the outerHTML. When this happens on the new Java JRE release, an exception is thrown to the user saying:
    java.lang.NullPointerException
         at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    The applet loads correctly, but the message should not be displayed. Also, it only seems to happen sometimes (maybee because sometimes the applet does not yet start before IE runs the script to replace its contents)
    Full lifecyle from the console panel:
    basic: Registered modality listener
    basic: Registered modality listener
    liveconnect: Invoking JS method: document
    liveconnect: Invoking JS method: URL
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@181fbd6, refcount=5
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@982291
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: Unregistered modality listener
    basic: Stopping applet ...
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@982291
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@181fbd6, refcount=4
    basic: Done ...
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    java.lang.NullPointerException
         at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Exception: java.lang.NullPointerException
    java.lang.NullPointerException
         at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Joined applet thread ...
    basic: Unregistered modality listener
    basic: Quiting applet ...
    basic: Registered modality listener
    liveconnect: Invoking JS method: document
    liveconnect: Invoking JS method: URL
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@181fbd6, refcount=5
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@1347dad
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    Does anyone know how to fix this new issue? Or does anyone know of a better way to solve the 'activate control' problem in IE that does not cause the reloading of this applet?
    Thanks.

    Hi!
    *1 -* Poor_Sitar_player's solution that i used.
    a - Build the applet's comented code into a div ...
    </div id='555>
    <!--
    <body>
    <applet name="EditoRTFa.class" id='editor' archive="../pages/expediente/Modelo/Editor/EditoRTFa.jar"
    code="br.gov.pa.tj.processo.expediente.casos.editor.EditoRTFa.class" width="750" height="550">
    </applet>
    <body>
    -->
    </div>
    b - After, insert a javascript the will remove the coments....
    <script type="text/javascript">
    var x = document.getElementById('555');
    var texto = x.innerHTML;
    texto = texto.replace('<!--','').replace('-->','');
    x.innerHTML = texto;
    <script type="text/javascript">
    *2 - Another solution*
    If you are using struts2 or your applet is inside a internal frame, is possible that the above solution will not work.
    So, the solution that i found was place the applet code in the main page, with width and heigh iguals "*0*" and style="float: left;" to hide the applet.
    This way, the applet will be load before you call the right page.
    That's all.
    Edited by: carlosmcp on Oct 14, 2008 7:01 AM

  • Multiple instances of the same applet loaded causes problem

    I have a java applet that has several classes in the project. The applet has a JTable a JButton and a JLabel control. The applet is displayed within an HTML page. The problem is that if a user opens the same html page more than once with the applet in it, only the last applet loaded receives the screen updates.
    For example in one senario. I have an error message that displays in the Label control once they click on the button.
    The user opens the html page and the applet is loaded (window 1). The user then opens the same html page again (window 2) with window 1 still open. If the user clicks on the Button in window 1, the error message is displayed in the window 2 applet.
    Originally I had some static variables. Thinking it was being used globally by the JVM so I removed all of them and it still happens. I have tried using both the Applet and Object tag. But it still happens.
    Has anyone experienced this before? Any suggestions on how to make the applet update the instance that recieved the events and not just the last one that was loaded?

    You need to look at applet classloader issues. If applets have the same archive list and come from the same codebase, they have the same classloader. A class is namespaced by it's class + classloader. Any statics in a class with a classloader will be shared. If you instead make it such that your applets have unique classloaders (which you can't change for unsigned applets by yourself) by changing the codebase, that would be one solution.
    For other solutions, I recommend searching the forum. This issue comes up a lot.

  • Loading plsql_proxy.jar takes so long..never ends

    Hello people,
    I´m deploying a proxy cliente using command,
    jpub -u SCOTT/SCOTT -sysuser SCOTT/SCOTT -proxywsdl=any_wsdl -endpoint=any
    then the executing process stay in Load plsql_proxy.jar for a long time. it looks like never ends.
    plsql_wrapper.sql
    plsql_dropper.sql
    plsql_grant.sql
    plsql_revoke.sql
    Executing plsql_dropper.sql
    Executing plsql_wrapper.sql
    loading sqlj/lib/dbwsclient.jar (about 5 minutes)...
    Loading plsql_proxy.jar......................
    the execution process looks like stopped at this here and doesn´t throw any exception.
    I´ll be grateful the soon answer.
    Rodius
    anybody knows how long takes the proxy client generation process?

    I have this issue also, with images from my D70 (~6 megapixels) ... no solution, except that when it happens, quitting and re-launching Aperture seems to clear it up for a while, at least until it happens again.
    Given that you have almost twice the RAM and four times the CPU cores that I have, I suspect this is a software issue, and not one of insufficient hardware resources.  :-)

  • Class not found in applet using 2 jar files

    I have an applet which has been working for years as a stand alone or connecting directly to a derby database on my home server. I have just changed it to connect to MySQL on my ISP server via AJAX and PHP.
    I am now getting a class not found error in my browser, probably because I'm stuffing up the class path.
    The HTML I am using to call the applet is:
    <applet code="AMJApp.class"
    codebase="http://www.interactived.com/JMTalpha"
    archive="AMJ014.jar,plugin.jar"
    width="500"height="500"
    MAYSCRIPT style="border-width:0;"
    name="jsap" id="jsap"></applet>The AMJ014.jar contains the applet and supporting class files.
    The error message is strange to me because it refers to a class I noticed on another web page but which has nothing to do with my applet. Anyway, the message in full is:
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.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)
    Exception: java.lang.ClassNotFoundException: NervousText.class
    java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$100(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 sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.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)
    Exception: java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0

    Thanks again.
    The page code is:
    <html>
    <head>
      <title>Applet to JavaScript to PHP</title>
    </head>
    <body>
    <script type="text/javascript">
    function updateWebPage(myArg)
    document.getElementById("txt1").innerHTML=myArg;
    if (myArg=="")
      document.getElementById("cbxItem").innerHTML="";
      return;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        document.getElementById("cbxItem").innerHTML=xmlhttp.responseText;
    xmlhttp.open("GET","putitem.php?id="+myArg,true);
    xmlhttp.send();
    </script>
    <form>
    <table border=1 align='center' cellpadding=0 cellspacing=0 >
    <tr><td style='text-align:center; background-color:#C0C0C0'>Compiled Java Applet</td></tr>
    <tr><td><applet code="AMJApp.class" codebase="http://www.interactived.com/JMTalpha" archive="AMJ014.jar" width="500"height="500" MAYSCRIPT style="border-width:0;" name="jsap" id="jsap"></applet> </td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML Textbox filled by JavaScript</td></tr>
    <tr><td><textarea style='width:500px; height:50px' name='txt1' id='txt1'>Query goes here</textarea></td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML diagnostic messages rendered by PHP script</td></tr>
    <tr><td><div id="cbxItem">PHP info will populate this space</div></td></tr>
    </table>
    </form>
    </body>
    </html>The URL of the problem page is:
    http://www.interactived.com/JMTalpha/AMJTest.htm
    The code in the page is based on the following test page, which works:
    http://www.interactived.com/test5Applet.htm
    And the Applet, before I made any changes can be seen at this address:
    http://www.interactived.com/jartest0906.htm
    Thanks again for you interest.
    Edited by: 886473 on 21-Sep-2011 00:47

  • Sample weblogic-ejb-jar.xml for Resource-ref EJB 3.0

    I am trying to create an MDB that can be re-used under different names.
    @MessageDriven(description = "An MDB that transfers messages from one Queue to another", activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue") })
    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    public class TransferMdb implements MessageListener {
    private static final Logger LOG = Logger.getLogger(TransferMdb.class);
    @Resource(name = "jms/connfactory")
    private ConnectionFactory connectionFactory;
    @Resource(name = "jms/targetDestination")
    private Queue targetDestination;
    <ejb-jar version="3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_3_0.xsd">
    <enterprise-beans>
    <message-driven>
    <ejb-name>TransferMdb</ejb-name>
    <ejb-class>TransferMdb</ejb-class>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>TransferMdb</ejb-name>
    <message-driven-descriptor>
    <pool>
    <max-beans-in-free-pool>200</max-beans-in-free-pool>
    <initial-beans-in-free-pool>5</initial-beans-in-free-pool>
    </pool>
    <destination-jndi-name>test_queue</destination-jndi-name>
    <transaction-descriptor>
    <trans-timeout-seconds>20</trans-timeout-seconds>
    </transaction-descriptor>
    </message-driven-descriptor>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jms/connectionfactory</res-ref-name>
    <jndi-name>connectionfactory</jndi-name>
    </resource-description>
    <resource-description>
    <res-ref-name>jms/targetDestination</res-ref-name>
    <jndi-name>reply_queue</jndi-name>
    </resource-description>
    </reference-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    However when I deploy the above, I get exceptions such as:
    problem: cvc-complex-type.2.4a: Expected elements 'initial-context-factory@http://www.bea.com/ns/weblogic/weblogic-ejb-jar provider-url@http://www.bea.com/ns/weblogic/weblogic-ejb-jar connection-factory-jndi-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar jms-polling-interval-seconds@http://www.bea.com/ns/weblogic/weblogic-ejb-jar jms-client-id@http://www.bea.com/ns/weblogic/weblogic-ejb-jar generate-unique-jms-client-id@http://www.bea.com/ns/weblogic/weblogic-ejb-jar durable-subscription-deletion@http://www.bea.com/ns/weblogic/weblogic-ejb-jar max-messages-in-transaction@http://www.bea.com/ns/weblogic/weblogic-ejb-jar distributed-destination-connection@http://www.bea.com/ns/weblogic/weblogic-ejb-jar use81-style-polling@http://www.bea.com/ns/weblogic/weblogic-ejb-jar init-suspend-seconds@http://www.bea.com/ns/weblogic/weblogic-ejb-jar max-suspend-seconds@http://www.bea.com/ns/weblogic/weblogic-ejb-jar security-plugin@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' instead of 'transaction-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' here in element message-driven-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar:<null>
    problem: cvc-complex-type.2.4a: Expected elements 'transaction-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar iiop-security-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar resource-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar resource-env-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar ejb-reference-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar service-reference-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar enable-call-by-reference@http://www.bea.com/ns/weblogic/weblogic-ejb-jar network-access-point@http://www.bea.com/ns/weblogic/weblogic-ejb-jar clients-on-same-server@http://www.bea.com/ns/weblogic/weblogic-ejb-jar run-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar create-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar remove-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar passivate-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar jndi-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar local-jndi-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar dispatch-policy@http://www.bea.com/ns/weblogic/weblogic-ejb-jar remote-client-timeout@http://www.bea.com/ns/weblogic/weblogic-ejb-jar stick-to-first-server@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' instead of 'reference-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' here in element weblogic-enterprise-bean@http://www.bea.com/ns/weblogic/weblogic-ejb-jar:<null>
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:234)
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:221)
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:146)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
    Truncated. see log file for complete stacktrace
    I am clearly missing items in the weblogic-ejb-jar.xml. If anyone has a sample or tips, that would be awesome as a starting point.

    Those tags just declare that you are using our CMP provider and that
    your descriptor is in META-INF/weblogic-cmp-rdbms-jar.xml.
    FWIW, you might also want to check out EJBGen. It tends to keep more up
    to date with WLS than xdoclet.
    -- Rob
    Gen wrote:
    I am using xdoclets to generate descriptor file weblogic-ejb-jar.xml
    for a BMP entity bean. Xdoclet is generating the descriptor file
    alright, but is putting the following extra tags. This happens even
    for samples which come with the download, so my tags in java file are
    not wrong.
    My question is, are the extra tags below harmless, or should I
    manually go to each desciptor file and remove them?
    Thanks.
    ----------- EXTRA TAGS GENERATED START ---------
    persistence> <persistence-type>
    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>6.0</type-version>
    <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
    </persistence-type>
    <persistence-use>
    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>6.0</type-version>
    </persistence-use>
    </persistence>
    ----------- EXTRA TAGS GENERATED END ---------
    ----------- TAGS I PUT IN JAVA CLASS START --------
    * @ejb:bean name="com.ejb.entity.Customer"
    * jndi-name="com.ejb.entity.CustomerHome"
    * view-type="remote"
    * type="BMP"
    * primkey-field="com.ejb.entity.CustomerPK"
    * reentrant="false"
    * @weblogic:cache
    * max-beans-in-cache="1000"
    * read-timeout-seconds="900"
    * concurrency-strategy="ReadOnly"
    ----------- TAGS I PUT IN JAVA CLASS END --------

  • Applet loading in IE vs Firefox

    Hello!
    I have a peculiar problem. I have several web pages containing lots of applets which via static methods register to a "master" applet which in turn collects information from a remote source and then updates the registered applets periodically.
    Well this works fine, however the load times in IE are outrageous, it can take up to 2 minutes or so before a page with approxiamtely 20 applets is fully loaded. Whilst the same page takes about 2 seconds in firefox. I should also mention that when the page has been loaded in IE it works just as well as it does in firefox. The only problem is that it takes all to long for the page to load.
    What could be the explanation of this? What is the fundamental difference in IE compared to firefox when applets are loaded?
    Does anyone have some sort of clue about this one?
    /HG

    cell@tech wrote:
    When I navigate to the site in IE and click on the link the applet loads, but when I navigate to the site in FireFox3 it displays the html code. My FireFox browser runs applets just fine on other sites, so is there something else I need to put in the html code for FF3?Works fine with FF2.
    Try to add a BODY to your HTML.
    <html>
    <body>
    <applet height="600" width="600" code="com.program.startup.Starter.class">
    <param name=archive value=http://www.wheeling22.adventistchurchconnect.org/site/1/directory/WheelingWebSite.jar /> Your browser does not support the <code>applet</code> tag. </applet>
    </body>
    </html>Bye.
    RG.

Maybe you are looking for

  • Why did I have to fire BT at my inconvenience beca...

    I logged a complaint in March 2011 and was told BT would respond within 10-14 days. To date(June 2011) I have still had no correspondence. I dug my heals in and refused to pay the amount that the dispute is over. Ater several disruptions to my intern

  • Error in the UWL while approving the leave.

    Hi all,                     We configured the ESS business package.UWL is configured and the leave requests are coming into the UWLo of approver.But when he is trying to approve it is giving the error . URL http://hostname  of backend system: 8000/we

  • How do I refer to a user defined field in a query  (using $ notation) ?

    if i have a user defined field in Invoice header called U_Test, and if I need to read it using a query (to be used on a formatted search). I am not quite sure of the syntax. can anyone help please? I tried $[$U_Test.0.0]  which is the accepted way wi

  • Cancel of PO

    Hi Gurus, Is there anything called :Cancellation of PO? There is T.Code MBST via which we can cancel/reverse GR and other documents. But, if we want to cancel PO and/or P.Reqs  which are created in Production box, what is the way? Thanks, Kumar

  • Batch conversion of CR2 to JPG

    I am trying to automate a batch conversion of CR2 files to jpg files in Photoshop CS4.  I have converted them to dng.  When I open them in CS4, it opens the Canon photo editor, but will not record the actions. Is there another way to automate this?