Menu

An exception occurred processing [xava/detail.jsp]

2024-04-13
2024-04-15
  • Lucio Crusca

    Lucio Crusca - 2024-04-13

    I'm afraid I'm at a total loss this time, because I really don't know what to look for. The full error message I get is:

    ERROR: An exception occurred processing [xava/detail.jsp] at line [161] 158: + "&first=" + first 159: + "&frame=false&composite=false&onlyEditor=false"; 160: %> 161: 162: <% 163: first = false; 164: } // END IF Display MetaReference Without Frame Stacktrace:

    and it stops there, without the stacktrace. In the tomcat log I get the exception details:

    org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for servlet [jsp] threw exception
    org.openxava.util.XavaException: La conversione in string dagli oggetti di tipo class java.lang.Object non ancora è supportata
    at org.openxava.model.meta.MetaProperty.format(MetaProperty.java:1229)
    at org.openxava.calculators.DescriptionsCalculator.read(DescriptionsCalculator.java:116)
    at org.openxava.calculators.DescriptionsCalculator.calculate(DescriptionsCalculator.java:61)
    at org.openxava.calculators.DescriptionsCalculator.getDescriptions(DescriptionsCalculator.java:156)
    at org.apache.jsp.xava.editors.descriptionsEditor_jsp._jspService(descriptionsEditor_jsp.java:342)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    ...

    which in english translates more or less to "String conversion from objects of type class java.lang.Object is not supported yet", but Google doesn't seem to find that error anywhere, not in italian nor in english.

    The full code of my project is here: https://gitlab.com/lucrus/legare

    and the model throwing the exception above is this one: https://gitlab.com/lucrus/legare/-/blob/main/src/main/java/it/virtualbit/legare/model/Incarico.java?ref_type=heads

    what am I doing wrong?

     
  • Javier Paniza

    Javier Paniza - 2024-04-15

    Hi Lucio:

    This happens when you use a complex type for a property without @ManyToOne or @Convert or @Type. However, that is not your case. I revise the code for Incarico, Allegato and BaseEntity and it seems correct.

    So, you have to debug until found the problem. The way to do it is removing code. Remove members from Incarico entity until it works. Maybe the problem is in Allegato, so you should remove members from Allegato until it works. If it still fail, even with a plain string, create a new simple project and copy the simple Incarico to it. You have to find it which is the member with no @ManyToMany or @Convert.


    Help others in this forum as I help you.

     

Log in to post a comment.

MongoDB Logo MongoDB