facebook

name is too long to represent error

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #242314 Reply

    agholap
    Member

    I am using eclipse 3.1.0/myeclipse 4.0./tomcat 5.5.4/jdk1.5.0_05.

    I am working on an application which creates PDF reports. I am getting following error while generating pdf.
    java.lang.InternalError: name is too long to represent
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:156)
    at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:69)
    at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:589)
    at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:674)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:400)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:303)

    This happens only if I run tomcat from myeclipse env. If I run tomcat ouside of eclipse it works fine.
    I am not sure why its happening only from myeclipse. Do we need some patch?

    #242315 Reply

    Riyad Kalla
    Member

    Is there any extra library, class or JDK arguments you were using with Tomcat externally that you haven’t reproduced in the Tomcat 5 connector settings in MyEclipse?

    #242329 Reply

    agholap
    Member

    I didn’t add any extra parameters. I just started tomcat using startup.sh. I am not sure how myeclipse starts it.

    #242331 Reply

    Riyad Kalla
    Member

    I’m curious about finding out more about this exception. MyEclipse starts all the application servers in the same method the init scripts do, there is no difference. But sometimes folks will heavily modify their startup scripts, in which case those settings need to be duplicated in the connector settings; but in this case it seems you didn’t change anything.

    What is the name of the PDF creator class you are using? The error that seems strange is this part:

    java.lang.InternalError: name is too long to represent
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

    Like some portion of the PDF generation library is attempting to load a class whose name is so long it is invalid, I imagine this probably isn’t the case.

    As a temporary workaround, you can always use remote debugging with an externally launched instance of any app server, so you still get the full MyEclipse support: http://www.myeclipseide.com/images/tutorials/quickstarts/remotedebugging/

    #242355 Reply

    agholap
    Member

    Actually its throwing this exception when my action class is trying to get the dispatcher for a jsp. so that the request can be forwarded to that jsp.

    #242371 Reply

    Riyad Kalla
    Member

    Are of any of you class/page name inordinately long?

    #242384 Reply

    agholap
    Member

    Actually this project was working fine in eclipse 3.0 and myeclipse 3.8 and jdk1.4.7. After I upgraded the eclipse to 3.1 and myeclipse to 4.0 and jdk 1.5.0_05, I started having this issue. Haven’t found the solution yet.

    #242392 Reply

    Scott Anderson
    Participant

    Since this is an error that the JDK is reporting and since it was working with JDK 1.4.2_07, can you try running Eclipse with JDK 1.4.2_07 to see if that resolves the issue? You can specify the JDK that eclipse uses to start like this:
    eclipse.exe -vm <path-to-jdk>\bin\javaw.exe

    Also, you’ll need to make sure that JDK 1.4.2_07 is the default JDK in the workspace at Window > Preferences > Java > Installed JREs.

    #291246 Reply

    DKishoreBabu
    Member

    Hi, when I’m adding extra column to my table, I’m getting “name is too long to represent” runtime error. I tried to adjust width size of my table but there no use.

    My env details: Weblogic, JDK1.5, JSF

    Pls help me how to solve this.
    Here I have given error stack trace and code snnipet.

    Error:
    javax.faces.FacesException: java.lang.InternalError: name is too long to represent
    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
    at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:236)
    at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:222)
    at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
    at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
    Truncated. see log file for complete stacktrace
    javax.servlet.ServletException: java.lang.InternalError: name is too long to represent
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:321)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:500)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
    Truncated. see log file for complete stacktrace
    java.lang.InternalError: name is too long to represent
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
    Truncated. see log file for complete stacktrace

    Code snnipet: :::::::::::::::

    <htm:table border=”0″ cellspacing=”0″ cellpadding=”0″
    rendered=”#{chain.showStores}” styleClass=”v2-geo3-tbl”>
    <htm:tr styleClass=”row_header3″>
    <htm:td width=”20px”>
    <h:selectBooleanCheckbox value=”#{chain.selected}” id=”level1_1″ disabled=”#{!orderStoreListGeographyAction.enableStores}”/>

    </htm:td>
    <htm:td width=”40px”>
    <h:outputText value=”Chain” />
    </htm:td>
    <htm:td width=”50px”>
    <h:outputText value=”STR ID” />
    </htm:td>
    <htm:td width=”80px”>
    <h:outputText value=”Store Name” />
    </htm:td>
    <htm:td width=”30px”>
    <h:outputText value=”Store #” />
    </htm:td>
    <htm:td width=”100px”>
    <h:outputText value=”Address” />
    </htm:td>
    <htm:td width=”60px”>
    <h:outputText value=”City” />
    </htm:td>
    <htm:td width=”40px”>
    <h:outputText value=”State” />
    </htm:td>
    <htm:td width=”40px”>
    <h:outputText value=”Zip CD” />
    </htm:td>
    <htm:td width=”50px”>
    <h:outputText value=”Override Status”/>
    </htm:td>
    </htm:tr>
    </htm:table>

    <rich:dataTable cellpadding=”0″ cellspacing=”0″
    border=”0″ id=”mainTbl13″ var=”store”
    value=”#{chain.chainStoreList}” styleClass=”v2-geo3-tbl”>

    <rich:column style=”width:20px;”>
    <h:selectBooleanCheckbox id=”level3_1″ value=”#{store.selected}” disabled=”#{!orderStoreListGeographyAction.enableStores}”/>
    </rich:column>
    <rich:column style=”width:40px;”>
    <h:outputText value=”#{chain.chainShortName}” />
    </rich:column>
    <rich:column style=”width:50px;”>
    <h:outputText value=”#{store.storeId}” />
    </rich:column>
    <rich:column style=”width:80px;”>
    <h:outputText value=”#{store.storeName}” />
    </rich:column>
    <rich:column style=”width:30px;”>
    <h:outputText value=”#{store.storeNumber}” />
    </rich:column>
    <rich:column style=”width:100px;”>
    <h:outputText value=”#{store.address}” />
    </rich:column>
    <rich:column style=”width:60px;”>
    <h:outputText value=”#{store.city}” />
    </rich:column>
    <rich:column style=”width:40px;”>
    <h:outputText value=”#{store.state}” />
    </rich:column>
    <rich:column style=”width:40px;”>
    <h:outputText value=”#{store.zip}” />
    </rich:column>
    <rich:column style=”width:50px;”>
    <h:outputText value=”#{store.restrictionOverrideStatus}”/>
    </rich:column>
    </rich:dataTable>

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: name is too long to represent error

You must be logged in to post in the forum log in