Forums
Erro 500 - Versão para Impressão

+- Forums (http://forum.sonner.com.br)
+-- Fórum: GovDigital (http://forum.sonner.com.br/forumdisplay.php?fid=1)
+--- Fórum: Duvidas gerais (http://forum.sonner.com.br/forumdisplay.php?fid=5)
+--- Tópico: Erro 500 (/showthread.php?tid=255)



Erro 500 - alexandre.costa - 07-04-2017

Segue erro 500 ao tentar consultar documentos emitidos no CNPJ 92889070000675

favor verificar com urgência.

HTTP Status 500 - Unknown name value [PEMANENTE] for enum class [br.com.sonner.iss.entity.NaturezaCadastro]

type Exception report

message Unknown name value [PEMANENTE] for enum class [br.com.sonner.iss.entity.NaturezaCadastro]

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

exception

java.lang.IllegalArgumentException: Unknown name value [PEMANENTE] for enum class [br.com.sonner.iss.entity.NaturezaCadastro]
org.hibernate.type.EnumType$NamedEnumValueMapper.fromName(EnumType.java:467)
org.hibernate.type.EnumType$NamedEnumValueMapper.getValue(EnumType.java:452)
org.hibernate.type.EnumType.nullSafeGet(EnumType.java:107)
org.hibernate.type.CustomType.nullSafeGet(CustomType.java:127)
org.hibernate.type.AbstractType.hydrate(AbstractType.java:106)
org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPer​sister.java:2969)
org.hibernate.loader.plan.exec.process.internal.EntityReferenceInitializerImpl.l​oadFromResultSet(EntityReferenceInitializerImpl.java:324)
org.hibernate.loader.plan.exec.process.internal.EntityReferenceInitializerImpl.h​ydrateEntityState(EntityReferenceInitializerImpl.java:251)
org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.readRow(Abstra​ctRowReader.java:107)
org.hibernate.loader.plan.exec.internal.EntityLoadQueryDetails$EntityLoaderRowRe​ader.readRow(EntityLoadQueryDetails.java:255)
org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl.extractRe​sults(ResultSetProcessorImpl.java:129)
org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(​AbstractLoadPlanBasedLoader.java:138)
org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(​AbstractLoadPlanBasedLoader.java:102)
org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(Abstract​LoadPlanBasedEntityLoader.java:186)
org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersis​ter.java:4126)
org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(Default​LoadEventListener.java:502)
org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventLis​tener.java:467)
org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListe​ner.java:212)
org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEve​ntListener.java:274)
org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventLis​tener.java:150)
org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1070)
org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:989)
org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:716)
org.hibernate.type.EntityType.resolve(EntityType.java:502)
org.hibernate.type.ComponentType.resolve(ComponentType.java:666)
org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:​170)
org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:14​4)
org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1114)
org.hibernate.loader.Loader.processResultSet(Loader.java:972)
org.hibernate.loader.Loader.doQuery(Loader.java:920)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:3​54)
org.hibernate.loader.Loader.doList(Loader.java:2553)
org.hibernate.loader.Loader.doList(Loader.java:2539)
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2369)
org.hibernate.loader.Loader.list(Loader.java:2364)
org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:496)
org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java​:387)
org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:231)
org.hibernate.internal.SessionImpl.list(SessionImpl.java:1264)
org.hibernate.internal.QueryImpl.list(QueryImpl.java:103)
org.hibernate.jpa.internal.QueryImpl.list(QueryImpl.java:573)
org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:449)
br.com.sonner.iss.cmd.find.FindDocumentosCmd.call(FindDocumentosCmd.java:133)
br.com.sonner.iss.action.documento.DocsContribuinteAction.execute(DocsContribuin​teAction.java:75)
sun.reflect.GeneratedMethodAccessor934.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
java.lang.reflect.Method.invoke(Method.java:498)
ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:892)
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1294)
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInf​o(XWorkMethodAccessor.java:117)
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethod​Accessor.java:108)
ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1370)
ognl.ASTMethod.getValueBody(ASTMethod.java:91)
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
ognl.SimpleNode.getValue(SimpleNode.java:258)
ognl.Ognl.getValue(Ognl.java:467)
ognl.Ognl.getValue(Ognl.java:431)
com.opensymphony.xwork2.ognl.OgnlUtil$3.execute(OgnlUtil.java:352)
com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecuteMethod(OgnlUtil.java:404)​
com.opensymphony.xwork2.ognl.OgnlUtil.callMethod(OgnlUtil.java:350)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvoca​tion.java:430)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionIn​vocation.java:290)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:251)
br.com.sonner.iss.interceptor.TelasMaisUtilizadasInterceptor.intercept(TelasMais​UtilizadasInterceptor.java:73)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationIn​terceptor.java:265)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doInte​rcept(AnnotationValidationInterceptor.java:76)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilt​erInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInter​ceptor.java:41)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(Debuggin​gInterceptor.java:256)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(Defau​ltWorkflowInterceptor.java:168)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilt​erInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationIn​terceptor.java:265)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doInte​rcept(AnnotationValidationInterceptor.java:76)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilt​erInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(Convers​ionErrorInterceptor.java:138)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Parameters​Interceptor.java:229)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilt​erInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Parameters​Interceptor.java:229)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilt​erInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(Static​ParametersInterceptor.java:191)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInter​ceptor.java:73)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldI​nterceptor.java:125)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor​.java:91)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterce​ptor.java:253)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDriven​Interceptor.java:100)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(Scope​dModelDrivenInterceptor.java:141)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterc​eptor.java:145)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterc​eptor.java:171)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilt​erInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.ja​va:140)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigI​nterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.​java:193)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(Except​ionMappingInterceptor.java:189)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
com.opensymphony.xwork2.interceptor.annotations.AnnotationWorkflowInterceptor.in​tercept(AnnotationWorkflowInterceptor.java:135)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
br.com.sonner.iss.interceptor.RedirectMessageInterceptor.doIntercept(RedirectMes​sageInterceptor.java:50)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilt​erInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
br.com.sonner.iss.interceptor.ConversationInterceptor.intercept(ConversationInte​rceptor.java:102)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
br.com.sonner.iss.interceptor.RequerInterceptor.intercept(RequerInterceptor.java​:74)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
br.com.sonner.iss.interceptor.BloqueioInterceptor.intercept(BloqueioInterceptor.​java:44)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.j​ava:245)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:575)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperatio​ns.java:81)
org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter.doFilter(StrutsExecu​teFilter.java:93)
com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.jav​a:129)
com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)​
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepa​reFilter.java:91)
br.com.sonner.iss.web.ISSSessionFilter.doFilter(ISSSessionFilter.java:50)
br.com.sonner.iss.cache.NoCacheFilter.doFilter(NoCacheFilter.java:25)
br.com.sonner.iss.web.SSLBalancerFilter.doFilter(SSLBalancerFilter.java:72)
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterIntern​al(OpenEntityManagerInViewFilter.java:177)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilte​r.java:107)
br.com.sonner.iss.ContentTypeFilter.doFilter(ContentTypeFilter.java:61)

note The full stack trace of the root cause is available in the Apache Tomcat/8.0.41 logs.
Apache Tomcat/8.0.41


RE: Erro 500 - Hiago - 11-04-2017

Problema já foi resolvido, houve uma falha na importação de dados.

att,
Hiago