How to get Java source in applet stack trace to debug Java security manager

How can I get line numbers for Java source in stack traces for my applet? I'm having a problem with my code-signing certificate. On one of my applets, I consistently get a NullPointerException inside the security dialog code in the JDK. As a result, either the "trust this applet" dialog never appears, or even though it appears, it defaults to untrusted because of the exception, so I can't access any local files (and that's a bit of a problem for an applet whose sole purpose is to upload files to our server). I unzipped src.zip in my JDK directory and set the debug flag for my Ant <javac> task as well as set debuglevel to "lines." Anything else? Here's the trace that I'm getting so far. See that after the NullPointerException it assumes that the user has denied permission. If I could read this Java source maybe I could figure out why it hates my code-signing certificate (jarsigner, BTW, never complains when I verify my jar).
security: Blacklist file not found or revocation check is disabled
security: Accessing keys and certificate in Mozilla user profile: null
security: Loading Root CA certificates from D:\Program Files (x86)\Java\jre6\lib\security\cacerts
security: Loaded Root CA certificates from D:\Program Files (x86)\Java\jre6\lib\security\cacerts
security: Loading Deployment certificates from C:\Users\Rich\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
security: Loaded Deployment certificates from C:\Users\Rich\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Validate the certificate chain using CertPath API
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: Start to check whether root CA is replaced
security: The root CA has been replaced
security: No timestamping info available
security: Found jurisdiction list file
security: Start checking trusted extension for this certificate
security: Start comparing to jurisdiction list with this certificate
security: The CRL support is disabled
security: The OCSP support is disabled
security: This OCSP End Entity validation is disabled
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
security: Checking if certificate is in Deployment session certificate store
java.lang.NullPointerException
     at com.sun.deploy.ui.UIFactory.showSecurityDialog(Unknown Source)
     at com.sun.deploy.security.TrustDeciderDialog.showDialog(Unknown Source)
     at com.sun.deploy.security.X509Util.showSecurityDialog(Unknown Source)
     at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByTrustDecider(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCodeSources(Unknown Source)
     at com.sun.deploy.security.CPCallbackHandler$ParentCallback.strategy(Unknown Source)
     at com.sun.deploy.security.CPCallbackHandler$ParentCallback.openClassPathElement(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$700(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
     at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
     at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(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)
security: User has denied the priviledges to the code
security: Adding certificate in Deployment denied certificate store
security: Added certificate in Deployment denied certificate store
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Validate the certificate chain using CertPath API
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: Start to check whether root CA is replaced
security: The root CA has been replaced
security: No timestamping info available
security: Found jurisdiction list file
security: Start checking trusted extension for this certificate
security: Start comparing to jurisdiction list with this certificate
security: The CRL support is disabled
security: The OCSP support is disabled
security: This OCSP End Entity validation is disabled
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment denied certificate store

Rats, now that I look at the stack trace and compare to what's in the JDK srce.zip, it appears that most of this code is not part of the JDK source. I don't see any com/sun/deploy, etc.

Similar Messages

  • How to get rid of "Warning: Applet Window" in third party java applet code

    Hello I am having a hard time figuring out how to disable this darn Warning applet window that pops up and says "unable to detect an audio device" when it loads onto a comp that has no sound card! It is an audio streaming applet which was discarded by the developer and he does not provide any support for it....
    I know zero about java and I am figuring this is something simple that any typical programmer familiar with java could figure out in five minutes.....
    the applet is called audio centric and is located here:
    http://javaboutique.internet.com/AudioCentric/
    I appreciate anyones time who could help me out!

    Sorry, there is not source code deployed and I'll not encourage you to decompile it, instead contact developer. They will appreciate very much your claim.
    Regards.

  • How to get Line numbers in KVM stack traces

    Hello!
    I am fairly new to kvm programming and might have missed the obvious. When my program dumps a stack trace under kvm it gives me an offset (I dont know what the number corresponds to) from the method but not source line numbers like I am used to seeing under J2SE. I complie the code using -g and run it using kvm_g. For example, I see soemething like
    java.lang.NullPointerException
    at myclass.mymethod(+5)
    at parentclass.parentmethod(+10)
    Where I dont know what the +5 or +10 stand for as it relates to my source code.
    Can somebody help with trying to correlate the stack trace to my source code.
    Thanks.
    Ranga.

    I would like to know too. Has anyone found an answer?

  • How to get the source code of Java Concurrent Program?

    Hi,
    How to get the source code of Java Concurrent Program?
    Example
    Programe Name:Format Payment Instructions
    Executable:Format Payment Instructions
    Execution File Name:FDExtractAndFormatting
    Execution File Path:oracle.apps.iby.scheduler
    Thanks in advance,
    Senthil

    Go on Unix box at $JAVA_TOP/oracle/apps/iby/scheduler
    You will get class file FDExtractAndFormatting.
    Decompile it to get source code.
    Thanks, Avaneesh

  • How to get the source code of an HTML page in Text file Through java?

    How to get the source code of an HTML page in Text file Through java?
    I am coding an application.one module of that application is given below:
    The first part of the application is to connect our application to the existing HTML form.
    This module would make a connection with the HTML page. The HTML page contains the coding for the Form with various elements. The form may be a simple form with one or two fields or a complex one like the form for registering for a new Bank Account or new email account.
    The module will first connect through the HTML page and will fetch the HTML code into a Text File so that the code can be further processed.
    Could any body provide coding hint for that

    You're welcome. How about awarding them duke stars?
    edit: cheers!

  • How to get the source code of a PRT application in the portal

    Hi!
    Does anybody know how to get the source code of a PRT application in the portal?
    Thanks in advance,
    Celso

    Celso,
    If its Java-based code have a look at the properties of an iView that belongs to the application in question and copy the value of the Code Link parameter e.g. 'com.sap.pct.hcm.rc_vacancyrequestov.default'.
    Search the Portal installation directory under /j233/cluster/server/ for a .par.bak file of the same name, removing .default from the codelink parameter
    e.g. com.sap.pct.hcm.rc_vacancyrequestov.par.bak
    Copt this locally and import into Netweaver Developer Studio. You will have to decompilte the class files with a decompiler such as DJ Decompiler or Cavaj (search with Google).
    Cheers,
    Steve

  • I imported different trips to different catalogs on different external hard drives.  Later renamed external HDs.  I want to combine catalogs and have my source (NEF) files all together on one drive.  I'm not really sure how to get those source files back

    I imported different trips to different catalogs on different external hard drives.  Later renamed external HDs.  I want to combine catalogs and have my source (NEF) files all together on one drive.  I’m not really sure how to get those source files back and get rid of the extra long path to where the source files are now located. If I re-link files to their current catalog (many different paths to files in same catalog) can I merge (import catalogs) into one master catalog?  Will the new (Master catalog) have the correct link to the source file?  If not, how or can this be done?
    I have tried to explain my situation as clearly as I can.  Do you understand my situation?
    This maybe something you don’t have time to help me with.  If not can you suggest somewhere I can get an answer?  I really need help.  PLEEEZZZ HELP ME.
    Bruce Schuerman
    Norman, OK
    405_514-4875 (call collect)
    [email protected]

    Is there any solution (other than buying
    I really think 'buying' is the best solution on this one.  Ideally, you would have at least five internal hard drives.
    System
    Projects
    Cache/Scratch
    Media
    Exports
    Use externals and network drive only for backup.

  • How to get the source code of an HTML page in Text file Through J2EE

    How to get the source code of an HTML page in Text file Through J2EE?

    Huh? If you want something like your browser's "view source" command, simply use a URLConnection and read in the data from the URL in question. If the HTML page is instead locally on your machine, use a FileInputStream. There's no magic invovled either way.
    - Saish

  • Where to  find the pcui_gp  components ,How to get the source code of those

    Hi All,
    Can anybody tell the exact location wher the pcui_gp components will be stored if they are  not appearing.
    And another question is how to get the source code of the pcui_gp for customization.
    anybody working on these compoents please help me.
    answers will be rewarded.
    thanks and regards,
    anand

    Hi Arun,
    I am unable to see the pcui_gp components in the DTR ,I require this in order to get the source code of one of its component.
    Can you please tell me the step by step procedure getting those pcui_gp components from J2ee engine to the  dtr or  NWDI.
    If there are any documents on pcui_gp components exclusively please do forward to my mail id [email protected]
    Thansk and Regards,
    Anand.

  • How to get the source of a strange posted pic into my camera roll?

    I got a strange pic put into my camera roll, this pic is most likely put by an app which has an access to my photo gallery, all I want to know is how to get the source which put this image into my camera roll, I have a punch of apps that have a photo access grant and really don't know to disable all of these apps because of only one of them.
    p.s: the apps with photo access in my device (ProCam, CameraArtFXFree, Photo Editior-, Instagram, Poster++, Photo Vault, Facebook, Tango, Viber, Y! Messenger, Ipadio, Line, WhatsApp) And the only opened apps when this photo pushed to my Camera Roll were (Viber, Tango, Line, Whatsapp).
    Thanks in advance.

    >
    Nitesh Kumar wrote:
    > Hi,
    >
    > FM to get the program source code: RPY_PROGRAM_READ
    >
    > By using this FM you can get the program name(say report_name) and then you can use
    >
    > READ REPORT report_name INTO itab
    >
    > Thanks
    > Nitesh
    u dont need the last statement the FM itself returns an itab with code in it.

  • How to get database connection in applet

    Hi,
    I am trying to prepare database connection in applet. After preparing connection with database it'll read same values from table.
    At the time of development it works fine. I have used esclipse IDE for coding and testing.
    But when I try to call that applet from browser. It is giving ClassNotFound exception.
    Does anybody know How to get database connection in applet ?
    Please help me if anybody know solution for this.
    Thanks,
    Rajesh

    As per my knowledge is conserned
    1 u can get the database connection in a jsp page and u send the result set as param to the applet and u can use retrieved values as if they were of the same applet if u r interested i can send the db connetion coding for jsp my id [email protected]

  • What caused the "java.lang.OutOfMemoryError (no stack trace available)"?

    We just met another problem: after I modified the BDM file on TUXEDO and bdmconfig.xml
    file on WEBLOGIC (with no ACL or authentication setup on both side), when I booted
    up the WebLogic 6.1 server, the ULOG file of Tuxedo says that the connection has
    been set up, however, I got the "java.lang.OutOfMemoryError (no stack trace available)"
    on the WebLogic side. I tried to enlarge the Java heap size even to 1024m, but it
    has no use. If I delete the WTC setting then WebLogic works fine.
    Could somebody helps me on this? Because we have a very tight schedule on development,
    I do appreciate your quick response.
    Thanks!
    Bill

    Hi,
    I am getting same OutofMemoryError. I could not understand change in bdmconfig.xml
    removed the outofmemory error.
    what is bdmconfig.xml file and you specified port#?
    I could not able to see any port # in the config.xml...
    any help is appreciated.
    RajKumar
    "Bill Yuan" <[email protected]> wrote:
    >
    Bob,
    Another expert in our company told me that we should use a different
    PORT# (kind
    of DUMMY port) in the bdmconfig.xml file on WebLogic side, instead of
    the real WebLogic
    instance PORT#. We tried and the OutOfMemoryError disappeared, and the
    WTC connection
    works OK. We don't know why should we do this, maybe it is a bug or some
    hardware
    requirement.
    Anyway, thank you very much for your help and quick respondse!
    have a good day!
    Bill
    Bob Finan <[email protected]> wrote:
    Bill,
    Check the logs to see if the out of memory is the only execption orif
    it is the last exception. It could be that there is something happening
    earlier on that you are missing.
    There are also other JVM problems that can arise besides the heap
    size. The Hotspot VM had an issue where you needed to set a maximum
    permanent generation size( helps garbage collection tuning I think).
    (-XX:MaxPermSize=32m for jdk130,64m for jdk131). It comes into
    play when you are loading many classes.
    Bob Finan
    Bill Yuan wrote:
    Bob,
    Thanks! We didn't set MTYPE in both BDMCONFIG files in Tuxedo and
    WebLogic
    sides.
    From the WTC document and Tuxedo document, it says that if MTYPE is
    not
    specified,
    the default is to turn ENCODING/DECODING on. Do you see any other
    possibilities?
    Thanks!
    Bill
    Bob Finan <[email protected]> wrote:
    Bill,
    One possible reason is if MTYPE is set, in the DMCONFIG on the
    Tuxedo side, as part of your remote domain definitions of the WTC
    domain. This should not be set or set it to NULL. This problem occurs
    because encoding/decoding is always needed between java and non-java
    domains.
    Bob Finan
    Bill Yuan wrote:
    We just met another problem: after I modified the BDM file on TUXEDO
    and
    bdmconfig.xml
    file on WEBLOGIC (with no ACL or authentication setup on both side),
    when
    I booted
    up the WebLogic 6.1 server, the ULOG file of Tuxedo says that the
    connection
    has
    been set up, however, I got the "java.lang.OutOfMemoryError (no
    stack
    trace available)"
    on the WebLogic side. I tried to enlarge the Java heap size even
    to
    1024m,
    but it
    has no use. If I delete the WTC setting then WebLogic works fine.
    Could somebody helps me on this? Because we have a very tight scheduleon development,
    I do appreciate your quick response.
    Thanks!
    Bill

  • Error Message When I Invoke my web services : Exception source is: mscorlib' , Stack Trace :System.Runtime.Serialization.SerializationException: Type 'System.ServiceModel.ExceptionDetail' in Assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral,

    Exception source is: mscorlib' , Stack Trace :System.Runtime.Serialization.SerializationException: Type 'System.ServiceModel.ExceptionDetail' in Assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked
    as serializable.
       at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)
       at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)
       at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()
       at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter,
    SerializationBinder binder)
       at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
       at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
       at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeObject(Object obj, MemoryStream stm)
       at System.AppDomain.Serialize(Object o)
       at System.AppDomain.MarshalObject(Object o)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp; msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)

    Hi,
    The forum is main about installation problem of .NET Framework. Your problem is out of support in the forum. You should post your thread to the forum:
    https://social.msdn.microsoft.com/Forums/en-US/clr/threads
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • How can i do a  NW07 double stack system to standalone java engine

    Hi all,
    i need a hand to this task.
    So i have an Abap (BI) + Java (EP) double stack system which connect to an other Abap (BI, this is the backend system). The abap system from the double stack is useless. So i would like to reduce the double stack to the standalone java. Is there anyboday have any experiance to how to do this?
    I have tried to export as standalone and double stack too, the source system but at the install only JAVA i have got an error message:
    "Importing the Java dump from a double stack system into a Java Only system is not supported."
    So my question is , how can i export the java db from the double stack system for the new only java system?
    I hope some of them have an idea....
    Thank you very much for your help,
    Beeekaa

    Beeekaa,
    You are trying something very interesting. I have never done it myself but I think below steps may work.
    Source system: ABAP + Java system.
    Export only java using database specific tools u2013 this will export only SDM content.
    Take a database backup u2013 Here you will backup all the tablespaces including ABAP tablespaces.
    Target system u2013 Java only.
    Restore the database. Delete all the tablespaces other than SAPSR3DB.(this is where we have Java content)
    Launch SAPINST and try to import java, so that you will get the SDM content and it runs Java migration tool and changes the JAVA ID that we see in configtool to new number.
    Again I am just assuming here, I have not tried it.
    Thanks,
    Venkat.

  • How to get a source file?

    I'm using Java 1.6 and extending AbstractProcessor to handle a custom annotation.
    What I want to do is load the source file in which my annotation is found and extract a few lines of the code from around the annotation into a text file and save the text file.
    I'm trying to use
    compiler#getResource(...) to get a reference to a FileObject for the source file. I have the correct package and file name for the source but I have been unable to determine how I get the root of the source path from which all the source files originate. If I try the code with source root hardwired it all works i.e I prepend the source root to the package name and call
    FileObject fObj = filer#getResource(StandardLocation.SOURCE_PATH, <src_root_string>+<package string>, fileName.java)
    then the fObj correct, but this is not a practical solution. Without the <src_root_string> I just get a file not found exception.
    So my question is how can I discover the source root folder from inside the AbstractProcessor and so not need to hardwire it in?
    Alternatively is this the best approach? Should I try another approach?
    Thanks

    Mike,
    You don't need a File to do what you want. Even if you could, it would be wrong to use a file.
    It would be wrong, because the compiler might not by using a JavaFileManager that is actually backed by a filesystem. It could be backed by some form of repository such as a database, or it could be backed by a transient in memory file system ( An example of the latter is the [annotation processor test framework|https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/testing/package-summary.html] in hickory)
    But probably of more interest to you, you don't need to because you can simply [get an InputStream|http://java.sun.com/javase/6/docs/api/javax/tools/FileObject.html#openInputStream()] from the FileObject returned from [filer.getResource(...)|http://java.sun.com/javase/6/docs/api/javax/annotation/processing/Filer.html#getResource(javax.tools.JavaFileManager.Location,%20java.lang.CharSequence,%20java.lang.CharSequence)] and read it.
    You might also find the [Compiler Tree API|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/index.html] useful. The Compiler Tree API is available to annotation processors running in Oracle's (Sun's) javac, but not in other compilers (possibly limiting portability).
    With this API you can [convert |http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/Trees.html#getPath(javax.lang.model.element.Element)] the Element representing the annotation to a Treepath then [get the leaf node|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/TreePath.html#getLeaf()] and from that tree [obtain its offsets|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/Trees.html#getSourcePositions()] within the source file.
    Bruce

Maybe you are looking for

  • Open Purhcase Orders

    Hello all, Can anybody tell how to find Open Purchase Orders? My requirement is as follows. I have Material No, from this i have to display the BOM with Vendor Name. When i have all the material, i have to pick the Vendor No from the open purchase or

  • Qosmio F30 starts with blue stripes during the start screen of Vista

    My Qosmio F30-114 runs since years without Problems with Vista Ultimate. Since some Days there is a huge Problem. The Qosmio starts with blue stripes during the start screen of vista. So I deleted the driver of the graphic card and used the standard

  • Runtime calculations in PDF forms

    Good day! My task is to make a PDF form of the quantity of the material on the factory with some runtime calculations. Just like these: MATNR | MAKTX | LGORT | LABST | MEINS 100 | Material_1 | 0001 | 100 | KG 100 | Material_1 | 0002 | 300 | KG       

  • Multiple Reconcilation Accounts

    Hi gurus I am getting one problem. As i am maintained Multiple alternative reconcilation accounts to vendor/customer. Because at the invoice posting i want select suitable reconcilation account. But the Reconcilation account field was displed as non-

  • SEM-BCS on SAP-BW master data alignment

    We are implementing SEM-BCS rel 3.2 on SAP-BW 3.2 In the SEM infoproviders some standard BW info-objects are used such as 0CO_AREA, 0COMPANY etc. These info objects are also used in BW infoproviders. In SEM-BCS the masterdata that is already availabl