Stack overflow when writting custom tags

Hi all
I am writting complex custom tags and deploying them into JBoss. The tags are nested and they also use other classes like Vector or HashTable.
Deployed the war file into Jboss, when browsing some JSP pages I get the : java.lang.StackOverflowError!
for example:
HTML code .....
<CustomTag1>
<CustomTag2></CustomTag2>
<CustomTag3/>
</CustomTag2>
HTML code.....
CustomTag1 bufferes it's body and pirnts it out on doafterbody.
about 20 or so classes are working together to publish the output.
Any help!

Amazingly I don't have any stack trace of error, just plain :
[jbossweb] WARNING: Exception for /index2.jsp java.lang.StackOverflowError
this is really strange, i trace the code by writing messages to standard output console and program stops in different locations every now and then.
for example : I have a method to save current state of a tag and then a method to render the output of the tag. the sequence is like:
in customTag1 the one that all tags of nested inside it.
public int doAfterBody()
InitChildTags();
LoadChildTagsStates();
ProcessRequest();
CallLoadPage(); // an astract method used by descendants of CustomTag1
SaveChildTagsStates();
RenderChildTags();
The program sometimes stops at "SaveChildTagsStates(); " sometimes at "RenderChildTags();"!

Similar Messages

  • Stack overflow when calling a DLL

    I have developped a DLL in Ada.
    I tried to call a function of this DLL from a C++ executable.
    My program crashed because of a stack overflow.
    Then, I increased the stack size of my program (linker option), and now it
    works.
    Calling this DLL through the call library function from a 6.0 Labview
    program causes the same stack overflow.
    How could I increase the stack size of my Labview program ?
    Thanks.

    Hi,
    I have never come across this issue but here are a few things you can try:
    1) Change the Calling Convention between C and StdCall(WINAPI). The main difference between the two calling conventions has to do with when the stack is cleaned up. In one method, the stack is cleaned earlier than in the other method.
    2) Call your dll with LabVIEW 7.0. You can find the evaluation version of the latest version at http://www.ni.com/labview
    Good luck
    Feroz

  • "stack overflow" when trying to connect with Oracle ODBC

    Hi,
    I'm trying to connect to Oracle DB (8.1.7.3.0) from WinNT 4.0 SP6 with Oracle ODBC driver 8.0.6.6.0. I've been trying to connect with "Oracle ODBC Test" and with "MS Query". In either way I end up with Dr. Watson reporting about "stack overflow". Before starting to upgrade ODBC driver I wanted to ask - should these versions of driver and DB work together at all (even unofficially)? Or may I be missing some other thing? Any hints, ideas are welcome.
    Regards,
    Madis Priilinn

    Thank You for replying, Justin!
    Yes, I can connect successfully to the database through other tools - at the moment I tried SQL*Plus, Net8 Easy Config and Schema Manager.
    The Oracle client in the NT machine is 8.0.5.0.0. And unfortunately I do not know anything about the Oracle installation on this machine and at the moment I don't have that person near me too whom to ask also. But I think the installation was ok, because the connection through ODBC was working before the DB upgrade as far as I understood (sorry, again at the moment I don't know what was the previous version of DB. I will ask that information as soon as possible).
    The main problem that bothers me at the moment is that I can't install 8.1.* series OraODBC driver with 8.0.5.0.0 Oracle Installer. I managed to install 8.0.6.6.0 version of the driver, but not the newer ones. As far as I've understood I have to upgrade the whole Oracle in the NT machine to upgrade that installer. Am I correct?
    Regards,
    Madis Priilinn

  • XHTML export STACK OVERFLOW

    Hi,
    I am currently doing jobs where I have to create annual reports for print, that also have to be exported to xHTML at the end. For many reports all tests work perfectly.. a small glitch here and there. But for one suddenly all the documents from 1 client give a stack overflow when trying to export. Other still work fine, but this one doesn't.
    Has anyone experienced this before, or knows what the problem might be? I tried it on multiple machines.

    Another question, one of those drop down boxes will "undim" a button that has a callback.  When doing this, what happens on the back end?  I ask because I changed my debug stack size to match my release and it stops at the top of the button callback that gets unhidden.  If that is the case then that may be the issue.
    Because I make a temp array that instead of being 36*68000, is now 96*68000. (reading in unknown file size, and was somewhat lazy to implement dynamic allocation )
    Strangely, if I wait long enough after startup, then it doesn't crash either, making me wonder if CVI is trying to cleanup after program startup early on.
    Thanks,
    Nick

  • Custom tag Manipulation

    All:
    I have created a custom tag for my users. When this custom
    tag is used, I
    would like the inner text of the tag to be a specific color
    when viewing in
    Design Mode. (as an example, the way an H1 tag works).
    I have tried using Design-Time CSS, but this does not work
    for me. Since
    these HTML files that are being edited are independant files
    and not part of
    a website.
    Is there anyway to have a default CSS file associated with
    the Dreamweaver
    application that is included everytime a file is opened? I
    would like to
    have no user action invovled with this file.
    Any ideas?
    thanks
    Kev

    I created my custom tag as follows (Most files that are
    updated are located
    in :../Dreamweaver/Configuration/Tag Libraries/)
    1. Added the mytag.htm and mytag.vtm files inside the
    ..TagLibraries/HTML/
    folder. (So information about the tag will show up in the
    details of the Tag
    Library when inserting)
    2. Updated the TagLibraries.vtm ../TagLibraries/ to include
    my new custom
    tag. (So the tag will show up in the Tag Libraries when
    inserting the tag)
    3. Added my custom tag to html_all.vtv in
    ..TagLibraries/Validator/ (This
    will allow my tag to pass through validation)
    That should pretty much get you started to create your own
    tag and
    validation to accept your tag. Keep in mind that this is not
    valid HTML and
    this tag is only for our purposes. When i say that it passes
    validation, i
    only mean that in the validation panel an error will not be
    thrown because
    this tag exists.
    Anyone still have any ideas on how to apply a generic CSS
    file to any file
    that is opened in Dreamweaver? Once again, i prefer to have
    no user
    interaction.
    Thanks
    Kev
    "Walt F. Schaefer" <[email protected]> wrote in
    message
    news:[email protected]...
    >>> I have created a custom tag for my users.
    >
    > Please explain, in detail, what you did to create this
    tag.
    >
    > --
    >
    > Walt
    >
    >
    > "KS" <[email protected]> wrote in
    message
    > news:[email protected]...
    >> All:
    >>
    >> I have created a custom tag for my users. When this
    custom tag is used, I
    >> would like the inner text of the tag to be a
    specific color when viewing
    >> in Design Mode. (as an example, the way an H1 tag
    works).
    >>
    >> I have tried using Design-Time CSS, but this does
    not work for me. Since
    >> these HTML files that are being edited are
    independant files and not part
    >> of a website.
    >>
    >> Is there anyway to have a default CSS file
    associated with the
    >> Dreamweaver application that is included everytime a
    file is opened? I
    >> would like to have no user action invovled with this
    file.
    >>
    >> Any ideas?
    >>
    >> thanks
    >> Kev
    >>
    >
    >

  • Is possible to write a custom tag inside another custom tag ??

    Hi
    I�m trying to reduce the time needed to code mi app presentation layer, it uses some custom tags with certain configuration, i would like to know if its possible to do something like this inside my custom tag doAfterBody().
    public int doAfterBody() throws JspException {
              JspWriter writer=bodyContent.getEnclosingWriter();
              try {
                   writer.print("<customTag:myAnotherTag someEspecificConfigurationParams="someEspecificValues"/>");
              } catch (IOException e) {
                   pageContext.getServletContext().log("Error: "+e.getMessage());
              }return SKIP_BODY;
         }The goal is to simplify the jsp code because the configuration params for the custom tags (css styles and similar) are allways the same.
    That don�t work, it simply prints <customTag:myAnotherTag/> in screen but the tag is not evaluated, i�ve tried too something like
    public int doAfterBody() throws JspException {
              if (repeat) {
                   JspWriter writer = bodyContent.getEnclosingWriter();
                   try {
                        writer.print("<customTag:myAnotherTag/>");
                   } catch (IOException e) {
                        pageContext.getServletContext().log("Error: " + e.getMessage());
                   repeat = false;
                   return EVAL_BODY_AGAIN;
              return SKIP_BODY;
         }And it doesn�t worked worked. Maybe using the taghandler classes and calls to the doAfterBody could make it work, but when you need to nest tags it could be a little hell of coupling calls, so before doing it i would like to know if what i want is possible. After reading some books i tought it could work because the stack of out objects, but i can�t make it work.
    Another idea is to inherit from tagHandler and override some properties in the tags, but i don�t like the idea to much.
    So, can anyone help me??
    Thanks.

    You cannot do that and I have listed out the reason and a possible solution in this post http://forum.java.sun.com/thread.jspa?threadID=697243 from yesterday.
    cheers,
    ram.

  • IOException when flush is called from a custom tag

    Thanks is advance for the help. I've encountered an oddity in OC4J 10.1.3 Standalone using java 1.5 the 2.4 servlet spec and struts 1.1 and I'm wondering how to resolve it. In our current application we use custom tags to define certain fields. Every tag in our web front end does the same thing.
    <pre>
    JspWriter writer = pageContext.getOut();
    writer.print(sb.toString());
    writer.flush();
    </pre>
    I would understand if the tag was calling a commit then flush and then trying to write to the buffer again. That should raise this exception. We have tags that do the same thing without issue, But some others fail. This is the stack trace we see in the logs.
    <pre>
    WARN - SpecialReviewTag.doStartTag() IOException:
    java.io.IOException: InValid to flush BodyContent: no backing stream behind it
    at com.evermind.server.http.EvermindBodyContent.flush(EvermindBodyContent.java:213)
    at xxx.xxxx.xxxxx.xxxxxx.receiving.struts.tag.SpecialReviewTag.doStartTag(SpecialReviewTag.java:198)
    at receiving.item__receipt__items._jspService(_item__receipt__items.java:897)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    </pre>
    Here is where the oddity comes into play. The page still renders all the needed information for the user. The problem lies with this exception being flooded into our production logs.
    This is the web.xml file being used to define our .jsp configuration
    <pre>
    <jsp-property-group>
    <display-name>Ignore EL</display-name>
    <url-pattern>*.jsp</url-pattern>
    <el-ignored>true</el-ignored>
    <scripting-invalid>false</scripting-invalid>
    <is-xml>false</is-xml>
    </jsp-property-group>
    </pre>
    One other not these tags worked fine in the OC4J 10.1.2 Container this happened after the conversion to OC4J 10.1.3
    Thanks alot for the help,
    Charles
    Edited by: CharMow on Feb 11, 2009 5:14 AM

    Hi,
    I am also getting the same error, when we move to OC4J 10.1.3.
    If you find any solution for this please let me know, Thanks in advance.
    Following the stack trace..
    Can't insert page '/main.jsp' : InValid to flush BodyContent: no backing stream behind it java.io.IOException: InValid to flush BodyContent: no backing stream behind it at com.evermind.server.http.EvermindBodyContent.flush(EvermindBodyContent.java:213) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:878) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at layouts.leftLayout._jspService(_leftLayout.java:126) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259) at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51) at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259) at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51) at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Unknown Source)
    Thanks,
    Jam

  • Can I write Design-time for JSP custom tag(not JSF components)

    I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
    Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
    How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
    the Exception is shown as follow:
    java.lang.ClassCastException
         at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
    [catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
         at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
         at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
         at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
         at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
         at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
         at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
         at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
         at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
         at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
         at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
         at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
         at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
         at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
         at com.sun.rave.text.Document$5.run(Document.java:631)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
    Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
    How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
    the Exception is shown as follow:
    java.lang.ClassCastException
         at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
    [catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
         at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
         at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
         at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
         at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
         at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
         at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
         at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
         at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
         at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
         at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
         at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
         at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
         at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
         at com.sun.rave.text.Document$5.run(Document.java:631)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • Using EL How to write a custom tag?

    I want to write a tag wich takes input and output as it is.Like when i pass an primitive types then it directly pass no transfer as we are puting "" literial to the values and pass it.
    For Example:
    <fun:add i1=10 i2=20 />
    check my code as i write tld ,and classes
    ------ function.jsp ------
    <%@ taglib uri="http://jakarta.apache.org/explang/funtion-taglib"
    prefix="fun" %>
    <%=<fun:add i1=10 i2=20 /> %>
    ----------function.tld-------------
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/j2ee/dtd/web-jsptaglibrary_2_0.dtd">
    <taglib>
    <tlib-version>1.2</tlib-version>
    <jsp-version>2</jsp-version>
    <short-name>fun</short-name>
    <tag>
    <name>add</name>
    <tag-class>exp.MyClass</tag-class>
    <body-content>TAGDEPENDENT</body-content>
    <resolver-class>exp.MyVarRes</resolver-class>
    <expression-class>exp.MyExp</expression-class>
    <attribute>
    <name>i1</name>
    <required>true</required>
    </attribute>
    <attribute>
    <name>i2</name>
    <required>true</required>
    </attribute>
    </tag>
    </taglib>
    ---------evalutor&other classes-------
    ------MyClass.java-------
    package explang;
    public class MyClass{
    public int add(int x,int y){
    return(x+y);
    --------MyExp----------------
    package explang;
    import javax.servlet.jsp.el.*;
    public class MyExp extends Expression{
    public Object evaluate(VariableResolver vr)throws ELException{
    try{
    System.out.println("Execute evalute on MyExp");
    return Class.forName("java.lang.Integer.class");
    }catch(Exception e){ return null;}
    ------------MyExpEval----------------------
    package explang;
    import javax.servlet.jsp.el.*;
    public class MyExpEval extends ExpressionEvaluator{
    private int i1,i2;
    public void setI1(Integer i1){
    this.i1=i1.intValue();
    public void setI2(Integer i2){
    this.i2=i2.intValue();
    public java.lang.Object evaluate(java.lang.String name,java.lang.Class cls,javax.servlet.jsp.el.VariableResolver vr,javax.servlet.jsp.el.FunctionMapper fm)
    throws ELException{
    MyClass mc=new MyClass();
    try{
    mc=(MyClass)cls.newInstance();
    }catch(Exception e){ }
    int res=mc.add(i1,i2);
    return new Integer(res);
    public javax.servlet.jsp.el.Expression parseExpression(java.lang.String name,java.lang.Class cls,javax.servlet.jsp.el.FunctionMapper fm)
    throws ELException{
    return null;
    ------------MyVarRes------
    package explang;
    import javax.servlet.jsp.el.*;
    import javax.servlet.jsp.PageContext;
    public class MyVarRes implements VariableResolver{
    private PageContext mCtx;
    public MyVarRes(PageContext ctx){
    System.out.println("Intialize the PageContext");
    this.mCtx=ctx;
    public Object resolveVariable(String pName )throws ELException{
    if("pageContext".equals(pName))
    return mCtx;
    else
    return mCtx.findAttribute(pName);
    public Object resolveVariable(String name,Object gtype)throws ELException{
    if(gtype instanceof java.lang.Long)
    return (java.lang.Integer)gtype;
    return null;
    Is there any solution plz guide me,i have somewhere stuck in the middle bcz of this?

    I want to write a tag wich takes input and output as
    it is.Like when i pass an primitive types then it
    directly pass no transfer as we are puting ""
    literial to the values and pass it.
    For Example:
    <fun:add i1=10 i2=20 /> Can't do that, and even if you could, you shouldn't.
    1: Correct XHTML syntax requires the quotes, and custom tags were designed to fit into XHTML syntax.
    2: What would you possibly gain? doing <fun:add i1="10" i2="20" /> will translate the values to the appropriate data type for you - if you declare your set-method to have a Long prameter, then these values will be translated to Longs... Same for primitives...
    check my code as i write tld ,and classes
    ------ function.jsp ------
    <%@ taglib
    uri="http://jakarta.apache.org/explang/funtion-taglib"
    prefix="fun" %>
    <%=<fun:add i1="10" i2="20" /> %>What are you trying to do here? You can't put a custom tag inside a scriptlet/expression like that. You would either use custom tags OR scriptlets, not both. After all, what goes between <% ... %> tags (and <%= ... %>) needs to be Java code. And <fun:add i1="10" i2="20"/> is not java code.

  • Stack overflow at line: 1792 or 1788 when using the search function

    Hello everyone,
    My name is Thibault. I am a technical communications specialist. I've been using Robohelp html for a couple of years.
    I am working on the user guide of the software application developed where I work.
    This is a HUGE project, more than 6500 pages.
    We're two technical writers on this project. (This is an inportant detail since my colleague doesn't get the problem).
    I need your help because I have been having an annoying issue over the last couple of days.
    After the project is generated, I open it in the software, clicking F1.
    When I want to use the search function I have this error message displayed:
    "Stack overflow at line: 1792" or "Stack overflow at line: 1788"
    Do you know where this could come from?
    Furthermore, I noticed that this stack overflow only occurs on some words.
    I mean, it occurs for the most used words in this project.
    We have customers all over the world and over the last week, we've been getting a lot of feedbacks about this error message.
    I hope someone will be able to help me on this one!
    Thanks in advance!

    First of all, thanks for your answer RoboColum(n).
    Is the problem only when you search for a topic that contains Flash output?
    All my topics contain Flash outputs. I generate my output files on a folder that is embedded into the software.When in the software, I click F1 and the Flash User Guide opens.The search function works (or not) depending on the software version (32/64-bit).
    At what point exactly does the stack overview occur?
    We have two versions of the software a 32-bit version and a 64-bit version.
    The search function works fine with the 32-bit version.
    The problem occurs when I use the 64-bit version. When I type in a word, for example "unit", the stack overflow message appears. See below:
    As you can see, it looks like the search function freezes while the stack overflow message appears.
    And I never get this error message with the 32-bit version of our software.
    I also wonder whether you can search on a project that contains no Flash output. Perhaps you could try for us?
    What do you mean by that?
    As I told you previously, my Flash Player version is a 32-bit one.
    Do you think that the issue might come from there?

  • Custom tag losing onchange value when page is refreshed

    Hi all,
    I'm still using JSF 1.1 and I have an issue with a custom tag. When my page is first displayed, the onchange attribute contains my script but, when I refresh the page it's not there anymore. The custom tag if an input for dates. It can have of to 4 dropdown list, year, month, day and time.
    Any idea what I might be doing wrong?
    Thanks

    Verify that the custom component saves the value of the onchange attribute in its state (see UIComponent.saveState() and UIComponent.restoreState()).

  • Stack overflow exception when selecting the Organization tab on a contact card

    I have encountered a reproducible crash in the Lync 2013 client.  The crash happens after selecting the "Organization" tab when viewing a contact card.
    The crash appears to happen because of a stack overflow with MSO.DLL.  I have applied the latest hotfix for that module but the crash persists.
    Before I open a case with MSFT, can anyone offer any insight?  Perhaps this is being seen elsewhere?
    Exception Stack:
    SYMBOL_NAME:  mso!Ordinal3863+4970
    FOLLOWUP_NAME:  MachineOwner
    MODULE_NAME: MSO
    IMAGE_NAME:  MSO.DLL
    DEBUG_FLR_IMAGE_TIMESTAMP:  50ee6c2f
    FAILURE_BUCKET_ID:  STACK_OVERFLOW_c00000fd_MSO.DLL!Ordinal3863
    BUCKET_ID:  APPLICATION_FAULT_STACK_OVERFLOW_mso!Ordinal3863+4970
    WATSON_STAGEONE_URL: 
    http://watson.microsoft.com/StageOne/lync_exe/15_0_4420_1017/5067326f/bcryptprimitives_dll/6_1_7600_16385/4a5bd987/c00000fd/000048c0.htm?Retriage=1
    Followup: MachineOwner
    0:004> kvn 1000
     # ChildEBP RetAddr  Args to Child             
    00 042c314c 738d4863 128db2d0 00000000 00000000 bcryptprimitives!AesCtrRng_Generate+0x1e (FPO: [Non-Fpo])
    01 042c321c 738d47a4 128db2b8 1524cb1b 00000008 bcryptprimitives!MSCryptAesCtrGen+0x166 (FPO: [Non-Fpo])
    02 042c3248 72781e65 0c2c8ae8 1524cb1b 00000008 bcryptprimitives!MSCryptGenRandom+0xc9 (FPO: [Non-Fpo])
    03 042c3260 6b8c1de1 12811348 1524cb1b 00000008 bcrypt!BCryptGenRandom+0x5c (FPO: [Non-Fpo])
    04 042c3278 65daaa26 1524cb1b 00000008 042c32ac cryptdll!DefaultRngFn+0x21 (FPO: [Non-Fpo])
    05 042c3288 65db4a73 1524cb1b 00000008 00000000 kerberos!KerbRandomFill+0x10 (FPO: [Non-Fpo])
    06 042c32ac 65daa2ec 1524cb05 80000001 042c3484 kerberos!KerbMakeSignatureToken+0x4e8 (FPO: [Non-Fpo])
    07 042c341c 750df30c 128d8248 80000001 042c34a8 kerberos!SpSealMessage+0x3d7 (FPO: [Non-Fpo])
    08 042c343c 750e128c 070c6c80 80000001 042c34a8 sspicli!LsaSealMessage+0x6e (FPO: [Non-Fpo])
    09 042c3460 7707ad44 0c53adfc 80000001 042c34a8 sspicli!EncryptMessage+0x3e (FPO: [Non-Fpo])
    0a 042c34d0 7707abdc 1513b5f0 00000132 00000000 Wldap32!CryptStream::SignAndSealLdapStream+0x184 (FPO: [Non-Fpo])
    0b 042c3518 770745d6 1513b5f0 000000d7 00000006 Wldap32!CryptStream::LdapSendSsl+0x12b (FPO: [Non-Fpo])
    0c 042c3534 77078527 0c53af5c 1278cef8 00000000 Wldap32!LdapSend+0xd8 (FPO: [Non-Fpo])
    0d 042c3558 770787b2 12c79fa0 0c53ad78 12597998 Wldap32!SendLdapSearch+0x64a (FPO: [Non-Fpo])
    0e 042c3594 770a91f4 0c53ad78 152f06e4 00000000 Wldap32!LdapSearch+0x28f (FPO: [Non-Fpo])
    0f 042c35e0 585c882f 0c53afa4 152f06e4 00000000 Wldap32!ldap_search_extW+0x48 (FPO: [Non-Fpo])
    WARNING: Stack unwind information not available. Following frames may be wrong.
    10 042c3624 585d2b7c 00000000 402af114 152f06e4 MSO!Ordinal8903+0x4f04
    11 042c3734 585d30e0 152f06e4 042c3768 12ae9be0 MSO!Ordinal3863+0x43b6
    12 042c3aa8 585d3136 152f06e4 12ae9be0 0c385808 MSO!Ordinal3863+0x491a
    13 042c3e14 585d3136 152e4d94 12ae9be0 0c385808 MSO!Ordinal3863+0x4970
    14 042c4180 585d3136 152f0404 12ae9be0 0c385808 MSO!Ordinal3863+0x4970
    <SNIP>
    4b1 043bfb44 579e9c53 1293ddb0 043f7130 043bfb6c MSO!Ordinal2317+0x240
    4b2 043bfb54 579e9bf7 1293ddb8 12c54790 1293ddb8 MSO!Ordinal2317+0x12b
    4b3 043bfb6c 5778abcd 1293ddb8 12c54790 5777ccab MSO!Ordinal2317+0xcf
    4b4 043bfb9c 5777bc92 043bfc0c 043bfbf0 003602e0 MSO!Ordinal5372+0x66
    4b5 043bfbb4 57778a6f 043bfc0c 00000000 003602e0 MSO!Ordinal4578+0x1bc
    4b6 043bfbe8 577776fd 00000000 577776fd 043bfc0c MSO!Ordinal630+0x18ed
    4b7 043bfc3c 768033aa 003602e0 043bfc88 77a19ef2 MSO!Ordinal630+0x57b
    4b8 043bfc48 77a19ef2 003602e0 69d72777 00000000 kernel32!BaseThreadInitThunk+0xe (FPO: [Non-Fpo])
    4b9 043bfc88 77a19ec5 577776a4 003602e0 ffffffff ntdll!__RtlUserThreadStart+0x70 (FPO: [Non-Fpo])
    4ba 043bfca0 00000000 577776a4 003602e0 00000000 ntdll!_RtlUserThreadStart+0x1b (FPO: [Non-Fpo])
    0:004> lmivm mso
    start    end        module name
    57760000 58f92000   MSO        (export symbols)       MSO.DLL
        Symbol file: MSO.DLL
        Image path: C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\MSO.DLL
        Image name: MSO.DLL
        Timestamp:        Thu Jan 10 01:22:23 2013 (50EE6C2F)
        CheckSum:         01833BC0
        ImageSize:        01832000
        File version:     15.0.4481.1000
        Product version:  15.0.4481.0
        File flags:       0 (Mask 3F)
        File OS:          40004 NT Win32
        File type:        2.0 Dll
        File date:        00000000.00000000
        Translations:     0000.04e4
        CompanyName:      Microsoft Corporation
        ProductName:      Microsoft Office 2013
        InternalName:     MSO
        OriginalFilename: MSO.DLL
        ProductVersion:   15.0.4481.1000
        FileVersion:      15.0.4481.1000
        FileDescription:  Microsoft Office 2013 component

    I actually think I may have figured this out.  I took a network trace during the crash.  What I found is that Lync is performing repeated LDAP searches over and over until it crashes from the stack overflow.  Digging into
    the searches, I found the same two user CN's being alternated one after another.
    It appears that this crash may be the result of a "Circular Reference" where the two users are each listed as the others manager in their user object.
    Example:
    User1: Manager = User2
    User2: Manager = User1
    Proving this as the cause will take me some additional time as these two users are at the top of the Org Chart.  :)
    I'll update this post with the results when I get them. 

  • How can a custom tag write multiple fragments in the response ?

    I have a custom tag that needs to write at least 2 html/xhtml fragments into the response in order to be html compliant. The custom tag outputs a script that must be located in the head section and other elements that refers to the script.
    Events handlers of html input elements follow this pattern. The handler may need to refer to script functions defined in the head section of the document.
    Is it possible with the custom tag architecture to handle this scenario ?

    I don't think so, unless the tag wraps the entire page, but that's harder to do. Maybe a tag could wrap the whole page and you could have another inner tag that acts as a marker of where to put things (kinda like Jakarta Commons Tiles tags).
    Otherwise, you could use 2 tags and share data put in the request scope by the header tag in the subsequent body tags.
    Or since you are writing Javascripts with the one tag, you don't strictly need to put the JS in the head. Although I'm not sure about that restriction in XHTML.

  • Tag value set to zero when performing a tag write.

    I have several tester PCs with identical equipment and versions of Labview 7.1. The TAG configuration I am using was provided by the company we purchased the equipment from. One of the testers is having an issue with the DSC module or configuration. If I write an identical analog value to a Tag with a Tag Write, the Tag Read performed for verification returns a value of 0.
    Using the Tag Monitor to analyze the problem, I found that immediately following the write command the value of the Tag in the Tag Monitor reads zero. If the value written is different from the previous value, the Tag Monitor will then read the expected value after a minimal delay. If the value written is the same value, the zero will remain. I compared this behavior to the other testers and the Tag Monitor does not show a value of 0 at any point.
    I have ruled out a problem with the equipment because we can connect the equipment to another tester PC and there is no problem. At this point, I think the reason the Tag Read returns the 0 is due to the value not being updated because writing the same value would not exceed the deadband. I am now trying to determine why the 0 appears from the Tag Write.
    I am using the Industrial Automation OPC Server 5.1.
    Any thoughts or ideas about how to remedy this problem would be much appreciated.
    Thanks,
    -Dave

    Hi Dave,
    Are you using Datasocket to read and write to your tags? If so, than setting the mode to BufferedReadWrite might solve the problem. Is it possible for you to attach a simple VI that illustrates the problem?
    Regards,
    Stanley Hu
    National Instruments
    Applications Engineering
    http://www.ni.com/support

  • Stack overflow occurred in ClassNameUtils$/getLoggerFriendlyClassName  when running unittest in FB

    Recently whenever I run my unit tests in Flash Builder, I get following error
    Error: Error #1023: Stack overflow occurred.
    at org.flexunit.utils::ClassNameUtil$/getLoggerFriendlyClassName(ClassNameUtil.as:44)
    at org.flexunit.runners::ParentRunner/run(ParentRunner.as:408)
    at org.flexunit.runners::Suite/runChild(Suite.as:93)
    at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep(ChildRunnerSequencer.as: 82)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:134)
    at org.flexunit.internals.runners.statements::StatementSequencer/evaluate(StatementSequencer .as:108)
    at org.flexunit.internals.runners.statements::StatementSequencer/executeStep(StatementSequen cer.as:97)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:134)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete(AsyncStatement Base.as:76)
    at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete(StatementSeque ncer.as:165)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:138)
    at org.flexunit.internals.runners.statements::StatementSequencer/evaluate(StatementSequencer .as:108)
    at org.flexunit.internals.runners.statements::StatementSequencer/executeStep(StatementSequen cer.as:97)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:134)
    at org.flexunit.internals.runners.statements::StatementSequencer/evaluate(StatementSequencer .as:108)
    at org.flexunit.runners::ParentRunner/run(ParentRunner.as:416)
    at org.flexunit.runners::Suite/runChild(Suite.as:93)
    at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep(ChildRunnerSequencer.as: 82)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:134)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.runners::ParentRunner/handleRunnerComplete(ParentRunner.as:452)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete(AsyncStatement Base.as:76)
    at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete(StatementSeque ncer.as:165)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:138)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete(AsyncStatement Base.as:76)
    at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete(StatementSeque ncer.as:165)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:138)
    at org.flexunit.internals.runners.statements::StatementSequencer/evaluate(StatementSequencer .as:108)
    at org.flexunit.internals.runners.statements::StatementSequencer/executeStep(StatementSequen cer.as:97)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:134)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete(AsyncStatement Base.as:76)
    at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete(StatementSeque ncer.as:165)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:138)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.runners::ParentRunner/handleRunnerComplete(ParentRunner.as:452)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete(AsyncStatement Base.as:76)
    at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete(StatementSeque ncer.as:165)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:138)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete(AsyncStatement Base.as:76)
    at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete(StatementSeque ncer.as:165)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:138)
    at org.flexunit.internals.runners.statements::StatementSequencer/evaluate(StatementSequencer .as:108)
    at org.flexunit.internals.runners.statements::StatementSequencer/executeStep(StatementSequen cer.as:97)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:134)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete(AsyncStatement Base.as:76)
    at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete(StatementSeque ncer.as:165)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:138)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.runners::ParentRunner/handleRunnerComplete(ParentRunner.as:452)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete(AsyncStatement Base.as:76)
    at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete(StatementSeque ncer.as:165)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:138)
    at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:118)
    at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete(AsyncStatement Base.as:76)
    at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete(StatementSeque ncer.as:165)
    at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( StatementSequencer.as:138)
    It might have something to do with the sequence of the test running, because I changed order of some tests and it went away. But this does happen from time to time. Anyone have any idea why?

    are  you running the version of flexunit  that came with builder or is it one of the newer release candidates

Maybe you are looking for