Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: Problems with people opening documents concurrently in java based document viewer

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problems with people opening documents concurrently in java based document viewer

    I am testing a document management system that uses Java to display documents in a special viewer application. We have encountered a strange issue where if multiple people attempt to view/open documents at the same time, the documents do not open and the viewer exhibits various strange behaviour:

    1. Displaying Java security warnings - "Java has discovered application components that could indicate a security concern" - Then even if the "No" option is cliked on this dialogue, the document still does not open in the viewer: instead it displays an "Error.Click for details" link in the viewer window. Upon clicking the link, these error details display in a java console window like this:

    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\
    ----------------------------------------------------
    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>
    ----------------------------------------------------

    java.lang.SecurityException: class "com.xyzcorp.test.applet.test" does not match trust level of other classes in the same package
    at com.sun.deploy.security.CPCallbackHandler$ChildEle ment.checkResource(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.checkResourc e(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.SecurityException: class "com.docviewerapplication.test.applet.docviewerapp lication" does not match trust level of other classes in the same package



    2. The viewer simply doesn't open the document, and just displays the java icon.


    3. The window that the viewer should open in asks if you want to install the latest version of Java. If you accept, it goes through the whole process of uninstalling the current version of java, and reinstalling a new one, then after all this, the document still doesn't open ! However, simply shutting down the browser and reopening seems to stop this particular facet of the problem from occuring, at least for a while anyway.


    A workaround for these problems has been found where changing the "Mixed code (sandboxed vs. trusted) security verification" option to "Disabe verification (not reccomended)" in the advanced options tab in the java control panel on the client PC you are opening the documents from really seems to reduce or stop these problems from occuring. However, obviously this is not a long term solution when real people will be using the system, and we still get errors (different ones) when 2 or more people try and open documents at the same time, allbeit not as frequently with the java option described above changed.

    Any help / advice would be hugely appreciated, we have been stressing about this problem for months now,

    Thankyou,

    Tim
    Last edited by Tim246246; September 15th, 2011 at 07:08 AM.


Similar Threads

  1. Hello Java People! :D
    By StandbyExplosion in forum Member Introductions
    Replies: 2
    Last Post: August 25th, 2011, 08:33 AM
  2. java code to split text documents into paragraphs and sentences
    By draksha in forum Java Theory & Questions
    Replies: 5
    Last Post: August 17th, 2011, 05:06 AM
  3. Java Image Viewer undo function
    By mccaffrey in forum AWT / Java Swing
    Replies: 0
    Last Post: April 21st, 2011, 04:28 PM
  4. Hiya people who are much smarter at Java than me
    By jwill22 in forum Member Introductions
    Replies: 2
    Last Post: October 6th, 2010, 02:58 AM
  5. Problems with XPathExpression on memory built Document
    By JRSofty in forum File I/O & Other I/O Streams
    Replies: 5
    Last Post: December 12th, 2009, 08:18 PM