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

Tags: Java

Similar Questions

  • I got error java.lang.NumberFormatException: for input string

    Using Jdeveloper 12 c, Oracle DB 12 c, Windows 8.1, this is my code to read the Excel file to DB.

    FileInputStream file = new FileInputStream

      (new File("E:/Company Mails.xlsx"));

      XSSFWorkbook workbook = new XSSFWorkbook(file);  

                XSSFSheet sheet = workbook.getSheetAt(0);   

                Iterator<Row> rowIterator = sheet.iterator();         

                DCBindingContainer bindings2 = (DCBindingContainer)

      BindingContext.getCurrent().getCurrentBindingsEntry();

                JUCtrlHierBinding obj = (JUCtrlHierBinding)

      bindings2.findCtrlBinding("CompanyMails1");

                ViewObject vo = obj.getViewObject();           

                BindingContainer bindings = BindingContext.

      getCurrent().getCurrentBindingsEntry();

                OperationBinding operationBinding = bindings.

      getOperationBinding("Commit");                           

                        while (rowIterator.hasNext()){                       

                            Row row = rowIterator.next();

                            Iterator<Cell> cellIterator = row.cellIterator();

                            oracle.jbo.Row r = vo.createRow();                       

                            while (cellIterator.hasNext()){

                                Cell cell = cellIterator.next();

                                r.setAttribute("No", row.getCell(0));

                                r.setAttribute("Mail", row.getCell(1));

                                r.setAttribute("Person", row.getCell(2));} }

                        file.close(); operationBinding.execute();}

                    catch (Exception e){e.printStackTrace(); }

            return null;}


    This is the message I get on the Jdev

    java.lang.NumberFormatException: for input string: 'No' to java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

    Untitled.png

    Please, format your code by using the Advanced Editor.

    As first, paste here stackTrace of jdev console and mark the line of code where the exception occurs.

    Then, just to check something, take a look to the while loop and add after the line of code:

    rowIterator.next(); // <-- AD THIS LINE OF CODE HERE !
    while (rowIterator.hasNext()){
                   Row row = rowIterator.next();
    

    try again and let me know what happens

  • java.lang.NullPointerException: null error mail

    I built a very simple process:

    process.JPG

    Here are the settings for E-mail startpoint:

    email setts.JPG

    E-mail on the server settings:

    email server sets.JPG

    My local mail server works very well.

    When I send an email to [email protected] I get this response:

    LiveCycle ES has attempted to process your request and met the following error:

    java.lang.NullPointerException: null

    Procces record is empty. This means that it is yet to start, right?

    Any suggestions? What's wrong?

    Remove the current process 'Road' of "Starting Point of the e-mail" to "Send documents", then, it can be tested 'Email startpoint' alone. To test this please send an email to configured email inbox and check which is processed or not.

    Create a new process and place only service "send with Documents."

    LiveCycle workbench can invoke the each process itself, in order to test these services to work correctly.

    Newspapers are in the server, get the path (perhaps websphere/weblogic/jbos) details of your environment.

  • Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException:

    Hi I'm new to Java and I have problems with this code:

    Here is the error
    Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "3 "
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
         at java.lang.Integer.parseInt(Integer.java:492)
         at java.lang.Integer.parseInt(Integer.java:527)
         at NewJFrame.jButton_CalculateActionPerformed(NewJFrame.java:161)
         at NewJFrame.access$100(NewJFrame.java:10)
         at NewJFrame$2.actionPerformed(NewJFrame.java:61)
     
      private void jButton_CalculateActionPerformed(java.awt.event.ActionEvent evt) {                                                  
            // TODO add your handling code here:
              int numTables = Integer.parseInt(jTextField_NumberOfTables.getText());
            int numCalc = Integer.parseInt(jTextField_NumberOfCalculations.getText());
            String operator = jComboBox_Operation.getSelectedItem().toString();
            
            String table = ""; 
            
            if (operator.equalsIgnoreCase("powers")) {
                   table = CalculateTables.powersTable(numTables, numCalc);
                   jLabel_TableType.setText("powers");
            }
    public class CalculateTables {
        
      public static String
               powersTable(int numTables, int numCalc) {
               
               //fill temArray with powers using nested for statements
               String output = "";
           for (int i =0; i <=  numTables; i++) {
              output += i + " Tables\r\n";      
                    for (int j =0; j <= numCalc; j++) {
                        output += String.format("%s ^ %s = %.2f\r\n",i,j,Math.pow(i,j)); 
                    }
        output += "\r\n";
    }    
     return output;    
      }
    It seems to me that the Integer.parseInt (jTextField_NumberOfTables.getText ());
    does not work
    This piece of code, I have a text obtained from the user and I need to convert to an integer
     
     int numTables = Integer.parseInt(jTextField_NumberOfTables.getText());
            int numCalc = Integer.parseInt(jTextField_NumberOfCalculations.getText());

    int numTables = Integer.parseInt (jTextField_NumberOfTables.getText () .trim ());
    int numCalc = Integer.parseInt (jTextField_NumberOfCalculations.getText () .trim ());

    Because JTextBox you wrote 3 and space so method attempts to parse a string '3 '. so give this exception. Overall, watch the class trim String method.

  • How to solve error {java.lang.NumberFormatException: empty string}

    Mr President.

    I use the following code and get error submitted.


    {error} {
    java.lang.NumberFormatException: empty string
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1011)
    at java.lang.Double.parseDouble(Double.java:540)
    to the invoice. InvoiceController$ 4.changed(InvoiceController.java:192)
    } {error}

    and
    {
    
    //wt ,  sValExlSt1 and sPrice1 are numbers
    
    
     wt1.textProperty().addListener(new ChangeListener<String>() {
                    public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
                        sValExlSt1.setText(String.valueOf(
                                Double.parseDouble(newValue)  * Double.parseDouble(sPrice1.getText())));
                    }
                });
            } catch (NumberFormatException e1) {
            }
    
    }
    Help, please.

    NewValue or sPrice1.getText () is empty. The error message says "empty string".

  • exception Java.lang.null pointer

    Hi all

    Enter iStore administrator-->--> Products--> option inventry catlog. error comes like this

    java.lang.NullPointerException
    java.lang.NullPointerException in Java.Math.BigDecimal. (BigDecimal.java:647) at oracle.apps.ams.webbean.CueCardContextWebBean.retrieveData(CueCardContextWebBean.java:298) at oracle.apps.asf.webbean.WebBeanHandler.retrieveData(WebBeanHandler.java:310) at amsProdInvOpMain. jspService(_amsProdInvOpMain.java:1628) to com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) to oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379) to oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) to oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) to javax.servlet.http.HttpServlet.service(HttpServlet.java:856) to com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) to oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) to com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) to oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) to com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621) to com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) to com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) to com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) to com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) to com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260) to com.evermind.util.ReleasableResourcePooledExecutor$ (ReleasableResourcePooledExecutor.java:303) MyWorker.run at java.lang.Thread.run(Thread.java:619)

    Thank you

    Solution restart Apache or reboot the server App Server & DB

    Udomluk

  • Error when opening a dwg file: java.lang.NoSuchMethodException: method

    Hello Experts,

    I tried to integrate content with Autovue WebCenter, integration was good until I get this error while trying to open a dwg file checked in Content Server using view in Autovue option in action:

    java.lang.NoSuchMethodException: method fileOpen (com.cimmetry.core.SessionID, com.cimmetry.core.DocID, com.cimmetry.core.Authorization, < null >, java.lang.Boolean, < null >) not found in the com.cimmetry.jvueserver.VCETConnection class
    at com.cimmetry.jvueserver.ar.a (unknown Source)
    at com.cimmetry.jvueserver.ar.a (unknown Source)
    at com.cimmetry.jvueserver.ar.a (unknown Source)
    at com.cimmetry.jvueserver.ar.d (unknown Source)
    at com.cimmetry.jvueserver.ar.a (unknown Source)
    at com.cimmetry.jvueserver.ah.run (unknown Source)

    Any suggestion could help me,

    Thanks in advance
    REDA

    Hi reda,.

    The solution to this problem is published in My Oracle Support:

    Error: "java.lang.NoSuchMethodException: fileOpen method" when you try to view files using AutoVue integrated with Oracle Universal Content Management (UCM) (Doc ID 1341644.1).

    It has all the details, step by step.

    Jeff

  • BlackBerry Bold 9780 Smartphone - download failed: Null Pointer Exception: Java.lang.NullPointerException

    Hello

    When I get Whats app with pictures and videos and I try to open them... I get following message / warning - download failed: Null Pointer Exception: Java.lang.NullPointerException.

    Kindly help me.

    Thank you... Rishi

    Copy the contents of your data cards... After that format your card data, and the data will be deleted immediately... resolves your problem.
    I solved my self by doing this...

  • [Need help] Command execution error: null java.lang.ClassCastException - HQAPI

    Hello

    I need your support on the following error, I got from hqapi when I try to «./hqapi.sh alertdefinition sync. My order is:

    # cat ad10100.xml

    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
    < AlertDefinitionResponse >
    Success of < status > < / status >
    < AlertDefinition mtime = ctime "1331204852666" = "1331204068642" id = "10100" name = "Fs [/] ok" description = "Filesystem sotto soglia critica" priority = "2" enabled = "true" active = "true" frequency = "0" count = "0" range = "0" willRecover = "false" notifyFiltered = "false" controlFiltered = "false" >
    < resource id = "10910" name = "/ dev/map/VolGroup00-LogVol00 of HR-client Linux file system mounted on / (local/ext3)" / >
    < AlertCondition required = "true" type = "1" thresholdValue = "50.0" thresholdComparator = "" & lt; "thresholdMetric ="Use %"/ >"
    < AlertAction id = "10101" className="org.hyperic.hq.measurement.action.MetricAlertAction"/ >
    < / AlertDefinition >
    < / AlertDefinitionResponse >

    # cat ad10100.xml | SH hqapi.sh alertdefinition sync

    Command execution error: null
    java.lang.ClassCastException
    at java.lang.Class.cast(Class.java:2990)
    at org.hyperic.hq.hqapi1.XmlUtil.deserialize(XmlUtil.java:64)
    at org.hyperic.hq.hqapi1.tools.AlertDefinitionCommand.sync(AlertDefinitionCommand.java:439)
    at org.hyperic.hq.hqapi1.tools.AlertDefinitionCommand.handleCommand(AlertDefinitionCommand.java:152)
    at org.hyperic.hq.hqapi1.tools.Shell.dispatchCommand(Shell.java:245)
    at org.hyperic.hq.hqapi1.tools.Shell.main(Shell.java:260)

    I have tested the following workaround but unsuccessfully:

    -try d'utiliser./hqapi.sh instead hqapi.sh sh

    -try to use different java bin (mine is/usr/java/default jdk6_u31), I tried /opt/hyperic/server-4.5.3/jre/bin/

    -Try sh hqapi.sh alertdefinition sync - file = ad10100.xml

    -try to change the XML, removal of State <>success < / status >

    HQAPI version: hqapi1-client - 4.3.0

    Hyperic HQ version: 4.5.3 - GA

    I need to synchronize alertdefinitions based on XML files please help me around this error.

    Thank you very much.

    Claudio

    Trying some updates for automatic alert via the script API definition, I met this problem as well. No matter what I did, it seemed that this class cast exception would be thrown. I downloaded the Github source HQAPI and started searching. I found that the error was in the call to the XmlUtils.deserialize method, which has invoked a JAXBContext to select the class of the object to return, after analysis of the XML. The code that calls the method waits get an object that can be cast to the type AlertDefinitionsResponse, but he returned to an object that must be cast to type AlertDefinitionResponse.

    After a bit of investigation, I realized that JAXB is the context of the node root XML data. Because the root node is AlertDefinitionResponse, he always returned an object of this type, instead of the expected AlertDefinitionsResponse type. Currently, the only way I found to get around this problem is to change the node root to AlertDefinitionsResponse. So, sync-able XML would look like the following, based on XML of the original poster.



         Success
        
            

            
            
        

    I raise a question on the Github repository so that officials are aware of this problem.

    EDIT: The problem has been discussed here

  • BPM deployment error: java.lang.IllegalArgumentException: Argument 0 for the @NotNull of oracle/bpm/project/interfaces/ConversationHelper.getReferenceNameFrom parameter must not be null

    Hey guys,.

    I get this error when I tried to deploy the process. Din could not do anything on the net

    java.lang.IllegalArgumentException: Argument 0 for the @NotNull of oracle/bpm/project/interfaces/ConversationHelper.getReferenceNameFrom parameter must not be null

    My composite application contains a certain number of processes. I added a BPEL process and then removed, but since then, appears it problems and could not deploy the composite application more. Any hint is appreciated.

    the entire stack trace is:

    Error when bean calling "domain manager": error deployment suitcase BPMN.
    error when trying to deploy the component BPMN "D:\oracle\domains\BPMSOA_DOMAIN\servers\BPM_1\dc\soa_6b5472e6-f4dc-4cd1-a7b5-c7b81f5e24ab" file the reported exception is: java.lang.IllegalArgumentException: Argument 0 for the @NotNull of oracle/bpm/project/interfaces/ConversationHelper.getReferenceNameFrom parameter must not be null

    This error was an exception thrown by the underlying deployment module.
    Check the trace for the exception in the log (the connection value level debug mode).
    ORABPEL-05250

    Suitcase BPMN deployment by mistake.
    error when trying to deploy the component BPMN "D:\oracle\domains\BPMSOA_DOMAIN\servers\BPM_1\dc\soa_6b5472e6-f4dc-4cd1-a7b5-c7b81f5e24ab" file the reported exception is: java.lang.IllegalArgumentException: Argument 0 for the @NotNull of oracle/bpm/project/interfaces/ConversationHelper.getReferenceNameFrom parameter must not be null

    This error was an exception thrown by the underlying deployment module.
    Check the trace for the exception in the log (the connection value level debug mode).

    at com.collaxa.cube.engine.deployment.DeploymentManager.deployComponent(DeploymentManager.java:202)
    at com.collaxa.cube.ejb.impl.CubeServerManagerBean._deployOrLoadComponent(CubeServerManagerBean.java:949)
    at com.collaxa.cube.ejb.impl.CubeServerManagerBean.deployComponent(CubeServerManagerBean.java:128)
    at sun.reflect.GeneratedMethodAccessor1654.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)


    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to com.sun.proxy. $Proxy345.deployComponent (unknown Source)
    at oracle.bpm.bpmn.engine.ejb.impl.BPMNServerManagerBean_6gbx7k_IBPMNCubeServerManagerLocalBeanImpl.__WL_invoke (unknown Source)
    at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
    at oracle.bpm.bpmn.engine.ejb.impl.BPMNServerManagerBean_6gbx7k_IBPMNCubeServerManagerLocalBeanImpl.deployComponent (unknown Source)
    at oracle.fabric.CubeServiceEngine.load(CubeServiceEngine.java:923)
    at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.load(BPMNServiceEngine.java:703)
    at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.load(BPMNServiceEngine.java:157)
    at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:243)
    at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:94)
    at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.initDeployment(CompositeDeploymentManagerImpl.java:185)
    at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.load(CompositeDeploymentManagerImpl.java:63)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.integration.platform.blocks.deploy.DeploymentEventPublisher.invoke(DeploymentEventPublisher.java:86)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to com.sun.proxy. $Proxy438.load (unknown Source)
    at oracle.integration.platform.blocks.deploy.StandaloneCompositeDeploymentCoordinatorImpl.coordinateCompositeDeployment(StandaloneCompositeDeploymentCoordinatorImpl.java:67)
    at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deployNewComposite(BaseDeployProcessor.java:467)
    at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:268)
    at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:203)
    at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:147)
    at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeploy(DeployProcessor.java:134)
    at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.process(DeployProcessor.java:100)
    at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPostInsideLoggingSession(CompositeDeployerServlet.java:221)
    at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPost(CompositeDeployerServlet.java:130)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3730)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3696)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    The answer late, sorry it was a bug in the product, was fixed after you apply the hotfix.

    Cheers, nasser

  • Could not find the details of WHO: null java.lang.NullPointerException

    Hello everyone

    When I run the congratulate emctl status SGD-details I get the below error.
    Error has occurred. Check the /u01/app/.../sysman/log/emctl.log log
    Here is an excerpt of the emctl.log

    MAS INFO. CredStoreUtil logp.251 - getCredential: Got creds for mapName - EM keyName - REPOS_DETAILS
    2012-12-11 11:00:27, 058 [main] INFO mas. CredStoreUtil logp.251 - getCredential: Got creds for mapName - EM keyName - ENCR_DETAILS
    2012-12-11 11:00:27, 529 [main] ERROR SGD. PrintOMSSetupInfo main.240 - could not find information from WHO: null
    java.lang.NullPointerException
    at oracle.sysman.emctl.util.EmctlUtil.getOMSSetupInfo(EmctlUtil.java:812)
    at oracle.sysman.emctl.oms.PrintOMSSetupInfo.main(PrintOMSSetupInfo.java:101)

    any idea on why this might be involved?

    Please, try the following steps:

    + Fix again the SGD.
    $OMS_HOME/bin/emctl sure SGD

    + Restart the SGD
    $OMS_HOME/bin/emctl stop who-all - force
    $OMS_HOME/bin/emctl start SGD

    Then check the status.

    Kind regards
    Vincent

  • java.lang.NoClassDefFoundError compile what class in Weblogic Linux approx.

    Hello
    I'm looking for an article from jay (http://jaysensharma.wordpress.com/2009/08/17/mdb3-0-sample-for-weblogic-application-server/) to send a message
    JMS, it works great under windows, but Linux is broken.

    I am facing the question what compile environment linux to Integrationenvoyer class.
    but windows, it works fine.

    in windows, I compile the class as follows:

    C:\bea\user_projects\domains\MyDomain\bin > setDomainEnv.cmd
    C:\bea\user_projects\domains\MyDomain > java Integrationenvoyer t3: / / localhost:7001
    JMS Message sent: Body of Message Test with counter = 0

    JMS Message sent: Body of Message Test with meter = 1
    …..

    Linux:
    After. / setDomainEnv,.

    $bea\...\MYDOMAIN\bin > java Integrationenvoyer t3: / / localhost:7001
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/Message
    Caused by: java.lang.ClassNotFoundException: javax.jms.Message
    java.net.URLClassLoader to $1.run (unknown Source)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass (unknown Source)

    I think that it cannot find the java_home and classpath properly, how to solve this problem?

    Really thanks in advance.

    Published by: muhkah on April 9, 2010 19:58

    Run the following command:

    OS based on Unix:

    Java - classpath /app/bea10.3/wl_server/server/lib/wlfullclient.jar:. : Integrationenvoyer t3: / / localhost:7001

    OS based on Windows:

    Java - classpath /app/bea10.3/wl_server/server/lib/wlfullclient.jar; ;   Integrationenvoyer t3: / / localhost:7001

    In the Classpath never forget to add the POINT (sorry I mentioned not just in my previous post).
    The DOT represents the current DFirectory... By doing this, we ensure that you please choose the classes "wlfullclient.jar" as well as the directory current (QueueSend.class) is present in the current directory.

    .
    .
    Thank you
    Jay Sensharma

  • OEM - java.lang.Exception: Exception by sending the request: null

    Hello

    I installed Oracle 10.2.0 on Windows Vista Home edition,
    OEM of opening the gettingthe error page - below

    Error

    java.lang.Exception: Exception by sending the request: null

    Database instance: orcl2

    After google and some search on the net, found a solution having an emd.properties of the modified files - agent TZ values must be changed.
    Changes of post too I still get the same error.
    Could someone help me in fixing this error of OEM.

    Rgds
    Jr. s/n

    Version
    -----------------
    10.2.0.1.0

    It is completely excluded.

    Oracle Database 10 g 2 (10.2.0.3) must be used to install the vista/2008 and, except Vista HOME edition.

  • BlackBerry smartphones this message after each reset "Eception exception: java.lang.Error.

    Hello

    Because I deleted some languages on my BB, and I kept the French, German and English language, after each reboot (after an update via BB Desktop Manager for example), I received this message:

    "Eception exception: java.lang.Error.

    I select 'OK' and that's all, but I want to solve this problem...

    Thank you.

    Hello!

    If you get this reliable error, then it is very likely that something in your OS device is damaged. This type of error is the "final" in the programming code - an event has happened for which there is no event handler in the code. I suggest to try two things (in order):

    (1) whenever random strange behaviors creep, the first thing to do is a battery pop reboot. With power ON, remove the hood back and remove the battery. Wait a minute, then replace the battery and cover. Power on and wait patiently through the long reboot - about 5 minutes. See if things return to functioning. Like all computing devices, BB suffers from memory leaks and others... with a hard reboot is the best remedy.

    (2) reload your OS:

    • KB11320 How to perform a clean reload of the BlackBerry Device Software using the Application Loader tool

    Good luck and let us know!

  • What is the error java.lang.ClassCastException: weblogic.servlet.internal.WebAppServletContext cannot be cast to javax.servlet.http.HttpServletRequest

    Mr President.

    To me the error when I use this code

     HttpServletRequest request = (HttpServletRequest) ctx.getExternalContext().getContext();
    

    The error is

    javax.servlet.ServletException: //C:/Users/TANVIR/AppData/Roaming/JDeveloper/system12.1.3.0.41.140521.1008/o.j2ee/drs/AshSystems2015/SchoolViewControllerWebApp.war/Login.jsf @13,59 action = "#{loginBean.doLogin}": java.lang.ClassCastException: weblogic.servlet.internal.WebAppServletContext cannot be cast to javax.servlet.http.HttpServletRequest "

    Concerning

    Try the HttpServletRequest = ctx.getExternalContext () .getRequest () (HttpServletRequest) request;

    Thank you

Maybe you are looking for