Problem loading models from applet

Hello, I am trying to convert a collaborative CAD program I wrote into an applet.
The program loads .OBJ files, and I can not seem to convert my code for it to work as an applet.
Is it possible to package the .OBJ files into the applet .JAR file so that they are downloaded and loaded out of the .JAR?
I am at wits end here, having tried many things.
I know an applet can't read from the hard disk...
And to cover the major areas of concern:
Program packaged in a jar.
Each class is part of a package, OOP_PA4
so the file structure is
OOP-PA4.jar / OOP_PA4/ Classes etc
Dont know if that helps.
Thanks

I see three main options:
- If the files to read are in the JAR, the ClassLoader could give you a stream to read them by means of the getResourceAsStream. But this means the are packaged togheter with your application code, adn so allways the same.
- An applet, unless in a signed JAR file and authorized in the local JVM does not have access to the local resources, such as files, printers, etc. Your best option if you need access to files on the local disks is to use Java PlugIn or Java WebStart, both also require a signed JAR but much more portable between brosers. Java WebStart is particularly nice, check it.
- An applet can open network connections to the server from where it was downloaded, so if you place your files in the same web server in which your web page and applet are, the applet's code should be able to open an HTTP connection and get them without deeding to sign the JAR.
Regards

Similar Messages

  • Problem loading data from the PSA to the InfoCube

    Hello experts.
    I'm having a problem loading data from the PSA to the InfoCube.
    I'm using a DTP for this process but is happening the following error:
    "Diagnosis
          An error occurred while executing the transformation rule:
          The exact error message is:
          Overflow converting from''
          The error was triggered at the point in the Following Program:
          GP4KMDU7EAUOSBIZVE233WNLPIG 718
      System Response
          Processing the record date has Been terminated.
    Procedure
          The Following is additional information included in the higher-level
         node of the monitor:
         Transformation ID
         Data record number of the source record
         Number and the name of the rule Which produced the error
    Procedure for System Administration
    Have already created new DTP's deactivate and reactivate the InfoCube, the transformation, but solves nothing.
    Does anyone have any idea what to do?
    Thank you.

    HI,
    Is it a flat file load or loading frm any data source?
    try to execute the program GP4KMDU7EAUOSBIZVE233WNLPIG 718 in Se38 and check if its active and no syntax errors are there.
    Check the mapping of the fileds in transformations weather
    some data fileds are mapped to decimal or char 32 filed is mapped to Raw 16
    or calweek, calmonth mapped to calday etc.
    Check in St22 if there any short dumps ..
    Regards
    KP

  • Problem – loading HTMLtext from a text file

    Problem – loading HTMLtext from a text file
    Hi, I have a dynamic text set up to render text as HTML and I
    am loading the text into the text object by using the code below.
    var loadText:LoadVars = new LoadVars();
    loadText.load("Nyheter.txt");
    loadText.onLoad = function(success){
    if(success){
    Nyheter_txt.htmlText = this.VariabelTekst;
    The textfile looks like:
    VariabelTekst=<p align
    ="Right">(13.11.2006)</p><p><b><font
    size="12">This is the tittle</b></p><p>Here
    comes the text</p>
    It works almost fine but the first problem is that the
    paragraph text in the textfile should be written in Norwegian. This
    involves some Nordic characters. By default these characters are
    just shown as small square in the text control when running the
    flash file. If I try to enter these characters in the textbox
    “Include these characters” within the dialog for
    embedding, the text within the bold tag of the text file is not
    shown when the text is rendered. It looks as if it effect the HTML
    rendering of the text. The Nordic characters are still not showing
    but instead the small square placeholders for the characters are
    gone.
    Am I doing it wrong, or is there a work around for solving
    this problem?
    Any ideas?
    TIRislaa

    Problem – loading HTMLtext from a text file
    Hi, I have a dynamic text set up to render text as HTML and I
    am loading the text into the text object by using the code below.
    var loadText:LoadVars = new LoadVars();
    loadText.load("Nyheter.txt");
    loadText.onLoad = function(success){
    if(success){
    Nyheter_txt.htmlText = this.VariabelTekst;
    The textfile looks like:
    VariabelTekst=<p align
    ="Right">(13.11.2006)</p><p><b><font
    size="12">This is the tittle</b></p><p>Here
    comes the text</p>
    It works almost fine but the first problem is that the
    paragraph text in the textfile should be written in Norwegian. This
    involves some Nordic characters. By default these characters are
    just shown as small square in the text control when running the
    flash file. If I try to enter these characters in the textbox
    “Include these characters” within the dialog for
    embedding, the text within the bold tag of the text file is not
    shown when the text is rendered. It looks as if it effect the HTML
    rendering of the text. The Nordic characters are still not showing
    but instead the small square placeholders for the characters are
    gone.
    Am I doing it wrong, or is there a work around for solving
    this problem?
    Any ideas?
    TIRislaa

  • Problem loading images from a return value of a function

    hello, I write because I uin problem in loading images from a return value of a function.
    I created a database with a field "image" of type string, where I put the physical address of the image. I have written like this: {__DIR__ }foto.jpg
    Place the code, so you understand better
    function imageViewImage(): javafx.scene.image.Image {
    connetti();
    lass.forName(driverName);
    con = DriverManager.getConnection(url,user,"");
    stmt = con.createStatement();
    var richiesta:String = "SELECT image from viaggio WHERE id_viaggio=7";
    rs1 = stmt.executeQuery(richiesta);
    var result :String;
    rs1.next();
    risultato = rs1.getString("image");
    JOptionPane.showMessageDialog(null, result);
    var imagez = Image{
    url:"{result}";
    return imagez;
    The image is in the source code package
    First I connect to the database, run the query and I take the contents of the image.
    Can anyone help me?
    Is right to put in the database {__DIR__} foto.jpg or do I put only foto.jpg?

    Hello unkus_nob,
    I would rather suggest you to save only filename of that image like "foto.jpg" in database. And just concat it with the String variable containing "{__DIR__}".
    Actually the javafx compiler converts the {__DIR__} to the existing class directory path something like : "jar:file:/..../".
    var currentDir ="{__DIR__}";
    risultato = "{currentDir}{rs1.getString("immagine"})"; 
    var image = Image{
        url:risultato
    return image;--NARAYAN G.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem loading image from jar file referenced by jar file

    First, I searched this one and no, I didn't find an answer. Loading images from jar files has been pretty much done to death but my problem is different. Please read on.
    I have my application, a straight up executable running from Eclipse. It uses a jar file, call it JarA. JarA launches a GUI that is located in another jar file. Call it JarB. To recap:
    My application calls JarA -> JarA loads classes from JarB -> JarB looks for images to place in a GUI it wants to show on the screen
    When JarB goes to load an image the following happens:
    java.lang.NullPointerException
         at sun.misc.URLClassPath$3.run(URLClassPath.java:316)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
         at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
         at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
         at java.lang.ClassLoader.getResource(ClassLoader.java:977)
         at org.cubrc.gmshell.gui.MainWin.preInit(MainWin.java:152)
         at org.cubrc.gmshell.gui.MainWin.<init>(MainWin.java:135)
    The code from JarB that loads the image looks like this:
              URL[] oSearch = {Main.class.getResource("images/")};
              URLClassLoader oLoader = new URLClassLoader(oSearch);
              imgIcon = new ImageIcon(oLoader.getResource("icon.gif"));
              imgMatchRunning = new ImageIcon(oLoader.getResource("gears.gif"));
              imgMatchStill = new ImageIcon(oLoader.getResource("gears-still.gif"));
              imgMagnify = new ImageIcon(oLoader.getResource("magnify.gif"));This looks right to me and JarB certainly has an images directory with those files. But I'm in hell right now because I don't know where to place the images to make this work or if you can even attempt to load images with a dependency chain like this.
    Any help very appreciated!

    Have you tried to move your image-files out of the jar file and place them in the sam folder as the jar-file? I think that would help.
    When you try to load the image-file you get the NullPointerException because the program tries to read a file it can't find. Remember that a jar file IS a file and not a directory.
    If you want to read somthing inside the jar-file you need to encode it first.
    Have you tried to read the jar-file with winRar. It makes it easy to add and remove files in your jar-file.

  • Problem loading page from main server

    I have an Ipod Touch that worked well for the first few weeks and I have used it in a variety of wifi situations. The problem I am having now is related to my email server (Orange: the France Telecom Internet server). I was having problems loading the main log-on page and turned off the Java Script, Plug-Ins, and Block-pop ups in the General settings to be able to get the main page. I can log in and Orange recognizes me as a client, but when I try to get my messages, I get a blank page and nothing more.
    I seem to be able to surf the Orange site for any other information except direct access to my e-mails. Is this a Touch problem (possibility a setting?) or more an Orange problem?
    Thanks for any help!

    Regardless of what problem it is, I decided get around it and to forward my messages from my main server to Yahoo and then have them download to the Ipod Touch through mail: it works!

  • Problem loading the chat applet, red x mark sign..

    Hello all - hopefully this is the correct place for this post. I've been trying to load a java enabled chat room, and keep getting a red X in the top left corner (java applet failed, etc).
    Java chat applet fails to load in the following website www.chat-web.com, but loads in the other websites. the following is the version i have installed in my computer. Version 6 Update 12 (build 1.6.0_12-b04). I have visited the help section of the website in which java applet fails to load and tried all the following steps,
    1) I cleared all the temp files from the internet options.
    2) cleared the cache in the java plug-in
    3) disabled the pop-up blocker
    insipite of the above steps the problem still persists..
    here is a screen shot of the error > http://i42.tinypic.com/2pzwhvp.jpg
    here is the details of the error :
    Java Plug-in 1.6.0_12
    Using JRE version 1.6.0_12 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Guest
    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
    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>
    load: class com.chatspace.v20090.Chat not found.
    java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
    Does this look like a chat room error? I think my side is fine, but I could be wrong. I'm not the best technical person, but just know the basics.
    Anyone have any ideas?
    Thanks!
    livelife

    Hi. Thank you for reply. I tried the steps suggested by you, but it still shows the same errors, i e-mailed to chat-web.com as well but seems the e-mail is invalid. i tried to load the chat rooms in my desktop pc too, i get the same error,
    Java Plug-in 1.6.0_13
    Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Intel
    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
    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>
    load: class com.chatspace.v20090.Chat not found.
    java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.SocketException: Network is unreachable: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
    lifelive

  • Problem loading data from jena

    Hi, two issues when loading data into Oracle from a jena model:
    1. The incremental and batch load both works well except when we add a triple with a literal types as double:
    triple = new Triple(dirNode.asNode(), Node.createURI("http://www.w3.org/2003/01/geo/wgs84_pos#long"), Node.createLiteral(geopos.getLongitude().toString(), null,      (RDFDatatype) XSDDatatype.XSDdouble));
    graph.add(triple);
    We get the error:
    GRAVE: Could not add triple
    java.sql.BatchUpdateException: ORA-55303: Fallo en el constructor SDO_RDF_TRIPLE_S: Simple case: SQLERRM=ORA-55328: fallo al intentar insertar el valor literal "-5.9278863"^^<http://www.w3.org/2001/XMLSchema#double>
    ORA-06512: en "MDSYS.MD", línea 1723
    ORA-06512: en "MDSYS.MDERR", línea 17
    ORA-06512: en "MDSYS.SDO_RDF_TRIPLE_S", línea 211
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1335)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3530)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1062)
    2. The bulk load simply does not work:
    ((OracleBulkUpdateHandler) graph.getBulkUpdateHandler()).addInBulk(GraphUtil.findAll(model.getGraph()), "sem_ts");
    We get:
    01-oct-2009 13:11:39 oracle.spatial.rdf.client.jena.SimpleLog warn
    ADVERTENCIA: addInBulk: [92 ] sqle
    java.sql.SQLException: ORA-44004: nombre de SQL cualificado no válido
    ORA-06512: en "SYS.DBMS_ASSERT", línea 188
    ORA-06512: en "MDSYS.SDO_RDF", línea 242
    ORA-06512: en "MDSYS.RDF_APIS", línea 693
    ORA-06512: en línea 1
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
    In both case our conexion is something like:
    public static String conexion = "jdbc:oracle:thin:user/pass@ourserver:1521:ourdb";
    Any idea? Thanks

    Hi Wu, we have included your code in a java test ang got the same problem.
    Our installation is Oracle Database 11.2.0.1.0. Then we added the 'Semantic patch' 11_2_sem and followed the instructions to create a tablespace and the RDF/SEM network. Finally we create a model as [explained here|http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11828/sdo_rdf_concepts.htm#CHDEDFFA] .
    Some text in the exception is spanish; basically it seems to say 'fails inserting the literal value'... The rest of data in the app has been correctly inserted.
    This is the java test:
    public class PruebaOracleTest extends TestCase {
         String jdbcUrl = "jdbc:oracle:thin:user/pass@server:1521:bd";
         public void testInsertData() throws Exception {
              Oracle oracle = new Oracle(jdbcUrl, null, null);
              GraphOracleSem graph = new GraphOracleSem(oracle, "ARTICLES");
              ModelOracleSem model = new ModelOracleSem(graph);
              Model inMemoryJenaModel = ModelFactory.createDefaultModel();
              long lStartTime = System.currentTimeMillis();
              System.out.println("testCustomerMisc: start");
              Triple t = new Triple(Node.createURI("http://sub"), Node
                        .createURI("http://www.w3.org/2003/01/geo/wgs84_pos#long"),
                        Node.createLiteral("-5.9278863", null,
                                  (RDFDatatype) XSDDatatype.XSDdouble));
              graph.add(t);
              graph.flushAdd();
              String queryString = "SELECT * " + "WHERE { "
                        + " ?subject ?predicate ?object . " + "} ";
              Query query = QueryFactory.create(queryString);
              QueryExecution qexec = QueryExecutionFactory.create(query, model);
              ResultSet results;
                   results = qexec.execSelect();
                   ResultSetFormatter.out(System.out, results, query);
         public void testListTriples() throws Exception {
              Oracle oracle = new Oracle(jdbcUrl, null, null);
              GraphOracleSem graph = new GraphOracleSem(oracle, "ARTICLES");
              int cont = 0;
              ExtendedIterator it = graph.find(Triple.ANY);
              while (it.hasNext() && cont<100) {
                   Triple t = (Triple) it.next();
                   System.out.println(t.toString());
                   cont++;
              graph.close();
              oracle.dispose();
         public void testCleanModel() throws Exception {
              Oracle oracle = new Oracle(jdbcUrl, null, null);
              GraphOracleSem graph = new GraphOracleSem(oracle, "ARTICLES");
              ModelOracleSem model = new ModelOracleSem(graph);
              model.removeAll();
              graph.close();
              oracle.dispose();
    And this the exception we get:
    java.sql.SQLException: ORA-55303: Fallo en el constructor SDO_RDF_TRIPLE_S: Simple case: SQLERRM=ORA-55328: fallo al intentar insertar el valor literal "-5.9278863"^^<http://www.w3.org/2001/XMLSchema#double>
    ORA-06512: en "MDSYS.MD", línea 1723
    ORA-06512: en "MDSYS.MDERR", línea 17
    ORA-06512: en "MDSYS.SDO_RDF_TRIPLE_S", línea 211
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1008)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
         at oracle.jdbc.driver.OraclePreparedStatement.sendBatch(OraclePreparedStatement.java:3753)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.sendBatch(OraclePreparedStatementWrapper.java:1140)
         at oracle.spatial.rdf.client.jena.GraphOracleSem.flushAdd(GraphOracleSem.java:1219)
         at org.fundacionctic.ogd.data.support.PruebaOracleTest.testInsertData(PruebaOracleTest.java:42)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

  • Problem loading JPEGs from network drive?

    Hi,
    I'm having a rather frustrating problem with Bridge\Lightroom 2 which I think is due to ACR 4.5, and I'm hoping someone here may be able to offer some advice:
    When opening (in bridge) or importing (in Lightroom) a network share containing JPEG images the majority of the previews\thumbnails are corrupted.
    This screenshot illustrates the problem in bridge (http://www.amirkamal.com/acrbug.jpg). As you can see the thumbnails are corrupt as is the preview, however the magnifier tool on the preview window shows the /true/ image. The irfanview window, in the lower right corner, shows what the image should look like, demonstrating that the JPEG itself is not corrupt.
    If I were to import this directory into Lightroom the same problem is present, although the form of the actual image corruption (or even the number of images corrupted) may be different. It also persists through to the develop module as well, making lightroom completely unusable.
    If I disable the 'Prefer Adobe Camera Raw for JPEG and TIFF files' option in Bridge then previews are rendered correctly, which is what leads me to believe that ACR is the problem and not Bridge or Lightroom. This would be an acceptable work around for Bridge, but obviously isn't possible for Lightroom.
    Also, if I copy the JPEGS locally and then import\view them the problem does not occur. The seems only to affect JPEGs: TIFF and Raw (Canon 350d .CR2) files do not show this problem.
    It almost seems as if ACR is trying to process the JPEGs before they have been completely loaded, and thus ends up rendering garbage.
    Has anyone else seen this problem before, or have any idea how to fix it?
    My system specs are below incase they offer any clues,
    thanks
    ak
    Local machine:
    Adobe Bridge CS3 2.1.1.9
    Adobe PhotoShop Camera Raw 4.5.0.175
    Windows XP 32bit SP2
    Intel Pentium 4 D @ 3.3GHz
    2Gb RAM
    nVidia 7950GT with latest (175.19) drivers
    Images stored on:
    Windows Server 2k3 R2
    Intel Celeron D @ 3Ghz
    1Gb RAM
    RAID 5 Array
    Connected over a 100mbps network

    I have never worked on image files which are located remotely in a network ... but I noticed a higher probability of problems occurring when working with Bridge on external hard disk drives connected via USB 2.0. So I acquired the habit of copying the folder of images I plan to work on to an internal hard disk drive and do the work there. When I'm done then I'll copy the whole folder (or at least the modified files therein) back to where it came from.
    -- Olaf

  • Problem invoking Javascript from applet

    Hi,
    I have a hidden iframe in my JSP. While submitting the form within the JSP, I set the target of the response page as the iframe and disable all the form elements in the JSP . The response page contains an applet that pops up a window(a JFrame). On pressing the close button of the applet's frame, I invoke a Javascript method in the JSP. This javascript method enables all the components on the JSP.
    Now the issue is that, when I press the close button, the browser just hangs... This doesn't happen on all the browsers.. It works with Opera. In IE it doesn't work all the time. Some times IE just hangs... Any idea what the issue could be?? Pls let me know if the problem is not clear..
    Thanks in advance..
    regards,
    Anand

    Funny I've just posted something about this on another thread.
    http://forum.java.sun.com/thread.jsp?forum=54&thread=157547
    You can apparently call methods on your applets from javascript.
    http://developer.netscape.com/docs/manuals/communicator/jsguide4/livecon.htm#1007749
    I know that most of the LiveConnect package works in NS4, NS6, IE4 and IE5, but I have always called out to JavaScript from Java not the other way around so I cannot vouch for this in IE.

  • Problem loading Flatfile from application server to DSO

    Hello,
    I've a little problem while loading a Flatfile (csv) from the application server to a DSO. The Flatfile has only one data record and a header.
    But in the DSO are always two data records, the right one and one empty record.
    If I use the same Data Source and the same DTP and switch it to upload from the workstation there is just one data record. (What would be right).
    I'm using the upload without PSA in Full-Update-Mode.
    I tried to create a new Data Source, but same effect.
    Thanks in advance,
    TG
    System: SAP EHP 1 for SAP NetWeaver 7.0

    Not sure about it, and in absence of sufficient information I can only guess.
    But somehow it looks like the well-known problem of files being changed in transfer between Unix (your application server I guess ) and Windows (your workstation I guess ).
    Try to find out correct transfer method, asc or bin, or whatever you call it.
    I hope this helps.
    And in case my advice is nonsense: Don't blame me.

  • Problem loading fonts from ID3 to ID CS5...

    Hello,
    My company just upgraded from In Design 3 to In Design CS5 and I have tried to load some fonts from the previous version. I keep getting blocked. I drag and drop the fonts and I get this error message:
    ERROR MOVING FILE OR FOLDER
    CANNOT MOVE (SPECIFIC TEXT) ACCESS IS DENIED.
    MAKE SURE THE DISK IS NOT FULL OR WRITE-PROTECTED
    AND THAT THE FILE IS NOT CURRENTLY IN USE.
    My co-worker has done the same thing and has had no problem. I've sent in a help desk ticket, but that was a while ago so I thought I'd give you a try.
    Thanks in advance
    CS InDesign 5.5
    Microsoft Windows XP
    Professional x64 Edition
    Version 2003
    Service Pack 2
    Intel(R) core(TM)2 Extreme
    CPU Q6850 @ 3.00GHz
    2.99 GHz. 8.00 GB of RAM

    This is not an InDesign issue, it’s a system issue and you should take very serious note that XP64 is completely unsupported.
    Bob

  • Problem loading jar into Applet

    Good day folks.
    The scenario I try to implement is the following: I want to start an applet A (a small one) which then loads another jar B (a big one) and starts it.
    The code of applet A looks like this:
    File file = new File("C:\\B.jar");
    JarFile jar = new JarFile(file);
    String mainclass = jar.getManifest().getMainAttributes().getValue("Main-Class");
    URL urlList[] = {file.toURL()};
    URLClassLoader loader = new URLClassLoader(urlList,  Thread.currentThread().getContextClassLoader());
    Class c = Class.forName(mainclass, true, loader);
    MySecondApplet b = ((MySecondApplet ) c.newInstance());Now this works quite well, as long as B doesnt do any potential unsecure stuff like accessing System.Properties. If B tries that I get an java.security.AccessControlException: access denied!
    This behaviour is normal if B isn't signed, but both jars A and B are signed with the same signature, so somehow the signature of B isnt looked at by the JavaVM.
    Anyone knows why the signature of B is disregarded?
    Thanks in advance
    MVeeck

    First of all, I really don't understand how you manage to create a new Instance of a class
    from A that is not in the classpath of A.
    My example above I had test and t.
    When I try this
    ((t) c.newInstance()).init();
    In test without having t.jar in the html I get the following exception:
    ava.lang.NoClassDefFoundError: t
    This is because test doesn't know about t because it is not in test's classpath (archive
    tag in html file).
    Now I can cast t to Applet and get the following exception (same as yours)
    AccessControlException: access denied (java.util.PropertyPermission user.name read)
    Now I sign t.class differently that test.class and put t.jar back in the html (archive tag).
    The jre will ask me twice if I trust the applet because t.jar is signed diffently than test.
    That doesn't work hower because I get the following exception:
    class "t"'s signer information does not match signer information of other classes in the same package
    so I put t in another package and we are back to accessControlException, the jre
    never asks the user if he or she trusts t.t class when the t.jar is loaded.
    In my opinion this is a bug or if we are missing something here it's poorly
    documentend by the jave doc since I found no method at all where I either tell the
    JarFile instance or URLClassLoader to ask the user the "do you trust" question.
    Here are the files again (changed some code there)
    c:\temp\page.htm
    <DIV id="lblOutputText">Output comes here</DIV>
    <DIV id="dvObjectHolder">Applet comes here</DIV>
    <script>
    if(window.navigator.appName.toLowerCase().indexOf("netscape")!=-1){ // set object for Netscape:
         document.getElementById('dvObjectHolder').innerHTML = "        <object ID='appletTest1' classid=\"java:test\"" +
                    "height='0' width='0' onError=\"changeObject();\"" +
              ">" +
                    "<param name=\"archive\" value=\"sTest.jar \">" +
                    "<param name=\"mayscript\" value=\"Y\">" +
            "</object>";
    }else if(window.navigator.appName.toLowerCase().indexOf('internet explorer')!=-1){ //set object for IE
         document.getElementById('dvObjectHolder').innerHTML =      "<object ID='appletTest1' classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\"" +
                   "         height='0' width='0' >" +
                   "   <param name=\"code\" value=\"test\" />" +
                      "<param name=\"archive\" value=\"sTest.jar\">" +
                   " </object>"
    </script>c:\temp\t\t.java
    package t;
    import java.security.*;
    import java.io.*;
    public class t extends java.applet.Applet {
        public void init() {
             try{
                   String user = (String) AccessController.doPrivileged(
                     new PrivilegedAction() {
                        public Object run() {
                             String u = "";
                             try{
                                  u = System.getProperty("user.name");
                                  File f = new File("C:\\temp\\atest.txt");
                                  FileOutputStream fo = new FileOutputStream(f);
                                  fo.write("this seems to work\n".getBytes());
                                  fo.write("full control here\n".getBytes());
                                  fo.write(new String("can allso get the user name:" + System.getProperty("user.name")).getBytes());
                                  fo.close();
                             }catch(Exception e){
                                  e.printStackTrace();
                             return u;
                   System.out.println(user);
            }catch(Exception e){
                 e.printStackTrace();
    }c:\temp\test.java
    import java.net.*;
    import java.util.jar.*;
    import java.io.*;
    public class test extends java.applet.Applet {
        public void init() {
             try{
                   File file = new File("C:\\temp\\t.jar");
                   JarFile jar = new JarFile(file,true);
                   URL urlList[] = {file.toURL()};
                   URLClassLoader loader = new URLClassLoader(urlList, Thread.currentThread().getContextClassLoader());
                   Class c = Class.forName("t.t", true, loader);
                   System.out.println(c==null);
                   ((java.applet.Applet) c.newInstance()).init();
            }catch(Exception e){
                 e.printStackTrace();
    }c:\temp\make.bat
    del *.cer
    del *.com
    del *.jar
    del *.class
    javac t\t.java
    javac test.java
    keytool -genkey -keystore harm.com -keyalg rsa -dname "CN=Harm Meijer, OU=Technology, O=org, L=Amsterdam, ST=, C=NL" -alias harm -validity 3600 -keypass password -storepass password
    keytool -genkey -keystore har.com -keyalg rsa -dname "CN=Har Meijer, OU=Technology, O=org, L=Amsterdam, ST=, C=NL" -alias har -validity 3600 -keypass password -storepass password
    jar cf0 test.jar test.class
    jar cf0 tt.jar t\t.class t\t$1.class
    jarsigner -keystore harm.com -storepass password -keypass password -signedjar sTest.jar test.jar harm
    jarsigner -keystore har.com -storepass password -keypass password -signedjar t.jar tt.jar har
    del *.class
    del test.jar
    del tt.jar
    pause

  • Problem loading element from a xmlHttpRequest

    I must be losing my mind... But this is what I am facing:
    I have a site that's basically built around the xmlHttpRequest object.
    Homepage --> xmlHttpRequest --> loads pageA.php into element of Homepage
    Homepage loads pageA.php to populate a tag. Once pageA.php is loaded, a user can make another xmlHttpRequest call to load another page to populate another element within the "pageA.php" page.
    pageA.php (now within homepage) --> xmlHttpRequest --> loads pageB.php into element of pageA.php
    This is when sh*t hit the fan... Safari (as well as Shiira, which uses Safari's rendering engine as I understand it... but strangely, Camino takes it ok) complains with an error "TypeError - null value". Has anyone had this kind of problem happened to them before?
    My initial guess is that when is loaded, Safari is actually blind to it. So when pageA.php makes the xmlHttpRequest call to the server to populate it, Safari thinks that never existed and complains that it's a null value...
    Any help/suggestion/workaround or just a rebuttal theory (or to correct my baseless assumption) is welcome...
    Old school PowerBook G4 800Mhz   Mac OS X (10.4.7)  
    Old school PowerBook G4 800Mhz   Mac OS X (10.4.7)  

    I was having a similar problem. Are you using innerHTML or appending a childNode? I was appending a childNode each time but trying to use the same ID without deleting the first one. Here is how I solved mine with some help from ##javascript on freenode.
    var removeMe = document.getElementById('someID');
    if(removeMe){ removeMe.parentNode.removeChild(removeMe); }
    then proceed with your ajax routine.

  • How to load model from one DC to other ?

    Hi ALL,
    I have created a WebDynpro DC (say A) , and created a EJB Model (in this case , but can be any Model) and exposed the same as public part.
    How do i use this from some other WebDynPro DC (say B)?
    I need to load that model created in A from the B and use it for creating the model nodes at runtime and using it for getting the data (All through Dynamic programming )?
    Regards,
    Madhusudhan

    Hi madhusudhan,
                               Hope this will help
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115</a>
    <a href="/people/sap.user72/blog/2006/07/27/arfc-without-model-nodes-you-must-be-joking-right:///people/sap.user72/blog/2006/07/27/arfc-without-model-nodes-you-must-be-joking-right
    regards
    Sumit

Maybe you are looking for