Javafree
Página Inicial do Fórum > Java Básico

HTTP Status 500 - java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:



Criar novo tópico   Responder tópico


  1. leonardombr
    Posts:1


    Comment Arrow

    Publicado em: 07/05/2016 18:35:44

    Boa noite Galera!

    Me ajudem com um erro

    HTTP Status 500 - java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:

    type Exception report

    message java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:

    description The server encountered an internal error that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Problem compiling [SELECT tipoProduto FROM TipoProduto tipoProduto].
    [24, 35] The abstract schema type 'TipoProduto' is unknown.
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:555)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    root cause

    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Problem compiling [SELECT tipoProduto FROM TipoProduto tipoProduto].
    [24, 35] The abstract schema type 'TipoProduto' is unknown.
    org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1616)
    org.apache.jsp.listaTipoProduto_jsp._jspService(listaTipoProduto_jsp.java:141)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:43
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    root cause

    Exception [EclipseLink-0] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.JPQLException
    Exception Description: Problem compiling [SELECT tipoProduto FROM TipoProduto tipoProduto].
    [24, 35] The abstract schema type 'TipoProduto' is unknown.
    org.eclipse.persistence.internal.jpa.jpql.HermesParser.buildException(HermesParser.java:155)
    org.eclipse.persistence.internal.jpa.jpql.HermesParser.validate(HermesParser.java:347)
    org.eclipse.persistence.internal.jpa.jpql.HermesParser.populateQueryImp(HermesParser.java:27
    org.eclipse.persistence.internal.jpa.jpql.HermesParser.buildQuery(HermesParser.java:163)
    org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:142)
    org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:116)
    org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:102)
    org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:86)
    org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1614)
    org.apache.jsp.listaTipoProduto_jsp._jspService(listaTipoProduto_jsp.java:141)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:43
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    note The full stack trace of the root cause is available in the Apache Tomcat/8.0.33 logs.

    Apache Tomcat/8.0.33


    Já não sei mais oq fazer.



  1. Relacionados