Dependency JAR debugging in JWS operation: Eager/Lazy downloads

I'm trying to see if there is a way to watch which .JARs is downloaded as a program runs. However, if there are [import] statements in the main class, wouldn't the dependency .JARs be downloaded anyway? I just want to test the download patterns of a JWS application and see its results.
Specifically, I want to know when the JAR was downloaded in the course of runtime.
Currently, I have a main JAR and 3 dependency JARs; each JAR contains only one package with only one class within it. The main JAR will call methods from 2 of the 3 dependency JARs, which simply return strings to be printed to a console that is instantiated in the main class/JAR.
In the JNLP file, I will toy with the lazy/eager download settings for each of the dependency JARs, testing its behavior when each of the JARS are downloaded eagerly and lazily, with one of the JARs acting as control.
Is it possible to print the downloaded/not-downloaded status of each JAR to the console in my main class? Is there more I can do to this code so it can display whether or not JARs have been downloaded, and in what order?
//This is the main class. This will be declared as such in the JNLP.
package front;
import javax.swing.*;*
*import java.awt.*;
import java.io.*;
import right.RightOf;
import left.LeftOf;
import back.BackOf;
public class FrontOf extends JFrame{
ObjectOutputStream out;
private JTextArea consoleout;
public FrontOf(){
Container c = this.getContentPane();
consoleout = new JTextArea();
c.add(new JScrollPane(consoleout), BorderLayout.CENTER);
setSize( 300, 150 );
this.setVisible(true);
public void rockout(){ //The test operation. Note the dummy package's operations have been commented out.
RightOf unit01 = new RightOf();
LeftOf    unit02 = new LeftOf();
//BackOf    unit03 = new BackOf();
consoleout.append(unit01.go());
consoleout.append(unit02.go());
//consoleout.append(unit03.go());
public static void main(String args[]){
//This is code for one of the dependency classes/JARs. The other two are identical except for names and strings.
package left;
public class LeftOf {
    String debug;
    public LeftOf(){
        debug = new String("UNIT 01 ACTIVE");
    public String go(){
        return debug;

jkc532 wrote:
.. Is the fact that the CachedJarFile class doesn't attempt to reload the resource when it can't retrieve it from MemoryCache a bug? From your comprehensive investigation and report, it seems so to me.
..I've dug as deep as I can on this and I'm at wits end, does anybody have any ideas?Just after read the summary I was tired, so I have some understanding of the effort you have already invested in this (the 'wits' you have already spent). I think you should raise a bug report and seek Oracle's response.

Similar Messages

  • Debugging JNLP lazy download

    Hi everyone,
    I'm having issues with lazy downloading: it doesn't work in our (rather complex) application with multiple JARs, including third party JARs, all signed with same certificate. When I tested lazy loading with simple application which included two signed JARs, it worked as expected.
    My guess is that some class is requesting a resource which doesn't exist and web start is then loading all JARs, even lazy ones, trying to find that resource.
    I could see on this forum people are talking about log files listing classes and other resources being requested by JWS, but I can't seem to enable this info to be logged. I've turned on logging and tracing in java control panel. I also tried running web start by using javaws with both -verbose and -J-verbose:class arguments. I also tried adding
              <property name="javaws.debug.0" value="+TraceSecurity" />
              <property name="javaws.debug.1" value="+TraceCache" />
              <property name="javaws.debug.2" value="+TraceDiskCache" />
              <property name="javaws.debug.3" value="+TraceDownload" />
              <property name="javaws.debug.4" value="+TraceXMLParsing" />and java-vm-args="-XX:-TraceClassLoading -XX:-TraceClassLoadingPreorder -XX:-TraceLoaderConstraints" to JNLP file but it didn't help.
    I'm kind of getting desperate trying to figure this out, so any help would be appreciated. Thanks.

    Yes, main JAR contains index of all used JARs and additional JARs have been marked as belonging to different part.
    I managed to find a problem: I've been using ant to generate JAR index, which didn't add folder information to JAR index. Eg. inside jar task I had something like:
    <indexjars>
         <fileset dir="${websites}/lib/">
              <include name="jdom.jar" />
         </fileset>
    </indexjars>However, when index file was generated it listed jdom.jar without subfolder in which it's located (jdom.jar instead of /lib/jdom.jar). I managed to fix this by creating manifest for main jar and adding all additional JARs to it's classpath, eg:
    <manifest file="${websites}/ALL-MANIFEST.MF">
         <attribute name="Class-Path" value="/lib/jdom.jar" />
    </manifest>So, lazy downloading is working now.
    However, it would still be nice to know how to display class loading information (-verbose:class jvm argument) inside Web Start application, as it might be helpful in the future.

  • Lazy downloading broken for updated jar-files?

    Hello,
    Using webstart-6.0 + jar-index + download="lazy" works great - jar files are downloaded on demand when they are really needed.
    However when updating all jar-files, the files that have been downloaded lazily and cached before are downloaded again before the application can be launched, not only on demand.
    Is this the intended behaviour, and is there any way to let webstart lazily download updates, just when the jar-files are needed?
    Thank you in advance, lg Clemens

    Libraries loaded from the j2ee/home/lib directory are opened and loaded at the J2EE container level. So they are accessed from the very start of the server, to the point where it is stopped.
    Therefore if you modify a class library which has already been loaded, you may run into file locking related issues (which will be OS dependent, Windows for example probably won't even let you overwrite the file) so that is what you are likely to be seeing.
    JAR files loaded at the J2EE container level aren't really suitable for dynamic updating -- the classes can be referenced in a multitude of other classloaders.
    As you have seen, replacing a J2EE container level class file, then a restart will be required along the lines of what you have written.
    Stop mid-tier, move new file in and restart?? cheers
    -steve-

  • How to share dependant jars across rars & ears / avoid classcast exceptions

    <b>How can one share dependant jars between a ear application and a resource adapter and avoid getting a ClassCastException? </b>
    <P>
    In some appservers(such as Oracle) the resource adapter is the parent of your ear classloader, so a single instance multiple classloader problem doesn't occur. But in some appservers such as BEA Weblogic this isn't the case. Not sure why BEA decided to make resource adapter class loader seperate and not the parent of ear loader...
    <P>
    If I bundle the resource adapter specific classes in the corresponding module archive file, I will get a class cast exception, becos I will have a <i>single instance and multiple class loader situation</i> (assuming resource adapters uses its own classloader).
    <P>
    Second question related to the above: Web logic documentation recommends that we bundle the common files in APP-INF direcotory for embedded resource adapter apps. If I start bundling the resource adapter in an ear file, for every ear app we will have a rar bundled. What about the JNDI names? won't you have to rename the resource adapter differently for each ear so that there is no jndi name clash? Doesn't this defeat the purpose of having one common connector for all apps?
    <P>
    Here is a detailed description of what I want:
    Let say you have a ear file. Let's say there is a common.jar shared between your ear application (say the ejb module uses it), and your resource adapter.
    <P>
    In the case of Oracle's OC4J I can see there won't be any problem of having this common.jar part of the resource adapter(RA). When the RA class loader loads the rar, it makes sure the common.jar files are accessible in the chain of all class loaders it is a parent of. So, the ear loader, ejb loader etc...will have visibility -> hence no class cast exception.
    <p>
    But what do clients do when they want to have their ear deployable across multiple appservers not just oc4j. BEA recently changed their class loader structure...their resource loader is no longer parent of the ear, so the ejb app in the ear doesn't have visibility into common.jar packaged with rar. So, the only solution was to bundle the common.jar file with the ear. But this causes problems, because we can have a situation where certain object instances (that are not serialized or copied) can be shared across class loaders. This ends up in the single instance multiple class loader situation->hence classcastexception.
    <p>
    The only solution I found was to make the common.jar file a shared library. That way only one copy of the class files are there for both the rar and the ear and its visibility is there not only for rar but for ear since it is loaded by the system class loader or shared library class loader (if ther eis one such).
    <P>
    Please convey best practise recommendation.
    Sudhakar

    Pete <[email protected]> wrote:
    Is there a way to have a non-EJB jar at the EJB classloader level ? Sure, just add it to the Class-Path: manifest entry in your ejb.jar.
    Dimitri

  • How do I deploy dependent jars in a standalone soa server?

    Hi,
    I have deployed a webservice on a standalone SOA server. When I try to execute it I see the following message:
    faultstring>JBO-25002: Definition oracle.apps.cdm.tcaModel.parties.core.model.publicEntity.PartyPEO of type Entity Definition not found</faultstring>
    Dev is saying that we need the dependent jar files on the soa server and has given me some jar files? When I put the jar files in the applib folder, I am not able to restart the webservice.
    Can someone help me on how to resolve this with some detailed steps or pointers? Is that the correct location for putting the jar files? Appreciate your help.

    Hi,
    to me the problem appears that you didn't add the class to the WebService as an additional class to load with the Web Service. At least i JAX-RPC services you can tell the WS configuration which additonal classes are needed. In your case the PartyPEO isn't available (make sure its serializable)
    Frank

  • Browser Capability of JavaFX application with dependancy jars

    Hi,
    I am working in javafx Project, i have an issue in launching the application in browser, getting error to load the dependency jars and dependency projects. Please someone help on this.

    I wonder what you expect to happen now. "Something goes wrong, please someone help". I assure you there are people who would like to help, but with no information at all they really can't do anything.
    So provide more information. What steps are you taking to deploy the application? What error do you get -exactly-; don't try to describe it, post the exact error that you get.

  • Plugin Third party Dependent jars configuration

    Hi,
    We have developed a scheduled task which has thid party dependent jars (jars for webservice client like axis etc). We put this jars under the lib folder which also contains the plugin jar. When we deploy the plugin with plugin registration utility we get classnotfound exception about the third party jars which we already included in the lib directory. What can be the problem here ? any help is strongly appreciated..
    BR,
    Aliye

    If you include Third party jar inside plugin zip it should not produce error.
    However, For Scheduled task Plugin is not required. You upload your Scheduled Task Jar/Third party jar using UploadJars.sh or place inside Scheduled Task,ThirdParty folder.
    Hope currently you have registered your code as plugin. better remove this plugin using ant script or db. and then put your jars at file system and then upload it using UploadJars.sh. Make sure you run
    PurgCache.sh all afterwards.

  • Unable to resolve setting of dependent jar file in ear

    Hi,
    I have an .ear file which as an ejb.jar and dependent.jar file. Now i set the classpath in MANIFEST.MF of ejb.jar and tried to deploy in weblogic server7.0 but my ejb is not able to identity my dependent.jar its throwing class not found error. I even tried setting up classpath even @ my MANIFEST.MF of ear also. still not able to resolve.
    So let me know does dependent.jar in ear is suppoted are not?

    Hello Sanjay,
    This should work without any problems. Can you provide your manifest.mf file?
    Meanwhile, refer to the following link for more documentation about WebLogic classloading
    and how to specify a manifest.mf file to do what you're trying to achieve:
    http://edocs.bea.com/wls/docs70/programming/classloading.html#1073491
    Best regards,
    Ryan LeCompte
    [email protected]
    http://www.louisiana.edu/~rml7669
    Sanjay <[email protected]> wrote:
    Hi,
    I have an .ear file which as an ejb.jar and dependent.jar file. Now
    i set the classpath in MANIFEST.MF of ejb.jar and tried to deploy in
    weblogic server7.0 but my ejb is not able to identity my dependent.jar
    its throwing class not found error. I even tried setting up classpath
    even @ my MANIFEST.MF of ear also. still not able to resolve.
    So let me know does dependent.jar in ear is suppoted are not?

  • Specifying the version of dependent jar file?

    Hi all
    At the moment I am fighting with some class loading issues in a J2EE Appcontainer... Acutally the app server uses a different version of a jar file than my application.. Now the classloader always uses
    the already loaded classes of the AppServers jar Version instead of those that I want..
    I have my application together with the dependent jar packaged together into one jar file... In the manifest I lsit the dependency...
    Now my question is if its possible to explicitly state the version of the package that my jar is dependent of...
    Any help would be appreciated
    regards
    tom

    Vijay
    Acutally I just read through the thread. Actually what I am working on is an J2EE App Containing a couple of EJB (2.0) components in different jars, some utility jars and 2 Wars. All this is packaged together into an ear.
    Now Actually the basic structure is like:
    Ear
    --> WAR1
    --> webinf containing classes and manifest with dependent jars
    --> War2
    --> EJB Jar
    --> metinf containing deployment desc and manifest where the manifest references JDom-b10.jar on the classpath
    --> Also conatiner JDom-b10.jar
    Acutally the JDom.jar is already loaded by the Application Server (Jboss 3.2.3) in its bootstrap loader... I need to have the b10 as otherwise some other 3rd Party stuff of the Ejb is not running...
    Now I expected the classloader to prefer the direct deployment unit against all parents and delegating loader... but it doesnt:
    15:17:04,011 INFO [STDOUT]
    org.jdom.Document(1bb8ea).ClassLoader=org.jboss.system.server.NoAnnotationURLClassLoader@e3b895
    ..org.jboss.system.server.NoAnnotationURLClassLoader@e3b895
    ..sun.misc.Launcher$AppClassLoader@e80a59
    ....file:/C:/Entwicklungstools/jboss-3.2.3_tomcat-4.1.24/bin/
    ....file:/C:/Entwicklungstools/abaXX/components36/lib/3rdparty/oracle9iR2.jar
    ....file:/C:/Entwicklungstools/j2sdk_1.4.2_03/lib/tools.jar
    ....file:/C:/Entwicklungstools/jboss-3.2.3_tomcat-4.1.24/bin/run.jar
    ..sun.misc.Launcher$ExtClassLoader@1ff5ea7
    ....file:/C:/Entwicklungstools/j2sdk_1.4.2_03/jre/lib/ext/dnsns.jar
    ....file:/C:/Entwicklungstools/j2sdk_1.4.2_03/jre/lib/ext/ldapsec.jar
    ....file:/C:/Entwicklungstools/j2sdk_1.4.2_03/jre/lib/ext/localedata.jar
    ....file:/C:/Entwicklungstools/j2sdk_1.4.2_03/jre/lib/ext/sunjce_provider.jar
    ++++CodeSource: (file:/C:/Entwicklungstools/jboss-3.2.3_tomcat-4.1.24/lib/jdom.jar <no certificates>)
    Implemented Interfaces:
    ++interface java.io.Serializable(f62373)
    ++++ClassLoader: null
    ++++Null CodeSource
    ++interface java.lang.Cloneable(13e8d89)
    ++++ClassLoader: null
    ++++Null CodeSource
    This above is a small JBoss utility acutally printing out the watched URLs of the CL and the Codesource of a class... .. Now actually the classloader shouldn't use the Jdom.jar mentioned as source but the one listed here:
    15:16:24,308 INFO [EJBDeployer] nested deployment: file:/C:/Entwicklungstools/jboss-3.2.3_tomcat-4.1.24/server/tebs/tmp/deploy/tmp27652tebs-0.1-SNAPSHOT.e
    ar-contents/tebs-migration-0.1-SNAPSHOT.jar-contents/jdom-b10.jar
    Actually I think the problem is pretty close to the thread you mentioned before... AFAIK the classloaders in J2EE Containers have to prefer the direct deployment unit (in this case the jar and its content) to any other parent class loaders files... I also thought that there can be mulitple versions of a class file in one VM an that the appserver has to preserve every app from using a class of another app... So that there is some housing principles....
    As I could not figure out how to solve this I came to the question regarding versioning... As both JDom.jars contain version information this would solve my probem... But as you already mentioned AFAIK there is only support to give some verision informationen about a jar in the manifest but nothing mentions that you can explicitely request a specific version.
    So If anyone has a clou how I get that crapp working I would be very thankful
    Tom

  • Can anyone tell me which jar contain weblogic.jws.WLJmsTransport class

    Hi All,
    Can anyone tell me which jar contain weblogic.jws.WLJmsTransport class
    Thanks in advance?

    Hi,
    You can find that in the "*weblogic.jar*", "*wls-api.jar*" and "*wseeclient.jar*" which can be found in the below directory
    Path:
    wlserver_10.3/server/lib/
    Also you can have a look at the below link which shows you how to find any CLASS present inside your file system.
    Topic: Finding Classes using JAR SCANNER
    http://middlewaremagic.com/weblogic/?page_id=241#comment-3621
    Regards,
    Ravish Mody

  • How to combine Jars or Include dependent Jars into One Jar

    Hello,
    I have build a small utility using few libraries now i want to make a bundle or jar of this utility. I don't want to let use includes the jars individuals. I want to make a single jar using all the jars so user needs to include only one jar.
    So i need to include the dependent Jar files into a single jar.
    I got few solutions using Google.
    Like:
    adding a Class-Path: myjar.jar to MANIFESTfile.
    simply update the jar with jar using commnad jar uf main.jar myjar.jar_
    but these are not working. when i use the Class-Path option the Tree of main jar looks like
    main.jar
        <default-package>
             myjar.jar
        META-INF
             MANIFEST.MF
    How can i combine the Jars into a single Jar? Please help.

    It is to tell the JVM where to look for additional classesDoes it mean if i includes dependent jars to main jar and if i specify the path then JVM find that jars to specified pathThat's what 'telling the JVM where to look for additional classes' means, isn't it? I don't know what else it would mean.
    and don't need to include it separately?You only have to specify the Class-path in the manifest, and run the JAR file with java -jar. In fact if you specify a classpath on the command line with java -jar it will be ignored.
    All this is in the documentation.

  • Why so many dependent jar files?

    Crystal Report needs too many dependent jar file. What is the alternative way to minimize dependent jar files or club together as one jar?
    Thanks,
    Venkat

    If you're using the Java Reporting Component (JRC), then I recommend upgrading to the newest version - [Crystal Reports For Eclipse 2.0|https://www.sdn.sap.com/irj/boc/crystalreports-java], where the number of jars are significantly decreased.
    The reason why 11.5 had so many Jars was that the JRC and RAS and Enterprise SDKs shared libraries, and so the jar files were broken down along functional lines.
    Since CR4E 2.0 is a separate stream, the packaging is simpler.
    Jar file count dependencies is always a touchy thing - break it down along functional lines, and there's complaints that there's too many.  Consolidate to a few, and there's complaints that the files are too large, and why can't it be broken down into smaller jars?
    Sincerely,
    Ted Ueda

  • Applet and dependency jars signing

    Hi applet gurus,
    I hope to receive help from you with the following issues:
    1) I'm trying to sign an applet application which has dependency jars. So my first question is: Do I have to sign also the dependency jars? If yes, can I sign them with the same certificate?
    2) As I want to suppress warning messages from the applet which might scare ordinary users, I'm putting Permissions and Caller-Allowable-Codebase attribute in the manifest. If I have to sign also the dependency jars, do I have to also put these attributes into their manifest files? If yes, how?

    I'm not a guru, but the answer to question 1) is yes. I know this because I've seen plenty of historical problems in this forum relating to exactly this, especially in combination with Bouncy Castle which seems to already be signed with its own certificate. You should sign them with the same certificate as your application I believe, but that would require experimentation to confirm.
    I don't know anything about 2). The only thing I know is that it is likely impossible to completely remove the popup, a user will have to accept it at least once even when you have a valid signed certificate. I mean I have seen Microsoft software ask if I trust Microsoft
    Final note: be sure you are actually allowed to legally modify and distribute the jars in such a way! Probably yes, but it would be very unfortunate if you get slapped with a lawsuit because you broke the usage terms of a particular commercially oriented third party jar that you failed to notice.

  • Lazy download and PrintServiceLookup.lookupPrintServices

    In my jnlp file all jars are with "lazy" tag, and everything works fine, but when I execute this line of code:
    javax.print.PrintService[] result = PrintServiceLookup.lookupPrintServices( null, null );
    all of the jar are downloaded.
    I've opened the bug request n: 830151 (but this is only an internal ID) 2 months ago, but got no answers yet.
    Any ideas or suggestion?
    Regards
    Alessandro

    If you attempt to load a non-existant resource, all
    jars will be loaded looking for it.
    This can be avoided in JDK 6 using JarIndexing to
    specify what jar contains what resources.Never tried JDK 6.
    In JDK 5.0_02+, you can also achieve the same thing
    using the "part" and "package" attributes.
    In previous versions of Java Web Start, neither of
    these worked, so accessing a non-existant resources
    would always download all lazy jars.
    /AndyI use jre1.5.0_08 and my jnlp (for the test case) is:
    <package name="testJWS.*" part="main" recursive="false"/>
    <jar href="/client/test-jws/starter.jar" part="main" download="lazy"/>
    <package name="testJWS1.*" part="test1" recursive="false"/>
    <jar href="/client/test-jws/testJWS1.jar" part="test1" download="lazy"/>
    <package name="testJWS2.*" part="test2" recursive="false"/>
    <jar href="/client/test-jws/testJWS2.jar" part="test2" download="lazy"/>
    <package name="testJWS3.*" part="test3" recursive="false"/>
    <jar href="/client/test-jws/testJWS3.jar" part="test3" download="lazy"/>
    <package name="com.incors.plaf.*" part="alloy" recursive="true"/>
    <jar href="/client/test-jws/alloy.jar" part="alloy" download="eager"/>
    So, according to what you say, it should work.
    My test case is very simple: a main jar which opens a JFrame contained in testJWS1.jar, which opens a form conteined in testJWS2.jar and so on.
    Without the PrintServiceLookup, works perfectly, the jars are downloaded only when needed.
    With that line of code everything is download at that moment.
    How can I say to JWS something that concern resources contained into rt.jar of the JRE (like PrintServiceLookup)?
    I've tried to debug this class (I've found the source code, copied in my class, and used mine with some debug message) and saw that the download appens when Java looks for the file javax.print.PrintServiceLookup which is inside rt.jar\META-INF\services
    This file exists ... but it seems like JWS looks for it in all the jar of the classpath (including lazy jar), and then inside rt.jar which is the right place.
    Any idea how to say to java: look inside rt.jar before my lazy jars?
    The problem is that I cannoy say (don't know how) to JWS that a file is inside the META-INF folder of a jar, otherwise I could copy that file inside my first jar and tell to the JNLP to look there.
    Thanks
    Alessandro

  • 'lazy' download test

    http://www.javasaver.com/testjs/jws/cache/
    Here is one test of the JWS download behaviour
    for jar and resources marked as lazy.
    Does it work for you?
    (It should appear on-screen real quick, once
    you click a list item, the image download is
    initiated and the GUI ..locks until the image
    is on-screen)
    This raises some questions though.
    1) On my box, the lazy downloads got no progress
    dialog - is that expected behaviour? Is there any
    easy (configuration) way to put it back?
    2) I had to reference the classes in the lazily
    downloaded jars using reflection. Are
    there easier ways to reference the lazy resources
    without invoking an eager download?
    Note that I have also linked to a file containing
    the source, media and build file, to make it easy
    to download and experiment with off the local
    file system.
    All results, comments welcome.

    http://www.javasaver.com/testjs/jws/cache/#eg5
    Is the best example so far. The previous examples
    blocked the EDT, and that caused the 'blank' dialogs
    that were observed.
    I am having new problems with it though,
    & would appreciate any ideas..
    The issue is that the second invocation
    of the download service fails.
    Here is some output from the web start console.
    Part animal cached!
    jar:http://www.javasaver.com/testjs/jws/cache5/animalmedia.jar!/image/DCP_7940.jpg
    DownloadServiceListener com.sun.jnlp.DownloadServiceImpl$DefaultProgressImpl@2f1921
    Part plant downloading!
    jar:http://www.javasaver.com/testjs/jws/cache5/plantmedia.jar!/image/100_1829-800x600.jpg
    DownloadServiceListener com.sun.jnlp.DownloadServiceImpl$DefaultProgressImpl@2f1921
    Part art downloading!
    java.lang.RuntimeException: canceled by user
         at com.sun.jnlp.DownloadServiceImpl$DefaultProgressImpl.progress(Unknown Source)
         at com.sun.jnlp.DownloadServiceImpl$ProgressHelper.<init>(Unknown Source)
         at com.sun.jnlp.DownloadServiceImpl$6.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.jnlp.DownloadServiceImpl.loadPart(Unknown Source)
         at com.sun.jnlp.DownloadServiceImpl.loadPart(Unknown Source)
         at test.JWSCacheTest.run(JWSCacheTest.java:78)
         at java.lang.Thread.run(Unknown Source)
    jar:http://www.javasaver.com/testjs/jws/cache5/artmedia.jar!/image/scan0036-670x470.jpgWhile this is the code for the run() method,
    Line 78 has a comment added..
    It is the call to ..
    downloadservice.loadPart(Sring, String)
    ..that is throwing the Exceptionpublic void run() {
      String title = getTitle();
      setTitle("Loading " + resourceName);
      try {
        if (downloadservice==null) {
          downloadservice = (DownloadService)ServiceManager.
            lookup("javax.jnlp.DownloadService");
        if ( !downloadservice.isPartCached(part) ) {
          DownloadServiceListener dsl =
            downloadservice.getDefaultProgressWindow();
          System.out.println("DownloadServiceListener " + dsl);
          System.out.println("Part " + part + " downloading!");
          downloadservice.loadPart(part, dsl);  // code line 78
        } else {
          System.out.println("Part " + part + " cached!");
      } catch(Exception e) {
        // ignore the USE or IOE and proceed..
        e.printStackTrace();
      try {
        Class displayClass = Class.forName(resourceName);
        setTitle(title);
        imagePanel.add(
          (Component)displayClass.newInstance(),
          images[index]);
        cl.show(imagePanel, images[index]);
      } catch(Exception e) {
        setTitle(title);
        imagePanel.add(
          new JLabel("Error loading!"),
          images[index]);
      validate();
    }Why would that be showing as 'canceled by user'
    on any second invocation of the downloadservice?
    Is there something I am forgetting to reset at
    the end of the first invocation?

Maybe you are looking for

  • Issue in MaxL. illegal block type.

    hi all. I am using Essbase 9.3 I have got a Invalid block header. error message "Invalid block header: Illegal block type -- Please use the IBH Locate/Fix utilities to find/fix the IBH problem" For recovery, I use the following command alter applicat

  • Message split on adapter engine for the java based IDoc adapter

    Hi Guys, Do you know if message split on adapter engine is available for the java based IDoc adapter on the single stack (PI 7.31)? I'm getting such exception when I try to post 3 IDocs Transmitting the message to endpoint <local> using connection Fi

  • Z program of the RFKORK00.

    Hi Expert, I have requirement to add the two new fields to the standard transaction F.27(Program is RFKORK00) so that i am making it to ZRFKORK00. Those two fields are KNA1-KTOKD(Customer Acc. Group) and BKPF-BLART(Document Type). Can somebody please

  • Sap bank chains

    Hi The steps I configured for SAP bank chains 1) Define scenario 2)Activate the bank chain 3)Define the business partner specific bank chain(FIBPU) Still the payment program is not considering the bank chain while executing the F110 Please let me kno

  • Error in custom apps when upgrading Oracle Apps to 11.5.10

    Hi, We're upgrading Oracle Apps from 11.5.5 to 11.5.10. We have a custom application that's registered in Oracle Applications and the modules that I've tried to run so far all produce this error: FRM-47023: No such parameter named G_QUERY_FIND exists