Java 1.6 Performance

I am trying to assist one of our users with a report she is building.
Using Discoverer 10g web version:
She added a “new total” of type sum on the quantity field. It totals fine except that the “Sum:” label often appears on the wrong lines. For example, the first grouping is correct. The 2nd grouping is missing the "Sum" label where it displays the total. The 3rd grouping has “Sum:” on both the item line and the total line.
However, I also have access to the desktop version. So I opened the report with desktop and it works fine. The Sum label appears where it should without any problems. Each individual line item has no "Sum" label, and every "total" line has the "Sum" label.
I can only assume the report is put together properly, and that the problem lies somewhere with the web version. Any ideas? Could it be an issue with Java? Our office has had serious incompatabilities Java 6 and Discoverer, so I have had all Discoverer users PCs rolled back to Java 1.4.2.
Oh, and the rest of our users do not have access to the desktop version. So, they can't simply use desktop for this report.
Thanks for any help!
Original question has been answered. See new Java 1.6 topic below from Michael.
Message was edited by:
user527082
Edited by: user527082 on Dec 9, 2008 11:01 AM

Hi
I'm interested to hear how anyone gets on with trying the Sun Java 1.6 mentioned in the previous reply. So far eveyone of my clients who has tried 1.6 it has seen a real slowing down of the system, especially during log in. While no specific bugs or bad functionality have happily been reported it is the performance that worries me.
Discoverer Plus has long been notorious for not performing as fast as Desktop and this has been the subject of many threads on this forum over the years. However, some of the more recent cumulative patches seem to have improved peformance no end to the point where it is almost on par with Desktop.
However, Java 1.6 seems to have reversed that trend for my clients so I'm not keen to recommend it until I see real evidence that it really is ok to use.
Therefore, I issue an open challenge to everyone who is considering or actually using Java 1.6 to let us know how you get on. If anyone is able to make some base line performance figures and then compare these again after the upgrade please let me know. In particular, make note of how long Discoverer takes to log in to the database. I will be delighted to change my opinion if someone can convince me otherwise.
Best wishes
Michael

Similar Messages

  • Need  java code to perform refresh button action using swings and awt

    i need java code to perform refresh button action using swings and awt.please help me

    Wait ! Noboby ? OK, I'll do it
    public void onBtnAction ()
        if (!fresh)
            refresh ();
    }Seriously, did you expect anyone to answer such a cryptic question ?

  • Next-Generation Java 7 Plugin Performance on Windows 7 and IE 8

    Applet performance has historically been a black eye, to say the least, for Java Applets. Slow load times over today's networks are simply not tolerated by today's network standards. I'm currently supporting an Applet that is forced to move to the Java 7 Platform. As such, we are particularly sensitive to anything new that may further hinder applet performance. To that end, I've been doing quite a bit of benchmarking lately of Applet load times using various configurations with the Java 7 Plugin on Windows 7 using IE 8.
    To capture Java Applet load times, I've simply been marking the start time in Javascript from the HTML onLoad() event, and then calling out to a similar Javascript function to mark the end time from the bottom of the init() method in the Java Applet. I subtract the two times to get a general idea of how long it takes to load the applet.
    The best load times, so far, (when loading the JARs from the web server) occur when caching is employed (e.g., cache_option, cache_archive, cache_version). What I've noticed though, is that when everything else is the same, the performance is degraded by at least half when I check the 'Enable the next-generation Java Plug-in' in the Plugin Control Panel. Applet load times slow down by at least half when this option is enabled. When loading JAR files from the web server, with caching in effect, the applet load time performance is comparable to loading JAR files from the file system only when the next-generation plugin is not enabled. I assume this is because of the associated overhead of spinning-up this external JVM process, but I'm not certain.
    Does anyone know if this is a correct assumption? And if I'm correct, are there ways to speed up the loading of an applet when caching is used with the next-generation plugin? Is this another cold-start vs. warm-start issue for the JVM?
    My goal is to have applet load times for JARs loaded from the web server, using the next-generation plugin, as fast as when the JARs could be loaded from the local file system (which apparently is no longer possible using the next-generation plugin, sadly).
    Thanks!

    Thanks Igor.
    Web Browser: IE 8.0.76
    Java Plugin: 7u3 (1.7.0_03-b05)
    OS: Windows 7 Enterprise (32-bit)
    Server: Websphere 7
    Java Applet is in O&M phase and been around a while. Rich Internet Application with file system access requirements. Currently compiled with JDK 1.5. 10 JAR files total, 6 of which are third-party JARs. 4 JARs are custom and are signed.
    JAR1.jar -> 11077 bytes
    JAR2.jar -> 14207 bytes
    JAR3.jar -> 5093 bytes
    JAR4.jar -> 22233 bytes
    JAR5.jar -> 18722 bytes
    JAR6.jar -> 17578 bytes
    JAR7.jar -> 722237 bytes
    JAR8.jar -> 90688 bytes
    JAR9.jar -> 17521 bytes
    JAR10.jar -> 50686 bytes
    JSP Page is used to render the following HTML tags for loading the applet:
    <object classid="clsid:${UID}" name="preview" width="100%" height="300" id="poc">
    <PARAM name="java_code" value="com.loadfast.Applet.class"/>
    <param name="codebase" value="/www/applet"/>
    <PARAM name="cache_option" value="Plugin"/>
    <PARAM NAME="cache_archive" VALUE="
    JAR1.jar,
                        JAR2.jar,
                        JAR3.jar,
                        JAR4.jar,
                        JAR5.jar,
                        JAR6.jar,
                        JAR7.jar,
                        JAR8.jar,
                        JAR9.jar,
                        JAR10.jar
    "/>
    <PARAM NAME="cache_version" VALUE="
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11,
                        1.0.0.11"/>
    <PARAM name="type" value="application/x-java-applet"/>
    </object>
    Here's a brief synopsis of my test methodology:
    Assuming caching is the fastest performance I'm going to get by putting JARs on web server, goal was to determine if browser plugin and next-gen plugin will offer the same performance in terms of time to load the Applet.
    To test, I unchecked the 'Enable Next-Gen' plugin option in the Java Plugin. I updated the cache_version values for all JARs. I 'touched' all JAR files in the WAR (I use cygwin) and redeployed the WAR. I have a cli script that launches IE and points it at my applet. When the applet loads, a Javascript Alert box displays showing the number of milliseconds it took to load the applet. I document the time, quit the browser, and re-execute my script. I do this 10 times for each test scenario and take the average.
    The two basic test scenarios are using the Browser Plugin (not next-gen) and using the Next-Gen Plugin. That is the only variable I change between test scenarios. Here is the raw data I collected for each test scenario:
    Not Using Next-Gen Plugin (milliseconds):
    run1 run2 run3 run4 run5 run6 run7 run8 run9 run10
    1761 474 535 495 500 505 502 267 693 513
    Avg: 625ms
    Using Next-Generation Plugin (milliseconds):
    run1 run2 run3 run4 run5 run6 run7 run8 run9 run10
    5382 1529 983 1545 1622 1575 1544 1544 1545 1529
    Avg: 1880ms
    The time it takes to load for each first run indicates caching is happening as subsequent runs are faster. I verified that the JVM is not making http requests for cached JAR files by proxying these requests with Tcpmon just to confirm this was the case.
    I'm basically just looking for a logical explanation to account for the significant time difference that occurs from this Plugin configuration change. It seems to make logical sense to me that this can be explained by JVM Process start up time, but I'm looking for corroboration on that or another explanation.
    Thanks for any advice, help, etc. I'll start looking into JNLP and JAR index as well.

  • Java stored proc performance parsing XML docs

    Hi
    We are using ORACLE 8i(8.1.6). I have a JAVA Stored procedure that parses XML doc and returns tha values. If I am testing on the box, I get an avg. return time of 2 secs. If I have 20 users, my return time for all went to 25 to 35 secs?
    Are there any parameters on ORACLE I can modify to increase the performance. We are developing app for 1000 to 1500 users. I dont want to guess the time based on my test with 20 users.
    Any help will be greatly appreciated.
    Thank You
    Raju

    Raju,
    Oracle 8.1.7 should be better choice for you since it does have the XML stuff
    natively compiled.
    Regarding scaleability the JVM should scale
    very well. However let us know what you find.
    - Stefan

  • Java stored procedures performance ....

    I am currently evaluating the use of Java stored procedures, but
    have so far found the performance to be incredibly poor. If I
    write a simple piece of SQL to insert 1 row to a 2 column table
    via a standalone JDBC application, the average elapsed time over
    5 runs is approx 24 milliseconds. If I move the same piece of
    code to a Java stored procedure, the elapsed time increases (on
    average) to 28 seconds ! Surely this shouldn't be the case; I
    had expected the performance to increase rather than plummet as
    is the case. The DBA team cannot find anything amiss in the
    database, & we are basically scratching our heads as to what the
    problem is. Is there something fundamental that needs to be done
    the database for a Java implementation ??
    ANY IDEAS ANYONE ???????
    nb: database ver 8.1.5, running on Solaris 5.7
    regards,
    Paul.
    null

    Try running long queries. In 8.1.6, we are concentrating more
    on increasing the performance of JDBC driver inside the server.
    Paul Jones (guest) wrote:
    : I am currently evaluating the use of Java stored procedures,
    but
    : have so far found the performance to be incredibly poor. If I
    : write a simple piece of SQL to insert 1 row to a 2 column table
    : via a standalone JDBC application, the average elapsed time
    over
    : 5 runs is approx 24 milliseconds. If I move the same piece of
    : code to a Java stored procedure, the elapsed time increases (on
    : average) to 28 seconds ! Surely this shouldn't be the case; I
    : had expected the performance to increase rather than plummet as
    : is the case. The DBA team cannot find anything amiss in the
    : database, & we are basically scratching our heads as to what
    the
    : problem is. Is there something fundamental that needs to be
    done
    : the database for a Java implementation ??
    : ANY IDEAS ANYONE ???????
    : nb: database ver 8.1.5, running on Solaris 5.7
    : regards,
    : Paul.
    Oracle Technology Network
    http://technet.oracle.com
    null

  • Java program to perform binary addition,subtraction and modulus.

    i am a newbie to java and require ur urgent help plzzzz.
    i wanna perform binary addition,subtraction and modulus operation between two numbers of 512 bit without using java functions i.e by simple logics of control statements.i need to convert two 512 bit numbers passed as string into binary form, and then perform addition,subtraction and modulus operations on these two binary numbers and finally dipaly the result in decimal format.
    i think we may use full adder binary logic in this!!!
    please send me the java coding for these three operations as urgent as possible on my email.
    i would be highly obliged.
    thanks.
    sheetal.

    i have managed to make this code myself but i wanna learn the basics...so plz help me guyz...
    this is the code:
    package bytearrayopeations;
    import java.math.BigInteger;
    * @author sheetalb
    public class binaryadding {
    public static void main(String[] args) {
    BigInteger a = new BigInteger("123456");
    BigInteger b = new BigInteger("5121");
    String bb1 = a.toString(2);
    String bb2 = b.toString(2);
    String ss1 = null;
    String ss2 = null;
    String result = "";
    String carry="0";
    System.out.println("first value=" +bb1);
    System.out.println("second value=" +bb2);
    int k=bb1.length();
    int h=bb2.length();
    System.out.println("length 1="+ k);
    System.out.println("length 2=" +h);
    int p=h-k;
    //System.out.println("difference=" +p);
    int q=k-h;
    //System.out.println("difference 2=" +q);
    if(h==k)
    else if(h>k)
    for(int i=0;i<p;i++)
    bb1="0"+bb1;
    System.out.println("new value of first=" +bb1);   
    else if(h<k)
    for(int i=0;i<q;i++)
    bb2="0"+bb2;
    System.out.println("new value of second=" +bb2);
    StringBuffer sb1=new StringBuffer(bb1);
         StringBuffer sb2=new StringBuffer(bb2);
    bb1=sb1.reverse().toString();
         bb2=sb2.reverse().toString();
    //System.out.println("rev. buffer1=" +bb1);
    //System.out.println("rev. buffer2=" +bb2);
    for(int i=0;i<bb1.length();i++)
    ss1=bb1.substring(i,i+1);
    ss2=bb2.substring(i,i+1);
    System.out.println("value1=" + ss1 + " " + "value2=" + ss2);
    if (ss1.equals("0") && ss2.equals("0"))
    if (carry.equals("0"))
    result+="0";
    else
    result+="1";
    else if (ss1.equals("1") && ss2.equals("1"))
    if (carry.equals("0"))
    result+="0";
              carry="1";
              else
                   result+="1";
                   carry="1";
    else if (ss1.equals("0") && ss2.equals("1"))
    if (carry.equals("0"))
         result+="1";
                   carry="0";
                        else
                        result+="0";
    carry="1";
    else if (ss1.equals("1") && ss2.equals("0"))
    if (carry.equals("0"))
    result+="1";
    carry="0";
                   else
    result+="0";
    carry="1";
    System.out.println("sum=" result " " + "carry" + carry);
    result+=carry;
    StringBuffer sb3=new StringBuffer(result);
    result=sb3.reverse().toString();
    System.out.println("result is " +result); 
    System.out.println("Binary = "+ result + ", Decimal = "+Integer.parseInt(result,2));
    plz reply nw...

  • Java code to perform admin tasks

    Hi All,
    I am in need to develop a java program which allows me to perform add (new account creation)/ modify/delete/suspend/change password/ search operations on the groupwise accounts.
    Is this possible through java code or it has to be done using c++.
    Any inputs towards this will be highly appreciated. Thanks in advance
    Thanks,
    Gangadhar

    Wait ! Noboby ? OK, I'll do it
    public void onBtnAction ()
        if (!fresh)
            refresh ();
    }Seriously, did you expect anyone to answer such a cryptic question ?

  • Java webservice Call - Performance Issue

    I am running a multi value database on SOLARIS 10 and have JDK 6 (Latest Patch) installed, the issue i am having it that when i initiate the below command that i have a huge delay before the java process starts and performs, can anyone shed any light on this please?
    thanks
    java -jar /sanshare/java/PickToWebServiceAndBack_2.jar "https://wrpsoat:8002/soa-infra/services/default/GetARCustomerMasterTransactionWolcenAS/GetARCustomerMasterTransactionWolcenWS""GetARCustomerMasterTransactionWolcen""60000""<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:cus='http://something.co.uk/finsim/businessobjects/accountsreceivable/1.0/customerinvoicewolcenbim' xmlns:head='http:///enterprise/common/1.0/header' xmlns:cus1='http://something.co.uk/finsim/businessobjects/accountsreceivable/1.0/customerinvoicewolcenbio'> <soapenv:Header /> <soapenv:Body> <cus:CustomerMasterTransactionWolcenGetRq> <head:HeaderRq> <head:TransactionId></head:TransactionId> <head:ComponentId>1192121</head:ComponentId> <head:TransactionName>Wolcen_ARCustomerTransaction</head:TransactionName> <head:ServiceName>CallingWebService</head:ServiceName> <head:BatchId></head:BatchId> <head:Language>EN</head:Language> <head:FileName></head:FileName> <head:FilePath></head:FilePath> <head:Source>13</head:Source> <head:Target>1</head:Target> <head:HostName>machineName</head:HostName> <head:UserName></head:UserName> <head:UserRole></head:UserRole> <head:AdminEmail></head:AdminEmail> <head:ApplicationResponsibility></head:ApplicationResponsibility> <head:ControlFileFlag></head:ControlFileFlag> <head:EODFlag>Y</head:EODFlag> <head:TimeStamp>20130116T20:53:54</head:TimeStamp> </head:HeaderRq> <cus1:GetCustomerMasterRequest> <cus1:CustomerNumber>7023R02</cus1:CustomerNumber> <cus1:SessionID>16453_75234_aljt</cus1:SessionID> </cus1:GetCustomerMasterRequest> </cus:CustomerMasterTransactionWolcenGetRq> </soapenv:Body> </soapenv:Envelope>""""/sanshare/java/soalogs/""INET-10.3.204.152-1400|16453|75234927|1|SOA.DEBTORS.ACCOUNT"

    getting alot of errors that are similar to the below any idea what they mean, im not all that clued up on solaris so not sure what these mean:
    18590/1:     0.3983     stat64("/usr/jdk/instances/jdk1.6.0_38/jre/lib/sparc/server/libc.so.1", 0xFFBFD8F8) Err#2 ENOENT
    18590/1:     0.3984     stat64("/usr/jdk/instances/jdk1.6.0_38/jre/lib/sparc/libc.so.1", 0xFFBFD8F8) Err#2 ENOENT
    18590/1:     0.3985     stat64("/usr/jdk/instances/jdk1.6.0_38/jre/../lib/sparc/libc.so.1", 0xFFBFD8F8) Err#2 ENOENT
    18590/1:     0.3986     stat64("/usr/ccs/lib/libc.so.1", 0xFFBFD8F8)     Err#2 ENOENT
    18590/1:     0.3987     stat64("/usr/local/lib/libc.so.1", 0xFFBFD8F8)     Err#2 ENOENT
    18590/1:     0.3988     stat64("/usr/jdk/instances/jdk1.6.0_38/jre/lib/sparc/server/libc.so.1", 0xFFBFD8F8) Err#2 ENOENT
    18590/1:     0.3989     stat64("/usr/jdk/instances/jdk1.6.0_38/jre/lib/sparc/libc.so.1", 0xFFBFD8F8) Err#2 ENOENT
    18590/1:     0.3990     stat64("/usr/jdk/instances/jdk1.6.0_38/jre/../lib/sparc/libc.so.1", 0xFFBFD8F8) Err#2 ENOENT
    18590/1:     0.3991     stat64("/usr/ccs/lib/libc.so.1", 0xFFBFD8F8)     Err#2 ENOENT
    18590/1:     0.3991     stat64("/usr/local/lib/libc.so.1", 0xFFBFD8F8)     Err#2 ENOENT
    18590/1:     0.4025     stat64("/usr/jdk/instances/jdk1.6.0_38/jre/lib/sparc/server/libmd.so.1", 0xFFBFD9C0) Err#2 ENOENT
    18590/1:     0.4029     stat64("/usr/jdk/instances/jdk1.6.0_38/jre/lib/sparc/libmd.so.1", 0xFFBFD9C0) Err#2 ENOENT
    18590/1:     0.4031     stat64("/usr/jdk/instances/jdk1.6.0_38/jre/../lib/sparc/libmd.so.1", 0xFFBFD9C0) Err#2 ENOENT
    18590/1:     0.4032     stat64("/usr/ccs/lib/libmd.so.1", 0xFFBFD9C0)     Err#2 ENOENT
    18590/1:     0.4032     stat64("/usr/local/lib/libmd.so.1", 0xFFBFD9C0)     Err#2 ENOENT

  • Java.io.File performance and file stat on windows

    hi,
    i've written an application that needs to find out about a section of a file tree as fast as possible. For each file from a given directory it needs to know things like the files length, lastModified and if its a directory etc..
    My problem is that this is a bottleneck - the application is a end-user GUI and so the 20 odd seconds it can take is annoying, even with a progress bar. I'm not sure why its taking so long - i've not done the tests yet but am pretty sure that a native routine would be much faster.
    I'm thinking that each call to File.length or File.isDirectory returns to the disk per method invokation to see whats happened. Although this is correct, it would be nicer to able to say something like get me a snapshot of the file (so it collects all the information at the same time) and have an explicit method for updating the snapshot. Does anyone know if this is correct?
    thanks,
    asjf
    http://onesearch.sun.com/search/developers/index.jsp?qt=%2B+%2Bjava.io.File+slow&col=javabugs&category=&state=&query=java.io.File+slow

    hi,
    ShellFolder also seems to work great :)
    It seems to have the same performance characteristics as the snapshot code on the network drive, but for local disk drives it seems maybe 10% faster again - why is this not part of the j2se libraries??? maybe JSR203 will provide something equivalent..
    thanks again,
    asjf
    import java.io.*;
    import java.lang.reflect.*;
    public final class FileTricks {
       private static Class cShellFolder, cShellFolderManager;
       private static Constructor ctrShellFolderManager;
       private static Method mCreateShellFolder;
       private static Object sfm;
       static {
          try {
             cShellFolder = Class.forName("sun.awt.shell.ShellFolder");
             cShellFolderManager = Class.forName("sun.awt.shell.ShellFolderManager");
             ctrShellFolderManager = cShellFolderManager.getDeclaredConstructor(new Class [] {});
             ctrShellFolderManager.setAccessible(true);
             sfm = ctrShellFolderManager.newInstance(new Object [] {});
             mCreateShellFolder = cShellFolderManager.getDeclaredMethod("createShellFolder",new Class [] {File.class});
             mCreateShellFolder.setAccessible(true);
          } catch(Exception e) {
             e.printStackTrace();
             cShellFolder = cShellFolderManager = null;
             ctrShellFolderManager = null;
             mCreateShellFolder = null;
             sfm = null;
       public static final File attemptReplaceWithShellFolder(File actual) {
          File result = actual;
          if(cShellFolder != null && !cShellFolder.isInstance(actual)) {
             try {
                result = (File) mCreateShellFolder.invoke(sfm, (new Object [] {actual}));
                System.out.print(".");
             } catch(Exception e) {
                System.out.print("#");
          return result;
       public final static class FileSnapshot {
          private static Method mGetBooleanAttributes;
          private static int BA_DIRECTORY, BA_EXISTS, BA_REGULAR, BA_HIDDEN;
          private static Object fs;
          public final boolean isDirectory, exists, isRegular, isHidden;
          public FileSnapshot(File f) {
             boolean e, d, r, h;
             try {
                int ba = ((Integer)mGetBooleanAttributes.invoke(fs, new Object [] {f})).intValue();
                d = (ba & BA_DIRECTORY)!=0;
                e = (ba & BA_EXISTS)!=0;
                r = (ba & BA_REGULAR)!=0;
                h = (ba & BA_HIDDEN)!=0;
             } catch(Exception x) {
                d = f.isDirectory();
                e = d || f.exists();
                r = f.isFile();
                h = f.isHidden();
             isDirectory = d; exists = e; isRegular = r; isHidden = h;
          static {
             try {
                Class cFile = Class.forName("java.io.File");
                Class cFileSystem = Class.forName("java.io.FileSystem");
                mGetBooleanAttributes = cFileSystem.getDeclaredMethod("getBooleanAttributes", new Class [] {File.class});
                Field fBA_EXISTS = cFileSystem.getDeclaredField("BA_EXISTS");
                Field fBA_REGULAR = cFileSystem.getDeclaredField("BA_REGULAR");
                Field fBA_DIRECTORY = cFileSystem.getDeclaredField("BA_DIRECTORY");
                Field fBA_HIDDEN = cFileSystem.getDeclaredField("BA_HIDDEN");
                Field fFs = cFile.getDeclaredField("fs");
                mGetBooleanAttributes.setAccessible(true);
                fFs.setAccessible(true);
                fBA_EXISTS.setAccessible(true);
                fBA_REGULAR.setAccessible(true);
                fBA_DIRECTORY.setAccessible(true);
                fBA_HIDDEN.setAccessible(true);
                BA_EXISTS = ((Integer)fBA_EXISTS.get(null)).intValue();
                BA_REGULAR = ((Integer)fBA_REGULAR.get(null)).intValue();
                BA_DIRECTORY = ((Integer)fBA_DIRECTORY.get(null)).intValue();
                BA_HIDDEN = ((Integer)fBA_HIDDEN.get(null)).intValue();
                fs = fFs.get(null);
             } catch(Exception e) {}
    }

  • Java library for performance measuring in Linux

    Hi everybody!
    I'm going to extend an agent-based system. My agents should be able to evaluate performance data like eg CPU workload in Linux systems.
    Are there any java libraries, which are able to read out that information??
    Thanks in advance

    Not in standard java.
    You will need some OS specific stuff that you either write or acquire to gather that information. If you need to write it then you will be looking at either JNI or Runtime.exec().

  • XML to java object AND Performance

    Hi,
    I read some article about marshalling a XML file to Java Object (like Castor, XML Beans projects...)
    To resume: I would like to marshal a XML doc (from XML to Java object. Later I would like to put these objects on a SGBD...). Unfortenaly I suppose that approach is to expensive on term of performance? Supposing that my xml doc contain 100 data's occurances, XML bean woulkd create 100 objects corresponding. My problem is that I don't want that the all 100 objects live in the same time on memory. For example, my code will read sequential, the xml occurances (like a Sax parser), create 10 datas objects (standby), put these in the data base, and destroy these objects before...iteratively create the next 10 objects...
    It is possible ? Can anybody help me?
    Thank

    On the article: Java Architecture for XML Binding (JAXB)
    (http://java.sun.com/developer/technicalArticles/WebServices/jaxb/)
    I found maybe a response?
    "...in other words, you can do a SAX parse of a document and then pass the events to JAXB for unmarshalling. "
    But somebody could help me to write the code to do that?

  • Need to improve Java Studio Creator performance

    Can anyone has a suggestion on how to improve the performance of Java Studio Creator? JSC works fine when you have a less than 50 java files but when your building a large project JSC IDE works slow in terms of loading the whole project, modify the page in design layout, drag and drop a component or even modifying some java codes.The PC had a 2 GB memory. I'm grateful for any suggestion you can give. :D

    Hello, i supossed u r using Windows right?, and running in a x86 machine?. Ok well, even Windows XP is not so "Strong" enough to run Creator with a decent performance, i can say this because i have at home a PC Windows XP Pro, Intel Core 2 Duo Processor, 2 GB RAM, and HD Seagate Barracuda 120 GB ATA and Creator Still hangs some time, my suggestion is:
    Install Solaris in your pc, I've installed Solaris 10 11/6 in the pc ans runs great (the x86 vesion). I have a Sun Ultra 20 with 1GB RAM and 3 projects at work with more than 150 pages and works fine.
    Belthazor

  • Need help with Java Script to perform a calculation in Adobe Acrobat Pro 9 form

    I have a form (test) that I am creating in Adobe Acrobat Pro 9.
    I need help creating custom Java Script so I can get the desired answer.
    1) There are several questions in each group that require a numerical answer between 0-4
    2) There is a total field set up to sum the answers from all above questions
    3) The final "score" takes the answer from Step 2 above and divides by the total possible answer
    Any help on what Java Script I need to complete this would be greatly appreciated!
    I've attached a "spreadsheet" that shows it in more detail as well as what formulas I used in Excel to get the desired end result.
    Thanks in advance.

    Have you tried the "The field is the average of:"?

  • Java deadlock and performance issue

    Hi Team,
    there is one problem in my application, facing performance problems.
    Here is the situation, please advice if you have some idea with below
    situation.
    Problem :
    There are two events with me and sharing the data from single table.
    Now both the events are running sequentially in a single thread. So
    that it is taking lot of time to process these two events
    sequentially.
    My approach : Now I want to try the above two events with
    multi-threaded event process in parallel. But fearing about the
    deadlock situation which will occur at the time of update data of the
    table.
    Need your help : Please let me know if there is any solution to
    avoid deadlock by using multi thread(as above situation) or any other
    alternate solution to the same.
    your help will be appreciated.

    Nethi_Ravi wrote:
    I can use synchronize but both the threads are updating single table to update the data. There may be chances of deadlock. My application scenario is some what similar to this situation, to understand more clear I have given the above exmple.
    Moreover syncronize keyword is the main problem for deadlock.
    -RaviI think you are confused about what a deadlock is. Deadlock is not same as lock. When a thread updates a table, it acquires a lock more precisely a row lock on the row its updating. When you write a synchronized static method, you are telling threads to acquire a class lock (different from table lock) which is bound to block one of the threads.
    If the synchronized method calls another synchronized method, you can run into a deadlock. When 2 threads wait on each other to release a lock, thats a deadlock situation. So make sure the synchronized method doesn't call another synchronized method and you will NEVER run into a deadlock!

  • Java code to perform the erosion operation on the image

    hi friends
    I want to perform the morphological erosion operation on an image
    can u help me how to write code for this operation?
    waiting for your reply....

    I assume from your descrption this is not a new computer and that you have been using Premiere Elements 9 on this machine for at least two or three years (since version 9 came out three years ago).
    If the program worked in the past and has suddenly starting "acting out", something has likely gotten corrupted -- possibly during your upgrade to Mavericks or simply due to your computer being more than a year or so old.
    First, run a check on your fonts, as described in this FAQ. Corrupted fonts on a Mac is one of the most common causes of problems on OSX.
    http://forums.adobe.com/thread/940869?tstart=0
    You may also want to run a disk verification on your hard drive. Do this by opening Finder, going to Utilities and opening the Disk Utilities app.
    You can also try launching Premiere Elements while holding down the Opt+Cmd+Shift keys on the left side of your keyboard to clear any corruptions in the preferences file.
    If all of that fails to fix things or indicate a problem, I'd recommend you uninstalling Premiere Elements and then reinstall it. (Don't worry. You won't lose any work in progress.)

Maybe you are looking for