J2me & servlet - exception  in midlet output

I am invoking servlet in my MIDlet application. when i invoke on my local netword with local ip of web server it works properly on browser and midlet. but when i invoke with internet with global ip of web server it works properly only on browser not on MIDlet. it gives msg - "Uncaught exception java/lang/IllegalArgumentException"
i am not understanding the problem and helpless...
please help me to solve this problem....
my code is here... (for invoking servlet on midlet - i am displaying returning value of this method on form)
methos in medlet
public String invokeServlet(String data) throws IOException
//String url="http://127.0.0.1:8081/dictionary/searchword_mobile?word=" + data; //working properly
//String url="http://192.168.1.54:8081/dictionary/searchword_mobile?word=" + data; //working properly
//String url="http://192.168.0.115:8080/dictionary/searchword_mobile?word=" + data; //working properly
String url="http://202.144.52.226:8080/dictionary/searchword_mobile?word=" + data; //not working gives exception
HttpConnection c = null;
InputStream is = null;
StringBuffer b = new StringBuffer();
try
c = (HttpConnection)Connector.open(url);
c.setRequestMethod(HttpConnection.GET);
c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
c.setRequestProperty("Content-Language", "en-CA");
is = c.openDataInputStream();
int ch;
while ((ch = is.read()) != -1)
b.append((char) ch);
catch (Exception e)
wordbox.setString("Exception " + e);
finally
if(is!= null)
is.close();
if(c != null)
c.close();
return b.toString();
=======================
servlet code
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.dictionary.wordpack.WordDAO;
public class SearchWordServlet_Mobile extends HttpServlet
     public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException
          String word=request.getParameter("word");
          String returndata=new WordDAO().searchword_mobile(word);
          //System.out.println("word for searching : " + word);
          response.setHeader("Content-Type", "application/octet-stream");
          response.setHeader("Cache-Control","no-store");
          response.setHeader("Cache-Control", "no-cache");
          response.setHeader("Pragma","no-cache");
          response.setHeader("Cache-Control", "no-transform");
          response.setHeader("Connection", "Keep-Alive");
          response.setHeader("Proxy-Connection", "Keep-Alive");
          response.setContentType("text/plain");
          response.setContentLength(returndata.length());          
          ServletOutputStream out=response.getOutputStream();
          out.print(returndata);                         
          out.close();          
=====================
plseae suggest me solution for this problem.
thanks in advance...

Are you able to receive any data in simulator I mean to say are you getting the same exception in simulator too?
Use POST method in place of GET, and check.
What are you passing in the variable data? May be the data size is exceeding the limit.
If you resolved then don't forget to reward!!!
Shan!!!

Similar Messages

  • Connecting a servlet using a midlet

    Hi,
    I am trying to connect to a servlet using a Midlet. The servlet is running fine on Apache Tomcat and I m able to build the MIDlet using J2MEWTK . But when I execute the Midlet on an emulator it shows me some code of html page of which the important line which might give u some hint is :
    the requested resource (/hitservlet) is not available.
    I wrote the code of HitServlet and Hitmidlet using a pdf on net....Do I need to install something else for executing this? I dont understand where is the problem. Should I post the codes? Is it something related to aliases...as indicated by some some tutorial...if so plss elaborate on it..
    If anybdy has any idea ...plss help me get out of this problem...
    Thanx
    Smeeta

    Have you added the URL of the Servlet into the J2ME application?
    Settings -> UserDefined Tab
    Thinks its
    HitMIDlet.URL and its value should be the URL of the Servlet

  • Can somebody Pls Help 500 Servlet Exception:

    I am rather new to java prog and have the following problem.
    How do I resolve?All I knw is that the resource bundle is not been read.Where do i go from there.Help!!!
    500 Servlet Exception
    java.lang.NullPointerException
    at ui.error__jsp._jspService(/SSO/ui/error.jsp:14)
    at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
    at com.caucho.jsp.Page.subservice(Page.java:485)
    at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:179)
    at com.caucho.server.http.Invocation.service(Invocation.java:288)
    at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132)
    error.jsp contains the following:
    <%@page language="java" session="false" import="com.infy.bbu.sso.common.SSOConstants, java.util.ResourceBundle, com.infy.bbu.sso.utils.SSOResourceManager, com.infy.bbu.sso.config.SSOConfig"%>
    <%@ page contentType="text/html; charset=utf-8" %>
    <%
    String langCode = request.getParameter(SSOConstants.PARAM_LANG);
    SSOResourceManager manager = new SSOResourceManager();
    if(SSOConfig.isEmpty()) SSOConfig.loadConfig();
    ResourceBundle rb = manager.getResourceBundle(application, SSOConfig.get(SSOConstants.SSO_RB_APP_NAME),langCode);
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <title><%=rb.getString("SSO_ERROR_PAGE_TITLE")%></title>
    <script type='text/javascript' src='javascripts/ssodomain.js'></script>
    <script type='text/javascript' src='javascripts/SSOUIProperties_<%=langCode%>.js'></script>
    <link rel="stylesheet" href="sso.css">
    </head>
    <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dummy" vspace="0" hspace="0">
    <tr bgcolor="#000000">
    <td height="22"><img src="images/adminbanner.jpg" width="353" height="52" vspace="0" hspace="0" border="0"></td>
    </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <h1> </h1>
    </td>
    <td>
    <h1><br>
    </h1>
    <span class="tabletext"> <%= request.getParameter(SSOConstants.PARAM_ERROR_MSG)%><BR>
    <BR><a href="INFENG/LoginPage.jsp?<%=SSOConstants.PARAM_LANG%>=<%=langCode%>">Login</a>
    </span></td>
    </tr>
    </table>
    </body>
    </html>
    at com.caucho.server.http.ServletServer.serviceTop(ServletServer.java:937)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:213)
    at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
    at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
    at java.lang.Thread.run(Thread.java:534)
    Resin 2.0.5 (built Fri Jan 11 08:29:05 PST 2002)
    line 14 is in bold.

    sorry about that.It's just that I need to resolve
    this problem and need whatever help I can get.No. That is no reason for you to multipost.
    Do try and think about others sometimes. I mean really. Are you paying for support from this site? No. Then just be fucking patient please.

  • List of script and smart forms(except TNAPR) with output type or print prog

    How to find out List of SAP SCRIPT and SMART FORMS (except TNAPR)with output type or print program..I like to chk in output type WMTA  whch form should use.kindly help on this

    Hi
    WMTA is special msg and doesn't create any print: so you can't find a sapscript or smartform to link to it.
    WMTA is a message for delivery, so you can find it by NACE trx or TNAPR table (It's the same): infact here it can find only all messages of logistic modules (SD & MM).
    The routine ENTRY of RLAUTA20 is called by WMTA and creates a Transfer Order (for WM, Warehouse Management, module), so if you need to create a print for that msg you need to change prg RLAUTA20,
    Max

  • Getting Servlet Exception while accessing servlets after deployment

    Hi,
    Iam getting a Servlet Exception while accessing servlets after deploying into weblogic 8.1
    Error 500--Internal Server Error
    javax.servlet.ServletException: [HTTP:101249][ServletContext(id=9599010,name=MyWeb,context-path=)]: Servlet class LoginServlet for servlet LoginServlet could not be loaded because the requested class was not found in the classpath F:\bea\weblogic81\samples\domains\examples\MyWeb\WEB-INF\classes;F:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_MyWeb_MyWeb.
    java.lang.UnsupportedClassVersionError: LoginServlet (Unsupported major.minor version 49.0).
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:834)
         at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    My Folder Structureis like this,
    F:\bea\weblogic81\samples\domains\examples\MyWeb
    MyWeb is the projectName
    F:\bea\weblogic81\samples\domains\examples\MyWeb\WEB-INF
    Inside WEB-INF, i have web.xml and weblogic.xml, and classes directory with servlet classes.
    Any help will be appreciated.
    Thanx in advance.
    Regards
    Ram

    Hi,
    Thanks for the reply.
    Yes you are correct, i compiled using jdk1.5.
    but my servlet code will not compile in jdk1.4 version since i used advanced vaector classes in that.
    Is there any settings like script file that need to be changed so that i can point to my jdk1.5 compiler rather than the default one pointed by weblogic.
    Thanks in advance
    Ram

  • How to deal with 500 Servlet Exception ?

    500 Servlet Exception
    Resin can't load sun.tools.javac.Main. Usually this means that the JDK tools.jar is missing from the classpath, possibly because of using a JRE instead of the JDK. You can either add tools.jar to the classpath or change the compiler to an external one with <java compiler='javac'/> or jikes.
    java.lang.ClassNotFoundException: sun.tools.javac.Main
    Resin 2.0.4 (built Thu Nov 15 17:56:24 PST 2001)
    get these messages(win98,apache1.3,jdk1.3,resin2.0)
    how to add tool.jar to the classpath?please detail.thanks!!

    Hi,
    You can just give a search for the directory contains the file tools.jar. And add the classpath like this
    SET CLASSPATH=c:\jdk1.3\lib\tools.jar
    You can double check the CLASSPATH in command prompt like this
    echo %CLASSPATH%
    If the CLASSPATH is set properly, you should see the tools.jar file in the CLASSPATH.
    Hope this helps.
    Best Luck!
    Senthil Babu J

  • How to create a Servlet Exception in jsp

    Greetings,
    I would like to know if someone knows how create a servlet exception in a JSP.
    Thx

    What for? new ServletException() - IIRC it's not abstract.

  • J2me - servlet : data not coming to servelt

    Hi all,
    I'm trying to parse data to servlet from a Midlet. but servet not recieved data.
    Midlet code segment is:
    void invokeServlet(String url) throws IOException {
            HttpConnection c = null;
            InputStream is = null;
            OutputStream os = null;
            StringBuffer b = new StringBuffer();
            TextBox t = null;
            try {
              c = (HttpConnection)Connector.open(url);
              c.setRequestMethod(HttpConnection.POST);
              c.setRequestProperty("IF-Modified-Since", "20 Oct 2001 16:19:14 GMT");
              c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
              c.setRequestProperty("Content-Language", "en-CA");
              c.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
              os = c.openOutputStream();
              // encode data
              os.write(("to="+to).getBytes()); //to is the global String variable
              os.flush();
              is = c.openDataInputStream();
              int ch;
              while ((ch = is.read()) != -1) {
                b.append((char) ch);
                System.out.print((char)ch);
              t = new TextBox("Confirmation", b.toString(), 1024, 1);
              t.setCommandListener(this);
            } finally {
               if(is!= null) {
                  is.close();
               if(os != null) {
                  os.close();
               if(c != null) {
                  c.close();
            display.setCurrent(t);
        } Servlet code segment is:
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              System.out.println("test post");
              response.setContentType("text/plain");
            java.io.PrintWriter out = response.getWriter();
            String to = request.getParameter("to");
            // construct an instance of EmailSender
            out.println("data recieved... " + to);
         }                   finally I got on the mobile screen data recieved...null
    why it is null?

    I think you should use this properties :
    c.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    c.setRequestProperty("Content-Length",   Integer.toString(message.length())); Be carefull that the Content-Length property takes the parameter name into account too .... so the length is computed on the whole message ("to=" + to)
    Regards.

  • Error: uncaught servlet exception

    Hi All,
    I was wondering if anyone had any idea as to why I am getting the below error when attempting to access a (or any!) servlet via HTTP/URL. (An example of such a method is in Oracle9i XML Database Developer's Guide - Chapter 20: Writing Oracle XML DB Applications in Java)
    In the browser I get an 'internal 500 error' and checking the DB trace file, this is the message displayed:
    ========================================
    *** 2003-10-16 11:52:44.000
    *** SESSION ID:(17.15311) 2003-10-16 11:52:44.000
    XDB: Uncaught servlet exception (java.lang.ClassCastException)
    java.lang.ClassCastException
    at oracle.xdb.servlet.XDBServletContainer.initServlet(XDBServletContainer.java:67)
    at oracle.xdb.servlet.XDBServletContainer.handleRequest(XDBServletContainer.java:87)
    ========================================
    I have searched EVERYWHERE for info on this error but have come up with nothing.
    Here is an example of a servlet I've been trying to access:
    package oracle.otnsamples;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;
    public class testserv extends HttpServlet
    protected void doGet(HttpServletRequest req, HttpServletResponse resp)
    throws ServletException, IOException
    ServletOutputStream sos = resp.getOutputStream();
    sos.println("Testing servlet invocation");
    sos.close();
    Any help would be greatly appreciated as I am desperate!!
    Thanks in advance,
    Ari

    Ari
    There's a bug with this at the moment. There may be a workaround, I'm checking with Development. In the mean time can you open an iTar with Oracle Support to we can ensure that you are notified when this gets fixed. What platform are you running the database on. PLease post the itar number here once it's open

  • Uncaught servlet exception

    Hi,
    Am getting this following error immediately after my JSP page loads
    com.ibm.ws.webcontainer.servlet.exception.UncaughtServletException: Server caught unhandled exception from servlet [file]: null
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code))
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled Code))
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled Code))
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled Code))
         at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:120)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled Code))
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled Code))
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled Code))
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code))
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    No stack trace is available. Guess there is some problem in the JSP. basically am calling a servlet on load of this JSP.This is the code snippet which calls the servlet.Please help me out if anybody have any idea.
    <%
         String dateSuffix = (String)session.getAttribute(
              VSRMPresentationLayerConstants.FILE_NAME);
         String attributeName = (String)session.getAttribute(
              VSRMPresentationLayerConstants.GROUP_NAME);
         String path = request.getContextPath()+"/exportGroupMembers.file?fileName="+
    ManagerConstants.GROUP_REPORT_FILE_LOCATION+attributeName+"_"+dateSuffix+"&download=group&display="+attributeName+"_"+dateSuffix;
    %>

    Most probably it is a null pointer exception.
    Most things that have "null" for an error message are.
    As to what is null, that is anyones guess, but most probably one of the session attributes.
    I'm against scriptlets in JSPs as a matter of course, but this may help a little:
    <%
    try {
      String dateSuffix = (String)session.getAttribute(VSRMPresentationLayerConstants.FILE_NAME);
      String attributeName = (String)session.getAttribute(VSRMPresentationLayerConstants.GROUP_NAME);
      String path = request.getContextPath()+"/exportGroupMembers.file?fileName="+ManagerConstants.GROUP_REPORT_FILE_LOCATION+attributeName+"_"+dateSuffix+"&download=group&display="+attributeName+"_"+dateSuffix;
    catch (Throwable t){
      System.err.println("The error is " + e.getMessage());
      e.printStackTrace();
      throw e;
    %>It should at least give you an indication of what the error is, and where it is approximately in your JSP.

  • J2ME -Servlet communication

    Below is my code i have got some error while running the program...
    plzzzzzzzzzzz....help me out ...it's urgent.
    program having no compiler error but still it is running
    J2ME code:
    package hello;
    public class salesmanlogiin1 extends MIDlet implements CommandListener {
    private Display display=null;
    private TextField userName=null, password=null;
    private Form form=null, form1=null;
    String url = "http://localhost:8080/ServletPrograms/loginservlet2";
    private Command login, cancel;
    String unm=null, pwd=null;
    private StringItem messageLabel;
    public salesmanlogiin1()
    public void startApp()throws MIDletStateChangeException
    display = Display.getDisplay(this);
    messageLabel = new StringItem(null, "Connecting...Please wait.");
    userName = new TextField("LoginID:", userName.getString(), 30, TextField.ANY);
    password = new TextField("Password:",password.getString(), 30, TextField.PASSWORD);
    cancel = new Command("Cancel", Command.CANCEL, 2);
    login = new Command("Login", Command.OK, 2);
    form.append(userName);
    form.append(password);
    form.addCommand(cancel);
    form.addCommand(login);
    form1.append(messageLabel);
    form.setCommandListener(this);
    form1.setCommandListener(this);
    mainMenu();
    public void pauseApp()
    public void destroyApp(boolean unconditional)
    notifyDestroyed();
    void mainMenu()
    {display.setCurrent(form); }
    public void commandAction(Command c, Displayable d) {
    String label = c.getLabel();
    if (label.equals("Cancel"))
    destroyApp(true);
    } else if (label.equals("Login"))
    Thread t = new Thread()
    {       public void run()
    try
    invokeServlet(url);
    catch (IOException e)
    e.printStackTrace();
    t.start(); }
    void invokeServlet(String url) throws IOException {
    HttpConnection c = null;
    InputStream is = null;
    OutputStream os = null;
    StringBuffer b = new StringBuffer();
    unm = userName.getString();
    pwd = password.getString();
    String msg=null;
    TextBox t1=null;
    try {
    url = url + "?username=" + unm + "&password=" + pwd;
    c = (HttpConnection) Connector.open(url);
    c.setRequestMethod(HttpConnection.POST);
    c.setRequestProperty("User-Agent", "Profile/MIDP-2.1 Configuration/CLDC-1.1");
    c.setRequestProperty("Content-Language", "en-CA");
    os = c.openOutputStream();
    String str = unm;
    byte postmsg[] = str.getBytes();
    for (int i = 0; i < postmsg.length; i++) {
    os.write(postmsg);
    os.flush();
    String str1 = pwd;
    byte postmsg2[] = str1.getBytes();
    for (int i = 0; i < postmsg2.length; i++)
    os.write(postmsg2[i]);
    os.flush();
    is = c.openDataInputStream();
    int ch;
    while ((ch = is.read()) != -1)
    b.append((char) ch));
    t1 = new TextBox("Second Servlet", b.toString(), 1024, 0);
    t1.setCommandListener(this);
    } catch (Exception e)
    e.printStackTrace();
    finally
    {if (is != null)  {  is.close();}
    if (os != null){os.close();}
    if (c != null){c.close();}
    display.setCurrent(t1);
    Servlet Code:
    package ServletDemo;     
    import java.sql.*;
    public class loginservlet2 extends HttpServlet {
    BufferedReader br;
    String buf="";
    boolean flg=false;
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text;charset=UTF-8");
    PrintWriter out = response.getWriter();
    String username = request.getParameter("unm");
    String password = request.getParameter("pwd");
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:sdb");
    Statement s = con.createStatement();
    ResultSet rs = s.executeQuery("select * from login");
    while(rs.next())
    if(rs.getString(1).equals(username)&&rs.getString(2).equals(password))
    flg=true;
    if(flg==false){
    out.print("Failed");
    s.close();
    con.close();
    }else{
    out.print("valid user");
    s.close();
    con.close();
    }catch(Exception e){
    out.println(e);
    out.flush();
    out.close();
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    public String getServletInfo() {
    return "Short description";
    Warnings while running the program
    TRACE: <at java.lang.NullPointerException: 0>, startApp threw an Exception
    java.lang.NullPointerException: 0
    javacall_lifecycle_state_changed() lifecycle: event is JAVACALL_LIFECYCLE_MIDLET_SHUTDOWNstatus is JAVACALL_OK

    First of all, when you post code, please, use the "code" tags.
    I can't test your code but I start to analyse the method startApp() and there is:
    userName = new TextField("LoginID:", userName.getString(), 30, TextField.ANY);The object userName is null so
    userName.getString()throws a NullPointerException for sure!
    Hope this helps.

  • Tomcat server 5.2.08 - ADF 10.1.3.36.73 - servlet exception on any ADF page

    I've tried a lot of things - but I still get this.. works fine within jdev 10.1.3.04 server.
    Can anyone help ? - this app was started in 10.1.2.xx -
    HTTP 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: loader constraints violated when linking oracle/jbo/ApplicationModule class
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.Scanme_jsp._jspService(Scanme_jsp.java:133)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    root cause
    java.lang.LinkageError: loader constraints violated when linking oracle/jbo/ApplicationModule class
         java.lang.Class.forName0(Native Method)
         java.lang.Class.forName(Class.java:141)
         oracle.jbo.http.HttpSessionCookieFactory.class$(HttpSessionCookieFactory.java)
         oracle.jbo.http.HttpSessionCookieFactory.getSessionCookieClass(HttpSessionCookieFactory.java:230)
         oracle.jbo.http.HttpSessionCookieFactory.createSessionCookie(HttpSessionCookieFactory.java:128)
         oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(ApplicationPoolImpl.java:449)
         oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:155)
         oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:239)
         oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:76)
         oracle.adf.model.BindingContext.get(BindingContext.java:465)
         oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)
         oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)
         oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)
         oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)
         oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)
         oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)
         oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)
         oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)
         oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)
         oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)
         oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)
         oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)
         oracle.adf.model.BindingContext.get(BindingContext.java:491)
         oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)
         oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)
         oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)
         oracle.adf.model.binding.DCUtil.findBindingContainer(DCUtil.java:650)
         oracle.adf.controller.lifecycle.LifecycleContext.initialize(LifecycleContext.java:121)
         oracle.jbo.html.jsp.datatags.UseBindingContainerTag.doStartTag(UseBindingContainerTag.java:72)
         org.apache.jsp.Scanme_jsp._jspx_meth_adf_uimodelreference_0(Scanme_jsp.java:149)
         org.apache.jsp.Scanme_jsp._jspService(Scanme_jsp.java:88)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.

    Thanks for the reply Prasanth.
    I'll have to say yes. We used the configure notes as supplied in jdev 10.1.3.
    and have deployed (adf runtime installer) - removed - deployed and restarted tomcat more then a few time.. I tested the 10.1.2 apps that are out there - they do not run with the 10.1.13 adf .. they work correctly when I reinstall the 10.1.2.
    Reproduce the issue - lol .. well I was using 10.1.2 on my first adf jdevloper project.
    add a data action - all of a sudden - everytime you went to view/add code - it blew a java exception... (that was my 2nd 'clean install' of 10.1.2) - after finding no help with that .. (found a few unanswered threads about it.. on meta link) - decided to move to 10.1.3 - after importing the project - and rebuilding (like two weeks ago) - and adding some nice improvements - it runs fine in my local jdev.
    spent the last week or so trying to get it to run on the tomcat... one page of the app will open and run on tomcat (the one without any adf bindings..) the other two generate the error above.

  • Regarding servlet exception

    Hi,
    while i am testing an application, which was deployed in weblogic , iam getting the folling error, pelase help , its littlebit urgent.
    <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@14d5aaf - appName: xxxxxxxxxx', name: 'xxxxxxxxxxxxxxxxxr', context-path: '/xxxxxxxxxx/xxxxxxxxxxxxxxxx spec-version: 'null', version: 'Default_Version'] Root cause of ServletException.
    java.lang.UnsatisfiedLinkError: Can't load library: /xxxxxxxxx/weblogic/java/jrockit_160_05/jre/lib/i386/xawt/libmawt.so
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1005)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
    Truncated. see log file for complete stacktrace

    Hi,
    From the following exception, I think the issue could be related to the context path
    <[weblogic.servlet.internal.WebAppServletContext@14d5aaf - appName: xxxxxxxxxx', name: 'xxxxxxxxxxxxxxxxxr', context-path: '/xxxxxxxxxx/xxxxxxxxxxxxxxxx spec-version: 'null', version: 'Default_Version']
    Did you had a chance to check the context root matching and DD (deployment descitors). Also, can I hav the system out log or the server log after you had deployed the application!!
    regards,
    Zeno

  • Running Servlet Using ServletRunner(Midlet Connectivity)

    Hi I've made a program that connects a midlet to a servlet for DB connectivity.But when i compile the servlet class it gives error Http servlet not found.I want to ask in which folder of (JSDK2.0) should i keep my servlet file so as to compile it & in which folder should the class file be placed so as to run on the localhost.Please help me as its urgently needed for my project.Thanks.......

    Usually to manage servlet you have to create a WEB-INF directory where to put your web.xml file and a 'classes' sub directory where to put the servlet (.java & .class).

  • Weblogic servlet exception

    Hi
    I am getting below error . can you pls suggest how to resolve the same
    ####<Oct 11, 2010 3:07:03 PM EDT> <Error> <HTTP> <> <i03_MS2> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101017> <[ServletContext(id=8392620)] Root cause of ServletException.
    javax.servlet.jsp.JspTagException
    at com.qm.common.presentation.taglib.XsltTag.doEndTag(XsltTag.java:161)
    at jsp_servlet._jsp._common.__buttonbar._jspService(__buttonbar.java:265)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7051)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

    Hi,
    <BEA-101017> is a very generalized exception ... which is ommited by WLS if anything abnormal happens in the WebContainer specially woth any HTTP module Please see the description of this BEA Code:
    http://download.oracle.com/docs/cd/E13222_01/wls/docs81/messages/HTTP.html
    BEA-101017
    Error: [context] Root cause of ServletException.
    Description: [context] Root cause of ServletException, which the Web application container caught while servicing the request.
    Cause:The Web application container caught an unexpected exception.
    Action:Check the exception for the exact error message.
    The most important thing in the stack trace is...*"the Cause of Exception is your application only.....even the line number also mentioned which is causing this issue....So Only application development team can help u in this."*
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic/ (Middleware Magic Is Here)

Maybe you are looking for

  • Goods receipt of by product in subcontracting process

    the by-product are produced in subcontracting. we have to take back this by product into our company from the subcontractor. we have to use which movement type to take it back and the transaction code

  • Help needed in PROXY to FTP local

    Hi Guys, We are currently working on the WEBAS6.2 ---> XI - > thrid party . WEBAS6.2 and XI will be used by ABAP Proxy connection .XI to thrid part is file adapter . For testing we configure local FTP in desktop with the help of below webblog before

  • Recommendations for an external hard drive I can use for both the Mac and PC

    Hello, I've used PC's for nearly most of my life, and recently Imade the leap to using a Macbook Pro (the 15" Intel i7) as I got tired of theconstant crashes.  Long story short – Ineed to have a common external hard drive that I can use with both the

  • How do i get an iWorks document to the cloud from my MacBook?

    Everything I read says this is automatic but I can't find a way to get my docs to the cloud so I can use it on my iPad later.

  • Grouping in XSLT2.0: BPEL 11g

    Hi All, I have a requirement to group an incoming xml data(read from DB) and pass the groups separately to another BPEL process. Now I have written the below xsl file which when tested from Jdeveloper using an input source.xml file is working fine an