Java dump

Hello

Not sure if this should be in the Unix forum or here, but I am trying to perform a dump thread running on OEL jrockit jvm.

We use 'kill-3 pid' to take a picture, but it doesn't create any file...

Please suggest

Thank you!

If I remember correctly the thread dump is sent to the server log file (when JRockit works for example WebLogic).

You can also do is use jrcmd with the print_threads command, for example, jrcmd PID print_threads > directory/dump.txt

Tags: Fusion Middleware

Similar Questions

  • Windows Server 2012 reboot w/dump (Standard Edition 64-bit (English)): w / a) CA ARCserve Backup version 16.5 b) JAVA JDK 1.7.80 c) Tomcat 7.0.59; Unexpect error and restart w/dump?

    Windows Server 2012: unexpected system error and restart w/dump?

    With the software running:

    (a) CA ARCserve Backup version 16.5

    (b) JAVA JDK 1.7.80

    (c) tomcat 7.0.59;

    (d) Symantec Endpoint Protection Version 12.1

    (e) PowerChute Network Shutdown 3. 1.0

    Should I plan to restart (I can only remote access) server for every 2 months?

    Running (without rebooting) non-stop over 6 months ago.

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • How should I interpret java thread dumps?

    I have a multi-threaded application, I am running on a BlackBerry 9000.  I suspect there are blocking issues.

    I figured out how to trigger the trace of the stack using javaloader - usb logstacktraces (rather than wait for the alert for error "not responding") and can fetch using javaloader - usb eventlog, but I cannot interpret them.

    When I develop java applications normal can I use ^-to get a thread dump containing the source files, line numbers, and (most importantly) a list of locks and blocks, telling me that has a lock on an object, and which is blocked waiting for a lock to be released (either by calling the wait() method or exit).

    I don't know if this information is in the Blackberry stack traces.

    guid:0x9C3CD62E3320B498 time: Thu Sep 10 15:51:37 2009  severity:0 type:3 app:Java Exception data:
        ForcedStackTraceException
        baconology(160) 33 2 0x482E4000
        baconology(4AA957F5)
         BlockRun
         nap
         0x3EF
        baconology(4AA957F5)
         BlockRun
         waitForBuffer
         0x4BF
        baconology(4AA957F5)
         PiecewiseSourceStream
         read_
         0x14D7
        baconology(4AA957F5)
         PiecewiseSourceStream
         read
         0x1570
        net_rim_cldc-16(4A739706)
         DataSourceInputStream
         read
         0x25AF
        net_rim_media(4A739765)
         MP4Info
         
         0x34E1
        net_rim_media(4A739765)
         MP4Info
         
         0x2DA7
        net_rim_media(4A739765)
         MP4Info
         
         0x2D63
        net_rim_media(4A739765)
         MP4Info
         
         0x33A8
        net_rim_media(4A739765)
         StreamingMediaPlayer
         doRealize
         0x9224
        net_rim_cldc-16(4A739706)
         BasicPlayerImpl
         realize
         0xF80
        baconology(4AA957F5)
         JMFToy
         fabricateAndRealizePlayer
         0x9F5
        baconology(4AA957F5)
         JMFToy$3
         run
         0xD94
        net_rim_cldc-1(4A739706)
         Thread
         run
    

    Given that this thread is blocked waiting to enter the BlockRun.nap () call, I can assume that it is blocked, waiting for a lock on * this *, because otherwise it would be inside the Object.wait () function, waiting for another thread to issue a notifyAll().

    What I need to know is the thread that has the lock, so I can arrange for to be released or not granted at all.

    Each (single-threaded) stack trace begins with the name of the process that owns the thread, followed by the ID process in parentheses, then by the thread ID, then the State of the thread (1 = RUNNABLE, 2 = pending, 3 = TIMED WAITING, 4 = BLOCKED), then the ID of the lock on which thread executes a wait(), or the ID of the lock, the thread is stuck on (waiting to acquire).

    After the stack traces there is a list of the locks. The list shows which own threads which locks and locks Java class names.

    The information contained in the stack traces and the list of locks is sufficient for an automated tool to analyze the dependencies between threads and also find dead-locks (as appropriate). I depeloped such a tool (thus, it is possible, and it's not hard to do), but I'm not free to release him.

  • Export of wire dumps for flight from Java

    I couldn't find a way to export the thread dumps taken by JFR by JFR plugin java is mission control. I would like to export in the form of text and analyzed around analysers as TDA (https://java.net/projects/tda). Since there are more than 100 taken thread dumps, copy each of them doesn't seem practical. Do you see an alternative?

    Thank you!

    Yes. JMC 6.0.0 & JDK 9.

  • Dump memory corrupt Java 1.70_51

    Our site has servers who encounter insufficient memory errors.  We have the following Java options configured. When I try to open the ".hprof" generated with the parser memory either jhat or eclipse I get invalid segment type errors.  This is the start of java settings:

    Anyone has any recommendations on who or where help troubleshooting this?  I tried to reproduce this on my own dev system, but failed.  The piece, I have configured in Dev of appdynamic tool.

    -verbose: memdbg

    -XX: + PrintGCDetails

    -Xloggc:D:\Tomcat\logs\TomcatGC.log

    -XX: PermSize = 256 m

    -XX: MaxPermSize = 256 m

    -XX:-ReduceInitialCardMarks

    -XX: + HeapDumpOnOutOfMemoryError

    -Xms10000m

    -Xmx10000m

    -verbose: memdbg

    -XX: + PrintGCDetails

    -Xloggc:D:\Tomcat\logs\TomcatGC.log

    -XX: PermSize = 256 m

    -Dcatalina.home = D:\Tomcat

    -Dcatalina.base = D:\Tomcat

    -Djava.endorsed.dirs=D:\Tomcat\common\endorsed

    -Djava.IO.TMPDIR=D:\Tomcat\temp

    -Djava.util.logging.manager = org.apache.juli.ClassLoaderLogManager

    -Djava.util.Logging.config.file=D:\Tomcat\conf\logging. Properties

    -Dcom.sun.management.jmxremote

    -Dcom.sun.management.jmxremote.port = XXXX

    -Dcom.sun.management.jmxremote.ssl = false

    -Dcom.sun.management.jmxremote.authenticate = false

    -javaagent:D:\appdynamics\appserveragent\3.8.3\javaagent.jar

    -Dappdynamics.controller.hostName = concur.saas.appdynamics.com

    -Dappdynamics.controller.port = XX

    -Dappdynamics.http.proxyHost = XXXXXXXX

    -Dappdynamics.http.proxyPort = XXXX

    -Dappdynamics.controller.ssl.enabled = true

    -Dappdynamics.agent.applicationName = XXXXXX

    -Dappdynamics.agent.tierName = XXXXXX

    -Dappdynamics.agent.nodeName = XXXXXX

    -Dappdynamics.agent.accountName = XXXXX

    -Dappdynamics.agent.accountAccessKey = XXXXXXX

    Found the problem.  Some process that occurs during the copy of our production environment .hprof file corrupts the file.

    I have successfully extracted the file pass like a Flash in our production environment and then copy the zip file.

    Of course, now I have another problem.  We receive errors of memory caused by the large number of objects in the finalizer thread...

    Here I knew the answer to this...

  • Dump on a Java object AS3 object

    Hi all
    I have a following java value object class:
    for example:
    clientId long private;
    Private boolean clientIdUpdated;

    {} public long getClientOrgId()
    Return clientOrgId;
    }
    {} public void setClientOrgId (long clientOrgId)
    setClientOrgIdUpdated (true);
    this.clientOrgId = clientOrgId;
    }
    public boolean isClientOrgIdUpdated() {}
    Return clientOrgIdUpdated;
    }
    {} public void setClientOrgIdUpdated (boolean clientOrgIdUpdated)
    this.clientOrgIdUpdated = clientOrgIdUpdated;
    }

    I need to convert it to AS3 object class.

    Thank you.

    This link: http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=serialize_data_2.ht ml #312520

    explains in great detail,
    hope that helps
    Kind regards
    Levan

  • A webcam of java to the ski site does not load because of the sercurity settings. How can I fix it?

    Here are the details of the error.

    CacheEntryhttp://webcam02.bigskyresort.com/-wvd.../LiveApplet.zip: updateAvailable = false, lastModified = Thu Oct 14 05:38:04 MDT 2004, length = 78875
    Java plug-in 10.51.2.13
    With the help of 1.7.0_51 - b13 version JRE Java hotspot Client VM
    Home Directory user = C:\Users\Brannon

    c: clear console window
    f: finalize objects on the finalization queue
    g: garbage collection
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: Hide console
    r: reload the policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: delete the cache of class loaders
    0-5: set the level of trace to < n >

    Hello bbran, these security prompts are generated from the java plugin itself, so please refer to the oracle number documentation: http://www.java.com/en/download/help/appsecuritydialogs.xml

  • BBC I player have said enable java script. It is activated. Can I listen to Classic FM ok but not BBC

    Until yesterday, I was able to listen to BBC radio. Now, the BBC I player-have said 'enable Java Script. My system said that it IS enabled. I can still listen to classic FM. What should I do? Went along in circles

    URL of affected sites

    http://BBC.co.UK

    dumping history and cookies has been proposed. I did it and now it works. I don't know why, I am a 'use a geek. It was like being blindfolded and told him to find the light switch in a dark room!

  • TMS follow-up Conference does not work after update of Java

    Just installed Java 7 update 51 and now I am not able to enter the CCC in TMS 13.2.2.

    This is the dump of Java:

    Java plug-in 10.51.2.13

    With the help of 1.7.0_51 - b13 version JRE Java hotspot Client VM

    Home Directory user = C:\Users\lhamilton

    ----------------------------------------------------

    c: clear console window

    f: finalize objects on the finalization queue

    g: garbage collection

    h: display this help message

    l: dump classloader list

    m: print memory usage

    o: trigger logging

    q: Hide console

    r: reload the policy configuration

    s: dump system and deployment properties

    t: dump thread list

    v: dump thread stack

    x: delete the cache of class loaders

    0-5: set the trace level

    ----------------------------------------------------

    Resources http://134.39.50.193/tms/styles/Default/images/PortalPageStatisticsChartLoading.gif a future expires: Sat Feb 01 10:37:47 PST 2014 update done.

    Resources http://134.39.50.193/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar a future expires: Sat Feb 01 10:39:25 PST 2014 update done.

    Resources http://134.39.50.193/tms/styles/Default/images/PortalPageStatisticsChartLoading.gif a future expires: Sat Feb 01 10:37:47 PST 2014 update done.

    Attribute of manifest missing application name for: http://134.39.50.193/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar

    Resources http://134.39.50.193/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar a future expires: Sat Feb 01 10:39:25 PST 2014 update done.

    Resources http://134.39.50.193/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar a future expires: Sat Feb 01 10:39:25 PST 2014 update done.

    Resources http://134.39.50.193/tms/styles/Default/images/PortalPageStatisticsChartLoading.gif a future expires: Sat Feb 01 10:37:47 PST 2014 update done.

    Resources http://134.39.50.193/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar a future expires: Sat Feb 01 10:39:25 PST 2014 update done.

    Resources http://134.39.50.193/tms/styles/Default/images/PortalPageStatisticsChartLoading.gif a future expires: Sat Feb 01 10:37:47 PST 2014 update done.

    Resources http://134.39.50.193/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar a future expires: Sat Feb 01 10:39:25 PST 2014 update done.

    Resources http://134.39.50.193/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar a future expires: Sat Feb 01 10:39:25 PST 2014 update done.

    Resources http://134.39.50.193/tms/styles/Default/images/PortalPageStatisticsChartLoading.gif a future expires: Sat Feb 01 10:37:47 PST 2014 update done.

    Resources http://134.39.50.193/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar a future expires: Sat Feb 01 10:39:25 PST 2014 update done.

    Resources http://134.39.50.193/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar a future expires: Sat Feb 01 10:39:25 PST 2014 update done.

    Resources http://134.39.50.193/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar a future expires: Sat Feb 01 10:39:25 PST 2014 update done.

    Resources http://134.39.50.193/tms/Tandberg/Tms/UI/Monitoring/conferencecontrol.jar a future expires: Sat Feb 01 10:39:25 PST 2014 update done.

    Resources http://134.39.50.193/tms/styles/Default/images/PortalPageStatisticsChartLoading.gif a future expires: Sat Feb 01 10:37:47 PST 2014 update done.

    I had similar problems yesterday when I updated to 7u51 (with TMS 14.1.1).  I rolled back to the previous version, I had installed and it worked fine.

    Pursuit of the investigation, it seems to happen due to new security measures in the new version of Java.  You can move with the latest version of Java 7u51 by adding your server TMS in the security exception list:

    (1) Control Panel Java Open

    2) click the Security tab

    3) click on the button "change the list on the Site."

    4) click Add and type the URL of your server TMS in the location area (IE http://tmserver/tms/)

    (5) to continue beyond the warning about sites http if you use http instead of https

    6) click OK on the control panel

    Then you should be able to hit the Java pages in TMS without any problem.

    Wayne

    --

    Remember the frequency responses and mark your question as answered as appropriate.

  • Where can I find the dump of traces of battery connected?

    Hi, I use the NetBeans plugin and am able to compile in the .cod file.  A simple Hello World works fine.

    I have a fairly big Java ME project that I'm currently testing on the BlackBerry.  The MIDlet works fine on other emulators and real devices, but he is trowing an exception somewhere in the code.

    The BlackBerry 8130 emulator shows that it is a null pointer exception uncaught, and gives me a list of commands in the scrolling list.  One of them is "traces of battery connected Dump."  When I select this command, it says "Logged piles dumped."

    I don't know if it is thrown into a file or thrown away from memory.  Nothing in either event log window.

    Is anyway to see this trace?

    I try not to use the JDE that I am able to build the project in NetBeans entirely.

    MN.

    I think you will find it if you go to the home/Ribbon screen, hold down the ALT (Ctrl on your PC keyboard) and type LGLG.  This will display the event log, and I suspect you are the stack trace in there.

    You may find it useful to 'connect' to the Simulator and debug directly using breakpoints, etc.  But I don't know how it's NetBeans sorry.  If you search around, you'll probably find someone who did this.

  • Java problem on windows 7

    I have installed Java but when im access im getting this error:
    Java plug-in 1.6.0_17
    With the help of 1.6.0_17 - b04 version JRE Java hotspot Client VM
    Home Directory user = C:\Users\WS5540
    ----------------------------------------------------
    c: clear console window
    f: finalize objects on the finalization queue
    g: garbage collection
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: Hide console
    r: reload the policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: delete the cache of class loaders
    0-5: set the trace level
    ----------------------------------------------------

    load: class ibs. MainApplet.class not found.
    java.lang.ClassNotFoundException: ibs. MainApplet.class
    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)
    to sun.plugin2.applet.Plugin2Manager$ AppletExecutionRunnable.run (unknown Source)
    at java.lang.Thread.run (unknown Source)
    Caused by: java.io.IOException: open the HTTP connection failed: https://www.arabi-online.com/abr/english/actual/mainpages/ibs/MainApplet/class.class
    at sun.plugin2.applet.Applet2ClassLoader.getBytes (unknown Source)
    to sun.plugin2.applet.Applet2ClassLoader.access$ 000 (unknown Source)
    to sun.plugin2.applet.Applet2ClassLoader$ 1.run (unknown Source)
    at java.security.AccessController.doPrivileged (Native Method)
    ... 7 more
    Exception: java.lang.ClassNotFoundException: ibs. MainApplet.class

    How can I solve this problem

    Hello
    Welcome to the Microsoft answers site

    1. remove all the Java plug in the computer.
     
    2. Remove programs and features
    Visit this link to remove Java
     http://www.Java.com/en/download/help/uninstall_java.XML

    3. Subsequently, download the latest version of Java and install it.
    Visit this link to download and install.
     http://www.Java.com/en/download/manual.jsp

    4. on the same window, you will find the option to check if Java has been installed correctly. That run and verify

    It may be useful
    Thanks and greetings
    Support Microsoft-dieng
    Visit our Microsoft answers feedback Forum and let us know what you think
    http://social.answers.Microsoft.com/forums/en-us/answersfeedback/threads/

  • With the help of 1.7.0_07 - b11 version JRE Java hotspot Client VM

    I can't use by net cooking system indicates error java and java download does not work with my system with windows 7 giant premium 64 bit computer laptop.

    REPRT ERROR:

    Java plug-in 10.7.2.11
    With the help of 1.7.0_07 - b11 version JRE Java hotspot Client VM
    Home Directory user = C:\Users/
    ----------------------------------------------------
    c: clear console window
    f: finalize objects on the finalization queue
    g: garbage collection
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: Hide console
    r: reload the policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: delete the cache of class loaders
    0-5: set the trace level

    Hello

    1 are you facing this problem with a specific Web site?
    2 are you having the same problem on other browsers as well?
    Please follow the links below to solve the problem.
    Method 1
    How to troubleshoot script errors in Internet Explorer
    Note: follow the steps as troubleshooting applies to JAVA issues.
    Step 2
    How to enable Java in my web browser?
    Method 2
    If you still face problems, please uninstall and reinstall JAVA
    Remove all traces of the failure of the Java installation by uninstalling Java:
    Install Java
    I hope this helps.
  • means: space of Java heap in weblogic 10.3.3

    Hello

    After activation JSSE and changing encryption to < ciphersuite > TLS_RSA_WITH_AES_128_CBC_SHA < / ciphersuite > I received "means: Java heap space" every 2-3 days.

    My java from settings is - Xms256m-Xmx512m - XX: CompileThreshold = 8000 - XX: PermSize = 128 m - XX: MaxPermSize = 256 m

    and memory total is 1321 m:

    total used free shared buffers cached

    MEM: 1321 1249 72 0 39 163

    -/ + buffers/cache: 1046 275

    Swap: 2015 12 2003

    Could you please advice/Xms Xmx whose size is more appropriate for my weblogic. And how can I solve this problem...

    Thanks in advance!

    Each process has a fixed size:

    Size of the Java process = (HeapSize + MaxPermSize native memory)

    Free-m command that you run only watch not the size of the heap rather total memory being occupied by the process. Also, it is not very useful to understand the actual use of memory by the JVM process.   Then you should look at the log of GC and the Dump of the heap in order to know what kind of objects are fill up inside the pile.

    Following article can give you an idea:

    OutOfMemory Causes and first aid measures?

    http://middlewaremagic.com/WebLogic/?p=4464

    As an initial investigation to try to increase the size of the heap a little more as - Xmx1024m and activate the GC log.

  • Fuseki - java.sql.SQLRecoverableException

    Hello

    We launched an instance of the adapter of Fuseki against Oracle 11 g.

    After leaving the Forum inactive for a week or two, we met java.sql.SQLRecoverableException.

    Full error message - java.sql.SQLRecoverableException: i/o error: connection reset by peer: socket write error

    I tried to provide the dumped configuration containing a JNDI resource with commons-dbcp datasource so that I can provide a validationQuery to maintain active connections. But Fuseki can't seem to find this resource when you provide a configuration with the command line data source.

    Fuseki in WebLogic deployment could facilitate the creation of JNDI but would require a war file. I created the Fuseki - war packaging discussion for the same thing.

    Any suggestions to solve the SQLRecoverableException will be useful.

    Thank you

    Akhilesh

    Thank you.

    Can you please take a look at the following document and set SQLNET. EXPIRE_TIME, SQLNET. INBOUND_CONNECT_TIMEOUT, SQLNET. OUTBOUND_CONNECT_TIMEOUT?

    https://docs.Oracle.com/CD/E11882_01/network.112/e10835/SQLNET.htm

    Thank you

    Zhe Wu

  • What is this java.lang.NumberFormatException: null

    Mr President.

    I'm trying to run a report with a button on a page jsff

    My button code is

    <af:button text="button 1" id="b1" destination="/printreportservlet?employeeId#{bindings.EmployeeId.inputValue}"/>
    

    My servlet code is

    package view;
    
    
    import java.io.IOException;
    import java.io.PrintWriter;
    
    
    import javax.servlet.*;
    import javax.servlet.annotation.WebServlet;
    import javax.servlet.http.*;
    import java.io.IOException;
    import java.io.InputStream;
    
    
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    
    
    import java.util.HashMap;
    import java.util.Locale;
    import java.util.Map;
    
    
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.annotation.WebServlet;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    
    
    
    
    import model.AppModuleImpl;
    
    
    import net.sf.jasperreports.engine.JasperCompileManager;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.design.JasperDesign;
    import net.sf.jasperreports.engine.xml.JRXmlLoader;
    
    
    import oracle.jbo.client.Configuration;
    
    
    @WebServlet(name = "PrintReportServlet", urlPatterns = { "/printreportservlet" })
    public class PrintReport1Servlet extends HttpServlet {
        private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
    
    
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
        }
        
        /**
                 * @return
                 */
                protected Connection getConnection() {
         
         
        //            System.out.println("getConnection--");
         
         
                    PreparedStatement st = null;
                    String amDef = "sa.gov.rgr.model.module.AppModuleAM";
                    String config = "AppModuleAMLocal";
                    AppModuleImpl am = (AppModuleImpl ) Configuration.createRootApplicationModule(amDef, config);
         
         
                    st = am.getDBTransaction().createPreparedStatement("select 1 from dual", 0);
                    Connection conn = null;
         
         
                    try {
                        conn = st.getConnection();
                        return conn;
                    } catch (SQLException e) {
                    }
         
         
                    return null;
                }
        /**
             * @param request
             * @param response
             * @throws ServletException
             * @throws IOException
             */    
    
    
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            response.setContentType(CONTENT_TYPE);
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head><title>PrintReportServlet</title></head>");
            out.println("<body>");
            out.println("<p>The servlet has received a GET. This is the reply.</p>");
            out.println("</body></html>");
            out.close();
            
            String var0 = "";
                    try {
                        var0 = request.getParameter("employeeId");
                       
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                   
                    response.setContentType(CONTENT_TYPE);
                   
                    Map parameters = new HashMap();
                    parameters.put("format", "pdf");
                    parameters.put("WEBDIR", getServletContext().getRealPath("/"));
                    parameters.put("REPORT_LOCALE", new Locale("ar"));
             
             
                    parameters.put("employeeId", new Long(var0));
                    Connection conn = null;
                    InputStream is = null;
                    try
                    {
                      conn = getConnection();
                      is = getServletContext().getResourceAsStream("/WEB-INF/reports/Report.jrxml");
             
             
                      response.setContentType("application/pdf");
                      response.addHeader("Content-Disposition", "attachment; filename=report.pdf");
                       
                      JasperDesign jasperDesign = JRXmlLoader.load(is);
                      JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
             
             
                      JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, conn);
             
             
                      JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
                       
             
                      conn.close();
                    }
                    catch (Exception e) {
                      e.printStackTrace();
                    } finally {
                      closeConnection(conn);
                      try {
                          if(is !=null){
                              is.close();
                          }
                         
                         
                      } catch (Exception localException1)
                      {
                      }
                    }
                   
                }
        
        /**
             * @param conn
             */
            protected static void closeConnection(Connection conn) {
                try {
                    if(conn !=null){
                        conn.close();
                    }
                   
                } catch (Exception ex) {
                    //  System.out.println("Developer Msg : Exception in printReport1Servlet.closeConnection()");
                }
            }
        
    }
    

    The code of my report is

    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Report" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="1100e657-82b6-466e-b6eb-58efd82952cb">
      <property name="ireport.zoom" value="1.0"/>
      <property name="ireport.x" value="0"/>
      <property name="ireport.y" value="0"/>
      <parameter name="employeeId" class="java.lang.String">
      <defaultValueExpression><![CDATA[]]></defaultValueExpression>
      </parameter>
      <queryString>
      <![CDATA[select * from employees
    WHERE EMPLOYEE_ID=to_number($P{employeeId})]]>
      </queryString>
      <field name="EMPLOYEE_ID" class="java.lang.Long"/>
      <field name="FIRST_NAME" class="java.lang.String"/>
      <field name="LAST_NAME" class="java.lang.String"/>
      <field name="EMAIL" class="java.lang.String"/>
      <field name="PHONE_NUMBER" class="java.lang.String"/>
      <field name="HIRE_DATE" class="java.sql.Timestamp"/>
      <field name="JOB_ID" class="java.lang.String"/>
      <field name="SALARY" class="java.math.BigDecimal"/>
      <field name="COMMISSION_PCT" class="java.math.BigDecimal"/>
      <field name="MANAGER_ID" class="java.math.BigDecimal"/>
      <field name="DEPARTMENT_ID" class="java.math.BigDecimal"/>
      <background>
      <band splitType="Stretch"/>
      </background>
      <title>
      <band height="79" splitType="Stretch"/>
      </title>
      <pageHeader>
      <band height="35" splitType="Stretch"/>
      </pageHeader>
      <columnHeader>
      <band height="61" splitType="Stretch">
      <staticText>
      <reportElement x="229" y="2" width="100" height="20" uuid="225ce4a1-d66e-4b64-bcb8-f35994d570ec"/>
      <text><![CDATA[EMPLOYEE_ID]]></text>
      </staticText>
      </band>
      </columnHeader>
      <detail>
      <band height="125" splitType="Stretch">
      <textField>
      <reportElement x="229" y="55" width="100" height="20" uuid="a8cd9d36-884a-4edf-8052-314b484e00c4"/>
      <textFieldExpression><![CDATA[$F{EMPLOYEE_ID}]]></textFieldExpression>
      </textField>
      </band>
      </detail>
      <columnFooter>
      <band height="45" splitType="Stretch"/>
      </columnFooter>
      <pageFooter>
      <band height="54" splitType="Stretch"/>
      </pageFooter>
      <summary>
      <band height="42" splitType="Stretch"/>
      </summary>
    </jasperReport>
    

    And my page jsff code is

    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                    xmlns:f="http://java.sun.com/jsf/core">
      
      <af:button text="button 1" id="b1" destination="/printreportservlet?employeeId#{bindings.EmployeeId.inputValue}"/>
      <af:table value="#{bindings.EmployeesView1.collectionModel}" var="row" rows="#{bindings.EmployeesView1.rangeSize}"
                emptyText="#{bindings.EmployeesView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                rowBandingInterval="0" selectedRowKeys="#{bindings.EmployeesView1.collectionModel.selectedRow}"
                selectionListener="#{bindings.EmployeesView1.collectionModel.makeCurrent}" rowSelection="single"
                fetchSize="#{bindings.EmployeesView1.rangeSize}" id="t1">
        <af:column headerText="#{bindings.EmployeesView1.hints.EmployeeId.label}" id="c1">
          <af:outputText value="#{row.EmployeeId}" shortDesc="#{bindings.EmployeesView1.hints.EmployeeId.tooltip}" id="ot1">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.EmployeeId.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.FirstName.label}" id="c2">
          <af:outputText value="#{row.FirstName}" shortDesc="#{bindings.EmployeesView1.hints.FirstName.tooltip}" id="ot2"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.LastName.label}" id="c3">
          <af:outputText value="#{row.LastName}" shortDesc="#{bindings.EmployeesView1.hints.LastName.tooltip}" id="ot3"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.Email.label}" id="c4">
          <af:outputText value="#{row.Email}" shortDesc="#{bindings.EmployeesView1.hints.Email.tooltip}" id="ot4"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.PhoneNumber.label}" id="c5">
          <af:outputText value="#{row.PhoneNumber}" shortDesc="#{bindings.EmployeesView1.hints.PhoneNumber.tooltip}"
                         id="ot5"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.HireDate.label}" id="c6">
          <af:outputText value="#{row.HireDate}" shortDesc="#{bindings.EmployeesView1.hints.HireDate.tooltip}" id="ot6">
            <af:convertDateTime pattern="#{bindings.EmployeesView1.hints.HireDate.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.JobId.label}" id="c7">
          <af:outputText value="#{row.JobId}" shortDesc="#{bindings.EmployeesView1.hints.JobId.tooltip}" id="ot7"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.Salary.label}" id="c8">
          <af:outputText value="#{row.Salary}" shortDesc="#{bindings.EmployeesView1.hints.Salary.tooltip}" id="ot8">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.Salary.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.CommissionPct.label}" id="c9">
          <af:outputText value="#{row.CommissionPct}" shortDesc="#{bindings.EmployeesView1.hints.CommissionPct.tooltip}"
                         id="ot9">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.CommissionPct.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.ManagerId.label}" id="c10">
          <af:outputText value="#{row.ManagerId}" shortDesc="#{bindings.EmployeesView1.hints.ManagerId.tooltip}" id="ot10">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.ManagerId.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.DepartmentId.label}" id="c11">
          <af:outputText value="#{row.DepartmentId}" shortDesc="#{bindings.EmployeesView1.hints.DepartmentId.tooltip}"
                         id="ot11">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.DepartmentId.format}"/>
          </af:outputText>
        </af:column>
      </af:table>
    </ui:composition>
    

    The complete error code is

    java.lang.NumberFormatException: null
      at java.lang.Long.parseLong(Long.java:404)
      at java.lang.Long.<init>(Long.java:702)
      at view.PrintReport1Servlet.doGet(PrintReport1Servlet.java:113)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
      Truncated. see log file for complete stacktrace
    > 
    <Mar 27, 2015 10:03:46 AM PKT> <Notice> <Diagnostics> <BEA-320068> <Watch "UncheckedException" in module "Module-FMWDFW" with severity "Notice" on server "DefaultServer" has triggered at Mar 27, 2015 10:03:46 AM PKT. Notification details: 
    WatchRuleType: Log 
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802')) 
    WatchData: DATE = Mar 27, 2015 10:03:46 AM PKT SERVER = DefaultServer MESSAGE = [ServletContext@1295794488[app:JasperServletTester module:JasperServletTester-ViewController-context-root path:null spec-version:3.0]] Servlet failed with an Exception
    java.lang.NumberFormatException: null
      at java.lang.Long.parseLong(Long.java:404)
      at java.lang.Long.<init>(Long.java:702)
      at view.PrintReport1Servlet.doGet(PrintReport1Servlet.java:113)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
     SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = TANVIR-PC TXID =  CONTEXTID = fd43f1ae-c573-4366-9924-18a1ab1a228f-0000008d TIMESTAMP = 1427432626062  
    WatchAlarmType: AutomaticReset 
    WatchAlarmResetPeriod: 30000 
    > 
    <oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl> <DiagnosticsDataExtractorImpl> <createADRIncident> <incident 16 created with problem key "DFW-99998 [java.lang.NumberFormatException][oracle.security.jps.ee.http.JpsAbsFilter$1.run][JasperServletTester]"> 
    <oracle.adf.common> <AdfDiagnosticsJarsVersionDumpImpl> <executeDump> <Path of the jars version dump :C:\Users\TANVIR\AppData\Roaming\JDeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\servers\DefaultServer\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_16/adf_DiagnosticsJarsVersionDump24_i16.txt> 
    

    For any help, I'll be very grateful

    Concerning

    Tender,

    As I mentioned in the other thread, the var0 comes null which causes this problem.

    Why var0 just null?

    You must change the property of destination as below:

    
    
    

    You must add "="

    See you soon

    AJ

Maybe you are looking for

  • T420s Windows 8 Unknown device

    I installed Windows 8 x 64 recently and installed all the drivers. I was pretty sure that all devices have been installed. I had a problem of power management of hardware before installing Windows 8 I was hoping was a software problem that reinstalli

  • Windows Update page does not load, another updater with "update" in the url does not work, and the microsoft Download Center will not download. Help!

    Right. I read the other posts and do not know if it's the same or not, but... Update Windows page fails to load - no error messageantivirus and another updater with update in the URL cannot purely and simply, or don't load - no error messageany attem

  • missing network drivers for windows7

    Hello everyone. I have a HP MINI 110-3100 and I install windows7 Home premium 32-bit. After intallation, I noticed that some drivers are missing, so I don't have a wifi connection. More details: (1) Ethernet controller hardware ID PCI\VEN_10EC & DEV_

  • Impossible to validate Windows 7, error 0xC8000222

    I had to put a new HARD drive and reinstall Win 7 Home premium 64-bit. Everything went fine until I have try and update of windows. Windows Update gives me: "Windows Update cannot currently check for updates because the service is not running." You m

  • MS Wireless MultiMedia keyboard 1.1. CD required

    Hello What is the exact model of the keyboard number? See if your products are listed. If so, get the latest version of the software for Windows XP (64-bit). Here is the link: http://www.Microsoft.com/hardware/en-us/downloads Let us know if you need