JSP Bug

Please c the below two bean class.
package com.bean;
public abstract class Person{
private String gf;
     public String getGf(){
          return gf;
     public void setGf(String newGf){
          this.gf = newGf;
package com.bean;
public class Employee extends Person{
private String id;
     public String getId(){
          return id;
     public void setId(String newId){
          this.id = newId;
}JSP Code:-
<jsp:useBean id="loveObj" type="com.bean.Person" class="com.bean.Employee" scope="request">
     <jsp:setProperty name="loveObj" property="gf" value="ABCD"/>
     <jsp:setProperty name="loveObj" property="id" value="14555"/>
</jsp:useBean>
GF is: <jsp:getProperty name="loveObj" property="gf" />
Employee ID is: <jsp:getProperty name="loveObj" property="id" />The output of the above code is
GF is: ABCD
Employee ID is: 14555
The prob is, as the referance type is Person and the attribute "id" is not visible for person type.
I saw the servlet code of this JSP, while setting and getting, the object is casted to Employee.
but WHY this casting is happening by default????

Because if the cast isn't performed the servlet wouldn't compile. Person doesn't have the setId() method, so a typecast is necessary.

Similar Messages

  • JSP bug or JSP container bug?

    This the following a JSP bug or JSP container bug?
    When I put:
    <jsp:declaration>
         void method() {
    </jsp:declaration>in a JSP page it runs fine, but when I put:
    <jsp:declaration>
         void method() {
              for(int idx=0; idx<5; idx++) {
    </jsp:declaration>in a JSP page I get:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /doc/c11/XmlSyntaxDeclarations.jsp(54,17) Unterminated <jsp:declaration> tag
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:134)
         org.apache.jasper.compiler.Parser.parseXMLDeclaration(Parser.java:695)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1545)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         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)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.
    Apache Tomcat/5.0.27

    What gives? I'm having the same problem with a scriptlet!
    This works:
    <jsp:scriptlet>
         cntInt++;
         out.println("cntInt = "+cntInt);
    </jsp:scriptlet>but this doesn't works:
    <jsp:scriptlet>
         cntInt++;
         out.println("cntInt = "+cntInt);
         for(int idx=0; idx<cntInt; idx++) {
    </jsp:scriptlet>...it can't seem to handle for loop? Does anyone know why?

  • Big jsp Bug in Weblogic! UnNoticed by weblogic!

              <%@ page language="java" contentType="text/html" %> <%! public void jspInit() { System.out.println("Hello"); } %> <% out.println("jsp executed"); %>
              The above code displays "Hello" on the command line or Dos and "jsp executed" on the browser!
              When this jsp is loaded first time it executes correctly. when it is again loaded then jsp init method is not executed. This is also fine.
              But the problem is when I restart my weblogic server and clear the browser cache and then load the jsp file then the init method is called TWO times! "Hello" is displayed two times!
              why this is so? Is there any bug in weblogic5.1? Or am I doing something wrong? please tell
              

              You hit the JSP and the .class file gets loaded into memory and jspInit() executes. Fine.
              Once loaded into memory, the next thing the JSP does is check if it 'isStale()' -
              this compares the date-stamp that was on the .jsp file when the jsp was compiled
              with the date-stamp on the .jsp file on disk. This is in the code of the JSP itself, it
              does not compare the date of the .class file with the date of the .jsp file - so it was
              necessary to load the JSP in memory (an call jspInit()) simply to check the if it was
              up-to-date. In your case, it is not up-to-date. The JSP is compiled, loaded into
              memory and jspInit() executes - again.
              Mike Reiche
              Robert Patrick <[email protected]> wrote:
              >Hi,
              >
              >Please realize that this is NOT an official BEA support forum. All BEA personnel that monitor this newsgroup and answer questions do it on their own time because we (yes, I work for
              >BEA) want to help people be successful with our products. If you want an official response from BEA to your problem, then I suggest that you send mail to [email protected], call our toll
              >free support number (888)232-7878 and/or talk with your BEA Account Representative.
              >
              >As for your problem, I am not sure what is happening but this may be a simple matter of not understanding how JSP reloading works. I am more than willing to help you but you need to
              >provide me with a more detailed description of exactly what it is that you are doing, what service pack level are you using, etc.
              >
              >Thanks,
              >Robert
              >
              >gopal wrote:
              >
              >> <%@ page language="java" contentType="text/html" %> <%! public void jspInit() { System.out.println("Hello"); } %> <% out.println("jsp executed"); %>
              >>
              >> The above code displays "Hello" on the command line or Dos and "jsp executed" on the browser!
              >>
              >> When this jsp is loaded first time it executes correctly. when it is again loaded then jsp init method is not executed. This is also fine.
              >>
              >> But the problem is when I restart my weblogic server and clear the browser cache and then load the jsp file then the init method is called TWO times! "Hello" is displayed two times!
              >>
              >> why this is so? Is there any bug in weblogic5.1? Or am I doing something wrong? please tell
              >
              

  • JSF JSP Bug

    The JSF JSP Wizard has a bug.
    1. Select File>New>Web Tier>JSF>JSF JSP.
    2. Click on Next. Specify file anme. Click on Next.
    3. Automatically Expose UI Compoenents in a Existing Managed Bean radio button does not get selected.

    A managed bean is the same as a backing bean except that the managed bean is managed by the JSF framework.
    http://groundside.com/blog/DuncanMills.php?title=so_what_is_a_backing_bean&more=1&c=1&tb=1&pb=1
    If a managed bean with a page binding is defined, the Automatically Expose UI Components in an Existing Managed Bean button does not become selectable.
    The Automatically Expose UI Components in an Existing Managed Bean button should be selectable to check which managed beans have already been created.

  • JSP bug? url.openStream() = server redirected too many times

    I tried something the other day that works in Java, so it should work as a JSP scriptlet, but I received an error message that others have posted elsewhere without a compete resolution. Specifically, given a URL, say u, one ought to be able to do u.openStream() and eventually read the remote page. Typically, one might want to try
    URL u = new URL("http://someserver.com/path/file.xxx")
    BufferedReader bfr = new BufferedReader(new InputStreamReader(u.openStream()))and then read bfr line-by-line. The problem that seems to be fairly common is that the openStream() call throws a ProtocolException claiming "server redirected too many times (20), ."
    What I've seen is that this exception occurs whenever the URL is outside the Tomcat server whence the call is being made; in our case, we're running "out-of-the-box" Jakarta Tomcat 4.1.29 on port 8080 of a w2k server. The code works perfectly in native Java and in JSP for a URL of the form "/anotherpage.jsp"
    Is this a bug in JSP, or in our version of Tomcat, or is there just some configuration parameter that needs to be changed from its default? As I said, I've seen similar posts (with less detailed analysis) in the Usenet newsgroups, but not one has generated a response that explains and resolves the matter.
    Perhaps a JSP guru out there could set the record straight? Thanks.
    P.S. I know that the use of scriptlets in JSP is being discouraged, but they are still supported AFAIK.

    Sure scriptlets are still supported. Most times though you can do things better with a custom tag. Why reinvent the wheel?
    Just as a suggestion, you might try the JSTL <c:import> tag.
    It basically does just this behind the scenes.
    However I don't think that will help you in the end - it will probably hit the same error message.
    My guess would be that the problem is not caused by java/JSP as such, but by a firewall, or configuration somewhere.
    The following works fine for me (ignoring broken images of course)
    <%@ page import="java.net.*, java.io.*" %>
    <%
    URL u = new URL("http://www.google.com");
    BufferedReader bfr = new BufferedReader(new InputStreamReader(u.openStream()));
    String line = null;
    while ((line = bfr.readLine()) != null){
      out.println(line);
    %>Hope this helps,
    evnafets

  • UIX/JSP: bug of the tag uix:tabBar

    Please, can someone comment on the following behavior of the tag <uix:tabBar>:
    The UIX/JSP tag <uix:tabBar> is commonly used together with the <uix:link>.
    I cannot make the last one work in a more complex way but just using its attribute 'destination'.
    For example, the tag <uix:link> has an attribute 'onClick' but it fails to work within the tag <uix:tabBar>. So in this example:
    <uix:tabs>
    <uix:tabBar >
    <uix:link text="alert" onClick="alert('Test alert');" />
    <uix:link text="Main" destination="UixEdit1.jsp />
    </uix:tabBar>
    </uix:tabs>
    The link 'alert' is visible but doesn't work.
    Maybe this should be solved by wrapping <uix:link> in something...

    Yes, Juan it works fine outside the TabBar.
    But, Adam it's not quite clear to me what you mean by the "javascript URLs".
    The one thing I want is to make a row editing form divided into 2 tabs (instead of the one, generated by the wizard). So I have do form updates on the event "moving to other tab". Can you advise, how I can put any javascript inside the <tabBar>?
    Thank you.

  • OutOfMemoryError:Java Heap Space on JSP with %@page buffer % directive

    Hi guys,
    I am developing a large report requires a lot of memory using JSP, therefore I allocated about 4096kb in the JSP as follow:
    ==================================================================
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
    <%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
    <%@taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
    <%@page buffer="4096kb" %>
    <html>...some work to display report ...</html>
    ==================================================================
    The report runs fine but after few retrieves I got the OutOfMemoryError (OOME) and the only way for me to fix it is to restart the web server (tomcat). I went throught few troubleshooting tests and found out if I take out the <%@page buffer="4096kb" %> in the page, the error will go away regardless how much data I am retrieving from database (In another words, if I put this code into a report to retrieve a small data set, I will still get OOME after few tries). I know you can manually enlarge the Java Memory/Heap size, but it will not fix the problem as it will eventually run out of memory anyway. I am wondering is there known bugs relating to manually allocate buffer size for JSP pages? And how can i deal with it if it is a JSP "Bug"? Or there is something else I am doing wrong. (I have tried manually invoke System.gc() but it will not solve the problem)
    any help is appreciated, Thanks.

    Thanks for these information, you are truely amazing with amount of knowledge you have and your analytical skills.
    Back to the topic:
    <quote>
    Only if you waste time with all the intermediate values that are also too big, and only if you persist in your illusion that you are buying performance with these huge buffers. You aren't. You are buying OutOfMemoryErrors instead.
    You do need to realize that your output will be (i) buffered by the socket send buffer, which is only 8k on Windows, and (ii) transmitted in packets of the path MTU, which is less than 1500 bytes in most cases, so this huge buffer can't possibly do you any good - it just adds latency and OutOfMemoryError risk, as I've been telling you.
    </quote>
    I don't know which part of my replay does not agree with you that setting the buffer size too large is more of an problem other than a solution, perhaps I miss leaded you somehow.
    <quote>That doesn't actually answer the question, does it?</quote>
    Well if a page can be complied and retrieved in the first place, is there enough space to create the page/object? Perhaps you can tell me if I am wrong about it and why.
    I believe the JspWriter object is stored in heap and heap is break up into few sections. I wouldn't be able to tell you for sure which section it resides but my guess is in Eden Space and that space is just about 4MB in space. But remeber I did my test by changing the buffer size to 2MB which is well under the 4MB, I still get the same error.
    <quote>That was what your question was about. OutOfMemoryError using huge buffers. So that's what I focussed on.</quote>
    Yes, you did ponting me out that but what you have done is told me not to use it, which I am very happy with. In my older post, I did actually correct myself and made my question more clear by asking
    "Why with large JSP buffer size, the retrival of the JSP page chewing up the server memory? Shoudlnt memory be released after the page is retrieved?"
    Unfortunitelly I don't think you pointing me anything about it, instead you told me all the reasons not to do it and assuming that I was arguing with you about "it is better to have large buffer jsp size". Again, sorry if I miss leaded you somehow.
    Lets put it this way, even with large jsp buffer size (regardless whether we should be doing that or not) if the memory is freed properly, I will not get OOM error. Am I right?
    <quote>I take out the <%@page buffer="4096kb" %> in the page, the error will go away</quote>
    Yes, but I need to restart my server to make it work. I forgot to mention it, my bad.
    Last, I finally found my answer through web and other forumes. The reason of this happening is because my web server did not release the PageContext object properly which JspWriter is linked to, therefore the memory does not get released at all. So ths the issue that chewing up the server memory. Again, thank you for all your help, your suggestion and knowledge did help me find out my answer in the end.

  • Schema Design for Worklist Application - best practice?

    Hello,
    we are designing the Schema for a workflow application now. I'm wondering what kind of XML Schema would be best suited for the JSP generation of the Workflow Wizard.
    So far I've found out with some tests (please correct me if I'm wrong):
    - Only elements will be mapped to JSP fields, not attributes
    - If elements have single-letter name, the field label will be eliminated totally in JSP (bug?!)
    - For EVERY parent node, an HTML table is generated in the JSP containing all the simple nodes in the parent. If a parent node contains another parent node, both tables will be generated on the same level.
    And I haven't found any way to create drop-down list or checkbox/radiobuttons out of the XSD definition (enumeration as element type).
    I would really appreciate it if someone could share some experience in this area, many thanks in advance!
    regards
    ZHU Jia

    Hello,
    we are designing the Schema for a workflow application now. I'm wondering what kind of XML Schema would be best suited for the JSP generation of the Workflow Wizard.
    So far I've found out with some tests (please correct me if I'm wrong):
    - Only elements will be mapped to JSP fields, not attributes
    - If elements have single-letter name, the field label will be eliminated totally in JSP (bug?!)
    - For EVERY parent node, an HTML table is generated in the JSP containing all the simple nodes in the parent. If a parent node contains another parent node, both tables will be generated on the same level.
    And I haven't found any way to create drop-down list or checkbox/radiobuttons out of the XSD definition (enumeration as element type).
    I would really appreciate it if someone could share some experience in this area, many thanks in advance!
    regards
    ZHU Jia

  • Bc4j: Application Error

    Thanks for your great effort in bc4j and the samples in JDeveloper 3.1.1.2
    When I run the ?Business Components for Java Auctions Sample Web Application? sample and try to bid with low value I got the message:
    Application Error
    JBO Error:JBO-27011: Attribute set with value 5.00 for BidPrice in Bids failed
    You must submit a bid which is higher than the current bid price!
    I clicked the button to go back and bid with hi value but this time I got more INTERESTING message:
    Application Error
    JBO Error:JBO-27102: Attempt to access dead view row
    Can any one tell me the cause? and how to fix it?
    Is there any resource with JBO-xxxxx error codes like Oracle Errors?
    null

    This was a bug in business components JSPs (bug number 1259308); it's been fixed for JDeveloper 3.2.
    Also new in 3.2, JBO error messages are documented.
    Blaise

  • DB CONNECTION - EXCEPTION_ACCESS_VIOLATION

    I've developed a "batch process" which uses three different databases(two sql servers and one oracle). The application uses two different connection pools ; one for sql server and another one for oracle. The remaining sql server I've to connect using Data Source Name(DSN) defined in the data source. I am using sun's odbc-jdbc bridge mechanism/tool/driver to get connection and I am not using connection pool. Whenever need connection, the application will pass the dsn, user and password, and a new connection will be created. the application creates and uses 3 connections per minute in an average.
    I am getting this error after sometimes 609th, 1222th, or 1069th connections for the same database. As soon the application gets this error, the JVM is killed.
    PLEASE HELP ME and if you need more info. pl. let me know
    Thanks,
    Julia
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c901010, pid=176, tid=3652
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_08-b03 mixed mode)
    # Problematic frame:
    # C [ntdll.dll+0x1010]
    --------------- T H R E A D ---------------
    Current thread (0x0aa98e10): JavaThread "Timer-2" [_thread_in_native, id=3652]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000018
    Registers:
    EAX=0x00000004, EBX=0x0b28f674, ECX=0x7ffa9000, EDX=0x00000004
    ESP=0x0b28f610, EBP=0x0b28f628, ESI=0x00000000, EDI=0x0b0d12a0
    EIP=0x7c901010, EFLAGS=0x00000297
    Top of Stack: (sp=0x0b28f610)
    0x0b28f610: 74355a16 00000004 0b0d12c4 7432139f
    0x0b28f620: 0b0d12c4 00000000 0b28f640 7432a244
    0x0b28f630: 0b0d12c4 74350000 0aa98ed0 00000000
    0x0b28f640: 0b28f654 7432a653 0abeafe0 0aa98ed0
    0x0b28f650: 0728b200 0b28f66c 6d371157 0b0d12a0
    0x0b28f660: 0b28f674 0aa98e10 0728b200 0b28f6a4
    0x0b28f670: 0085832f 00000000 0b28f6c0 0b0d12a0
    0x0b28f680: 00000000 0b28f6b4 0b28f688 00000000
    Instructions: (pc=0x7c901010)
    0x7c901000: 90 90 90 90 90 64 8b 0d 18 00 00 00 8b 54 24 04
    0x7c901010: 83 7a 14 00 75 4f f0 ff 42 04 75 19 8b 41 24 89
    Stack: [0x0b250000,0x0b290000), sp=0x0b28f610, free space=253k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [ntdll.dll+0x1010]
    C [ODBC32.dll+0xa244]
    C [ODBC32.dll+0xa653]
    C [JdbcOdbc.dll+0x1157]
    j sun.jdbc.odbc.JdbcOdbc.allocConnect(J[B)J+0
    j sun.jdbc.odbc.JdbcOdbc.SQLAllocConnect(J)J+30
    j sun.jdbc.odbc.JdbcOdbcDriver.allocConnection(J)J+6
    j sun.jdbc.odbc.JdbcOdbcConnection.initialize(Ljava/lang/String;Ljava/util/Properties;I)V+37
    j sun.jdbc.odbc.JdbcOdbcDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+129
    J java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;
    j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+41
    j com.realm.connect.conndbresources.FADatabaseResourceManager.getConnection()Ljava/sql/Connection;+59
    j com.realm.connect.conndbresources.FADatabaseResourceManager.getListOfVersionsInDYNANotInJDE(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/HashMap;)Ljava/util/ArrayList;+245
    J com.realm.connect.process.PopulateReXMLLeaseData.createLeaseData(Lcom/realm/connect/jaxb/sc/ConnSelectCriteria;Ljava/lang/String;Lcom/realm/connect/jaxb/rexml/PropertyDataType$RetailSalesType;Lcom/realm/connect/jaxb/rexml/PropertyDataType$ReportCategoriesType;Ljava/util/HashMap;Ljava/lang/String;Lcom/realm/connect/jaxb/rexml/LeaseDataType;)Lcom/realm/connect/jaxb/rexml/LeaseDataType;
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j com.realm.connect.process.BuildSelectionCriteriaReXML.createReXML(Ljava/lang/String;Ljava/lang/String;Ljava/util/Hashtable;Ljava/lang/String;)V+1115
    j com.realm.connect.process.BuildSelectionCriteriaReXML.RunBuildSelectionCriteriaReXML(Lcom/realm/connect/jaxb/sc/ConnSelectCriteria;Ljava/lang/String;Ljava/lang/String;)V+1394
    j com.realm.connect.process.BuildSelectionCriteriaReXML.<init>(Lcom/realm/connect/jaxb/sc/ConnSelectCriteria;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V+249
    j com.realm.connect.process.BatchScheduleWeekly.run()V+334
    j java.util.TimerThread.mainLoop()V+221
    j java.util.TimerThread.run()V+1
    v ~StubRoutines::call_stub
    V [jvm.dll+0x86e84]
    V [jvm.dll+0xddead]
    V [jvm.dll+0x86d55]
    V [jvm.dll+0x86ab2]
    V [jvm.dll+0xa16b2]
    V [jvm.dll+0x10f4ac]
    V [jvm.dll+0x10f47a]
    C [MSVCRT.dll+0x2a3b0]
    C [kernel32.dll+0xb683]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j sun.jdbc.odbc.JdbcOdbc.allocConnect(J[B)J+0
    j sun.jdbc.odbc.JdbcOdbc.SQLAllocConnect(J)J+30
    j sun.jdbc.odbc.JdbcOdbcDriver.allocConnection(J)J+6
    j sun.jdbc.odbc.JdbcOdbcConnection.initialize(Ljava/lang/String;Ljava/util/Properties;I)V+37
    j sun.jdbc.odbc.JdbcOdbcDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+129
    J java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;
    j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+41
    j com.realm.connect.conndbresources.FADatabaseResourceManager.getConnection()Ljava/sql/Connection;+59
    j com.realm.connect.conndbresources.FADatabaseResourceManager.getListOfVersionsInDYNANotInJDE(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/HashMap;)Ljava/util/ArrayList;+245
    J com.realm.connect.process.PopulateReXMLLeaseData.createLeaseData(Lcom/realm/connect/jaxb/sc/ConnSelectCriteria;Ljava/lang/String;Lcom/realm/connect/jaxb/rexml/PropertyDataType$RetailSalesType;Lcom/realm/connect/jaxb/rexml/PropertyDataType$ReportCategoriesType;Ljava/util/HashMap;Ljava/lang/String;Lcom/realm/connect/jaxb/rexml/LeaseDataType;)Lcom/realm/connect/jaxb/rexml/LeaseDataType;
    v ~RuntimeStub::alignment_frame_return Runtime1 stub
    j com.realm.connect.process.BuildSelectionCriteriaReXML.createReXML(Ljava/lang/String;Ljava/lang/String;Ljava/util/Hashtable;Ljava/lang/String;)V+1115
    j com.realm.connect.process.BuildSelectionCriteriaReXML.RunBuildSelectionCriteriaReXML(Lcom/realm/connect/jaxb/sc/ConnSelectCriteria;Ljava/lang/String;Ljava/lang/String;)V+1394
    j com.realm.connect.process.BuildSelectionCriteriaReXML.<init>(Lcom/realm/connect/jaxb/sc/ConnSelectCriteria;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V+249
    j com.realm.connect.process.BatchScheduleWeekly.run()V+334
    j java.util.TimerThread.mainLoop()V+221
    j java.util.TimerThread.run()V+1
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    =>0x0aa98e10 JavaThread "Timer-2" [_thread_in_native, id=3652]
    0x0ae6b410 JavaThread "Timer-1" [_thread_in_native, id=2808]
    0x0aa3ea10 JavaThread "Thread-2" [_thread_blocked, id=2796]
    0x0aa7cb60 JavaThread "Thread-1" [_thread_blocked, id=2912]
    0x0adf4a60 JavaThread "Timer-0" [_thread_blocked, id=360]
    0x000388b0 JavaThread "DestroyJavaVM" [_thread_blocked, id=3188]
    0x0aaf5b80 JavaThread "Wrapper-Connection" daemon [_thread_in_native, id=1492]
    0x0aa409e8 JavaThread "Wrapper-Control-Event-Monitor" daemon [_thread_blocked, id=3124]
    0x00816d18 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2532]
    0x00815988 JavaThread "CompilerThread0" daemon [_thread_blocked, id=660]
    0x00814e28 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3536]
    0x0080bbc8 JavaThread "Finalizer" daemon [_thread_blocked, id=2720]
    0x0080a798 JavaThread "Reference Handler" daemon [_thread_blocked, id=2676]
    Other Threads:
    0x00806558 VMThread [id=3956]
    0x00812e18 WatcherThread [id=856]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 1792K, used 840K [0x02850000, 0x02a40000, 0x02d30000)
    eden space 1600K, 46% used [0x02850000, 0x0290a6c8, 0x029e0000)
    from space 192K, 49% used [0x02a10000, 0x02a27d28, 0x02a40000)
    to space 192K, 0% used [0x029e0000, 0x029e0000, 0x02a10000)
    tenured generation total 23176K, used 16150K [0x02d30000, 0x043d2000, 0x06850000)
    the space 23176K, 69% used [0x02d30000, 0x03cf5b08, 0x03cf5c00, 0x043d2000)
    compacting perm gen total 12288K, used 12128K [0x06850000, 0x07450000, 0x0a850000)
    the space 12288K, 98% used [0x06850000, 0x074280c0, 0x07428200, 0x07450000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040d000 C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre\bin\java.exe
    0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
    0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
    0x6d6c0000 - 0x6d85b000 C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre\bin\client\jvm.dll
    0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
    0x5dac0000 - 0x5dac8000 C:\WINDOWS\system32\rdpsnd.dll
    0x76360000 - 0x76370000 C:\WINDOWS\system32\WINSTA.dll
    0x5b860000 - 0x5b8b4000 C:\WINDOWS\system32\NETAPI32.dll
    0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
    0x6d280000 - 0x6d288000 C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre\bin\hpi.dll
    0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
    0x6d690000 - 0x6d69c000 C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre\bin\verify.dll
    0x6d300000 - 0x6d31d000 C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre\bin\java.dll
    0x6d6b0000 - 0x6d6bf000 C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre\bin\zip.dll
    0x10000000 - 0x10013000 C:\wrapper\lib\wrapper-windows-x86-32.dll
    0x6d4c0000 - 0x6d4d3000 C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre\bin\net.dll
    0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\mswsock.dll
    0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
    0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
    0x6d370000 - 0x6d37d000 C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre\bin\JdbcOdbc.dll
    0x74320000 - 0x7435d000 C:\WINDOWS\system32\ODBC32.dll
    0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\COMCTL32.dll
    0x7c9c0000 - 0x7d1d5000 C:\WINDOWS\system32\SHELL32.dll
    0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
    0x763b0000 - 0x763f9000 C:\WINDOWS\system32\comdlg32.dll
    0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
    0x20000000 - 0x20017000 C:\WINDOWS\system32\odbcint.dll
    0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
    0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
    0x5fe80000 - 0x5fe9b000 C:\WINDOWS\system32\odbccp32.dll
    0x77c70000 - 0x77c93000 C:\WINDOWS\system32\msv1_0.dll
    0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll
    VM Arguments:
    jvm_args: -Djava.library.path=../lib -Dwrapper.key=hJ4ROjr9dlwjBqsE -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=2196 -Dwrapper.version=3.2.1 -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=5
    java_command: org.tanukisoftware.wrapper.WrapperSimpleApp com.realm.connect.process.BatchProcessStart C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\CONNECT\
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MyEclipse Enterprise Workbench 5.1.0 GA\jre\bin;C:\Sun\SDK\jdk\bin;
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 8, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
    Memory: 4k page, physical 523760k(118812k free), swap 2029640k(1564992k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_08-b03) for windows-x86, built on Jul 26 2006 01:10:50 by "java_re" with MS VC++ 6.0

    Are you familiar with the [url http://bugs.sun.com/bugdatabase/index.jsp]Bug Database? Perform a search there for the exception you've encountered. You may find a solution or workaround listed.

  • JSP request.getParameter bug

    i try the following code for receive Parameters from jsp.
    <% String name=request.getParameter("Name"); %>
    but when Name TextField(in HTML) is empty and i want to check
    for none empty field with (if) instruction with following code..
    if(name ==null ) //somecodes..
    this instruction not run and programs continue .

    It's not a bug.
    <%
    String name=request.getParameter("Name");
    if (name == null) {
      //what to do if parameter does not exist
      //e.g.: a checkbox not checked
    } else if (name.trim().equals("")) {
      //what to do if parameter exists but is 'empty'
      //e.g.: an text input field with no non-whitespace characters
      //NOTE: if you want leading and trailing spaces to be
      //      considered values, remove the .trim() from the condition
    } else {
      //there is a value.. do with it as you will
    %>

  • Bug in the Oracle JSP parser..?

    Hi,
    I seem to have run into a problem with double quotes inside attributes of a custom tag. For example, on Tomcat the following line is valid in a JSP:
    <mylib:person label="<%="Mr " + surname%>" />
    Tomcat treats the "Mr " in the expression as a Java string, but OC4J seems to treat the first quote inside the expression as the end of the label attribute. It then complains because Mr is not a valid attribute of the tag.
    Surely this is a bug?!
    There are workarounds:
    <mylib:person label='<%="Mr " + surname%>' />
    i.e. use single quotes for the attribute value, but what if the JSP expression actually contains a single quote as well?!
    <mylib:button action='<%="location.href='" + url + "'"%>' />
    It's starts to get silly, and I end up having to create scriplet variables just to go inside the attribute. I'm migrating from Tomcat, and have numerous instances of this.
    Is this a bug? (I'm using OC4J 9.03) Is there a setting I've missed?
    Thanks,
    Phil

    That doesn't seem to work. On the login page we have the line (uses our own custom tag called "form"):
    <html:form method="post" action="<%=response.encodeURL("j_security_check")%>" >
    OC4J complains about this (Tomcat is happy enough). If I change this to:
    <html:form method="post" action="<%=response.encodeURL(\""j_security_check\"")%>" >
    then it won't compile in either OC4J or Tomcat... which to be honest is what I expected. The quotes is inside a JSP expression; it's not really part of the attribute.
    Or did you mean something else?
    Thanks,
    Phil

  • Interesting!!! But, who's bug is this? JSP?

    copy the following code and save it as jsp. then run this jsp page on either weblogic or tomcat servers, you can see the 'count' incremented twice. and I think this is not a browser problem, since this occurs on both netscape or IE. So, this may be a JSP or servlet bug? If anybody know the reason please reply to [email protected]
    Listing: zenTest.jsp
    <%
    out.println("inside maze :)");
    int i = 0;
    if(session.getAttribute("iTmp")==null){
         session.setAttribute("iTmp", "1");
    }else{
         i = Integer.parseInt((String)session.getAttribute("iTmp"));
         ++i;
         session.setAttribute("iTmp",""+i);
    System.out.println("count is "+i);
    %>
    <HTML>
         <HEAD>
              <TITLE> Report </TITLE>
         </HEAD>
         <body>
              <table background="#FFDEFD">
                   <tr>
                     <td>Hi</td>
                   </tr>
              </table>
         </body>
    </html>
    <script>
         alert('1');
    </script>

    Not sure what you meant by "the 'count' incremented twice". When I tried the JSP page, I got 0 the first time, and 2,3,4... on subsequent refreshes. It behaved as expected.

  • Bug in work flow jsps

    Hi,
    i have a element in xsd which has maxoccurs = unbounded.
    When i use this as a parameter for one of the human tasks ,auto generate the form and deploy it on PM, i dont see any text box appearing for the unbounded element, The jsp has a method to generate the input tags which looks like this:
    private String getTableField(Element payload, Form form,
    String displayName, String xpath,
    String inloopXPath, String datatype) throws Exception
    Field thisField = null;
    thisField = form.getField(xpath);
    String thisDisabled = "";
    if (thisField == null || thisField.isEditable())
    thisDisabled = "";
    else
    thisDisabled = "disabled";
    return "<td align=\"left\"><input name=\""
    + PayloadFormGenerator.constructName(inloopXPath)
    + "\" value=\""
    + PayloadFormGenerator.selectNodeValue(payload, inloopXPath, form.getNamespaceMap())
    + "\" dataType=\""
    + datatype + "\"" + thisDisabled
    + "></input></td>";
    The above method does not have a type attribute for input tag.
    I just want to know if there is any patch available for the bug that i see,
    Regards
    Ashish

    btw, i am using jdev 10.1.3.3

  • [Tomcat bug?] Calling response.sendError(404) from JSP

    Calling "response.sendError(404);" from JSP context causes Tomcat to mangle all non-latin characters.
    Any ideas why?
    How to recreate bug:
    http://www.kitoy.ru/int/bug1.zip
    There are 3 files in bug1.zip.
    index..jsp:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@page pageEncoding="utf-8"%>
    <%@page contentType="text/html; charset=utf-8"%>
    <%
        response.sendError(404);
    %>
    <html>
    </html>404.jsp:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@page pageEncoding="utf-8"%>
    <%@page contentType="text/html; charset=utf-8"%>
    <html>
    <h1>Hello in Russian: &#1055;&#1088;&#1080;&#1074;&#1077;&#1090;!</h1>
    </html>and WEB-INF\web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
        <display-name>bug1</display-name>
        <description>bug1</description>
        <distributable/>
        <error-page>
            <error-code>404</error-code>
            <location>/404.jsp</location>
        </error-page>
    </web-app>Calling of index.jsp should cause 404 error with custom error page. The error page is utf-8 encoded and contains russian characters. That's by design.
    In fact, Tomcat shows ?????? instead Russian variant of "Hello".
    Tomcat/5.5.17 or Tomcat/5.0.28.- it does not matter.
    Is it Tomcat bug or I should not call response.sendError(404) from JSP?

    it's not a tomcat bug, it's rather a problem with
    your code.
    change index.jsp like the following then test
    it !
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@page pageEncoding="utf-8"%>
    <%@page contentType="text/html; charset=utf-8"%>
    <%
    esponse.sendRedirect("blablablablablabla.html");
    %>
    <html>
    </html>
    Thanks for the insight. But the issue here is with the response.sendError() method.

Maybe you are looking for

  • ICloud backup has old non-email Apple ID, no longer have password

    I'm unable to restore my iPhone 4/iOS 6.1.3 backup to my new iPhone 5/iOS 7.0 Using my new iPhone 5s: 1. In the Set up your iPhone screen, tap Restore from iCloud Backup. 2. In in iCloud Sign In screen, I enter my email-based Apple ID and Password, t

  • How do I get a 1st generation time capsule to join a wifi network?

    OK, I've searched the groups but no luck.  Here's my situation; I'd like to configure a 1st generation time capsule to join a wifi network ideally with a printer attached to the USB.  My set up is an iMac running 10.9.3, Airport Utility 6.3.2 and a 1

  • Source System RFC Error in BI

    Hello SAP Experts, I have installed BI 7.0. And i have created an RFC connection for BI to R3. It was working fine but now the SAP R/3 source system in RSA1 is giving an error "Result of the destination check:Name or password in incorrect(repeat logo

  • Default Dashboard for user

    Hi! i am facing the problem to give default Dashboard for user.i can set my default dashboard from "my account" but is there any other way so that Administrator can give diffrent dashboard to diffrent user as default dashboard ???as in i want user1 c

  • IPhoto on MacBook

    I have a MacBook with Mac 10.6.8 operating system.  Is there a way to lock a folder in my IPhoto?