Para Desenvolvedores

Problema ao editar conteúdo com categorias.

Resolvido

Estou utilizando a versão 12.0 do lumisportal e tenho um serviço composto por id, titulo, introdução, conteudoHtml e dez imagens. Possuo também uma categoria para esses conteúdos.

Porém quando tento editar algum conteúdo que esteja associado a uma ou mais categorias me deparo com o seguinte erro:

2019-08-27 17:39:27,299 ERROR 0:0:0:0:0:0:0:1 admin   Service [LumisRequest - http-nio-9080-exec-10; url: [http://localhost:9080/lumis/content-administration/main.jsp?lumPageId=00000000E00000000000000000000001]; login: [admin]] lumis.portal.UnexpectedException - lumis.portal.UnexpectedException created
lumis.portal.UnexpectedException: STR_UNEXPECTED_EXCEPTION
	at lumis.doui.processaction.ProcessActionContainer.processAction(ProcessActionContainer.java:311)
	at lumis.doui.processaction.ProcessActionContainer.processActions(ProcessActionContainer.java:131)
	at lumis.doui.processaction.ProcessActionContainer.processActions(ProcessActionContainer.java:110)
	at lumis.doui.service.DouiServiceInterface.processActions(DouiServiceInterface.java:433)
	at lumis.content.service.ContentAdministrationEditPropertyPageServiceInterface.processActions(ContentAdministrationEditPropertyPageServiceInterface.java:144)
	at lumis.doui.service.DouiServiceInterface.processAction(DouiServiceInterface.java:571)
	at lumis.portal.servicecontainer.ServiceContainer.lambda$processServiceInterfaceInstanceAction$1(ServiceContainer.java:919)
	at lumis.portal.util.PortalUtilInternal.execWithSilentThrow(PortalUtilInternal.java:533)
	at lumis.util.log.MDCUtil.execWithValues(MDCUtil.java:60)
	at lumis.util.log.MDCUtil.execWithValues(MDCUtil.java:45)
	at lumis.portal.servicecontainer.ServiceContainer.processServiceInterfaceInstanceAction(ServiceContainer.java:910)
	at lumis.portal.presentation.PresentationControllerHtml.processActionIfRequired(PresentationControllerHtml.java:1492)
	at lumis.portal.presentation.PresentationControllerHtml.renderPage(PresentationControllerHtml.java:573)
	at org.apache.jsp.main_jsp._jspService(main_jsp.java:121)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:444)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.rest.RestRootFilter.doFilter(RestRootFilter.java:315)
	at org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:462)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
	at sun.reflect.GeneratedMethodAccessor208.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at net.bull.javamelody.JspWrapper.invoke(JspWrapper.java:152)
	at net.bull.javamelody.JdbcWrapper$DelegatingInvocationHandler.invoke(JdbcWrapper.java:294)
	at com.sun.proxy.$Proxy203.forward(Unknown Source)
	at lumis.portal.presentation.PresentationControllerHtml.forward(PresentationControllerHtml.java:1209)
	at lumis.portal.url.WebResourceForwardFilter.doFilter(WebResourceForwardFilter.java:335)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.security.csr.CrossSiteRequestFilter.doFilter(CrossSiteRequestFilter.java:227)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.url.WebResourceDiscoveryFilter.doFilter(WebResourceDiscoveryFilter.java:365)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.presentation.PortalModeDiscoveryFilter.doFilter(PortalModeDiscoveryFilter.java:125)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:232)
	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:209)
	at lumis.service.portalmanagement.monitoring.JavaMelodyCustomMonitoringFilter.doFilter(JavaMelodyCustomMonitoringFilter.java:221)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.authentication.AuthenticationFilter.changeThreadNameAndProceed(AuthenticationFilter.java:490)
	at lumis.portal.authentication.AuthenticationFilter.lambda$doFilter$0(AuthenticationFilter.java:291)
	at lumis.portal.util.PortalUtilInternal.execWithSilentThrow(PortalUtilInternal.java:533)
	at lumis.util.log.MDCUtil.execWithValues(MDCUtil.java:60)
	at lumis.portal.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:282)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.monitor.impl.MonitorContextFilter.lambda$doFilter$1(MonitorContextFilter.java:424)
	at lumis.portal.util.PortalUtilInternal.execWithSilentThrow(PortalUtilInternal.java:533)
	at lumis.util.log.MDCUtil.execWithValues(MDCUtil.java:60)
	at lumis.portal.monitor.impl.MonitorContextFilter.doFilter(MonitorContextFilter.java:402)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.page.cache.PageCacheSSIFilter.doFilter(PageCacheSSIFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.PortalRequestContextFilter.doFilter(PortalRequestContextFilter.java:97)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.filter.EncodingUTF8Filter.doFilter(EncodingUTF8Filter.java:35)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.webserver.WebServerIntegrationInitFilter.doFilter(WebServerIntegrationInitFilter.java:367)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.website.WebsiteDiscoveryFilter.doFilter(WebsiteDiscoveryFilter.java:302)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at lumis.portal.PortalConfiguration$RequestInitializer.doFilter(PortalConfiguration.java:152)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:764)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1388)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.ConcurrentModificationException
	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909)
	at java.util.ArrayList$Itr.next(ArrayList.java:859)
	at org.hibernate.collection.AbstractPersistentCollection$IteratorProxy.next(AbstractPersistentCollection.java:577)
	at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1042)
	at lumis.content.table.ContentMetaDataController.setContentVersionProperties(ContentMetaDataController.java:582)
	at lumis.content.table.ContentMetaDataController.updateMetaData(ContentMetaDataController.java:736)
	at lumis.content.table.ContentMetaDataController.contentUpdated(ContentMetaDataController.java:684)
	at lumis.content.table.ContentTableSource.doUpdateData(ContentTableSource.java:873)
	at lumis.content.table.ContentTableSource.updateDataInternal(ContentTableSource.java:776)
	at lumis.content.table.ContentTableSource.updateData(ContentTableSource.java:693)
	at lumis.content.table.ContentTableSourceUpdateDataProcessActionHandler.doAction(ContentTableSourceUpdateDataProcessActionHandler.java:41)
	at lumis.doui.source.processaction.BaseSourceProcessActionHandler.processAction(BaseSourceProcessActionHandler.java:41)
	at lumis.doui.processaction.ProcessActionContainer.processAction(ProcessActionContainer.java:303)
	... 104 more

 

Por Gabriel Silva de Menezes

Em 27/08/19 18:45

Acompanhar pergunta

2 resposta(s):

Ordenar por:

Esse era o arquivo doui do serviço que apresentava o problema.

<source id="default" type="contentTable">
                <table>tabela_banner</table>
                <fields>
                    <field id="id" name="STR_ID" dataType="guid" required="true" isPrimaryKey="true" display="false" />
                    <field id="title" name="STR_TITLE" dataType="string" required="true" isPrimaryName="true" />
                    <field id="introduction" name="STR_INTRODUCTION" dataType="string" isIntroduction="true" />
                    <field id="desktop_image" name="STR_DESKTOP_IMAGE" dataType="media" required="true" />
                    <field id="desktop_webp_image" name="STR_DESKTOP_IMAGE_WEBP" dataType="media" required="true" />
                    <field id="desktop_large_image" name="STR_DESKTOP_LARGE_IMAGE" dataType="media" required="true" />
                    <field id="desktop_large_webp_image" name="STR_DESKTOP_LARGE_IMAGE_WEBP" dataType="media" required="true" />
                    <field id="tablet_image" name="STR_TABLET_IMAGE" dataType="media" required="true" />
                    <field id="tablet_webp_image" name="STR_TABLET_IMAGE_WEBP" dataType="media" required="true" />
                    <field id="mobile_image" name="STR_MOBILE_IMAGE" dataType="media" required="true" />
                    <field id="mobile_webp_image" name="STR_MOBILE_IMAGE_WEBP" dataType="media" required="true" />
                    <field id="mobile_small_image" name="STR_MOBILE_SMALL_IMAGE" dataType="media" required="true" />
                    <field id="mobile_small_webp_image" name="STR_MOBILE_SMALL_IMAGE_WEBP" dataType="media" required="true" />
                    <field id="button" name="STR_BOTAO" dataType="html" />
                </fields>
                <metaData>
                    <comments/>
                    <publishStartDate/>
                    <publishEndDate/>
                    <publishToPrincipals/>
                    <workflow/>
                    <tag/>
                    <categorization/>
                    <seo/>
                </metaData

Por Gabriel Silva de Menezes

Em 02/09/19 13:19
Editado em 02/09/19 13:23

O problema foi resolvido adicionando a tag de versionamento <versioning />:

 

<source id="default" type="contentTable">
				<table>tabela_banner</table>
				<fields>
					<field id="id" name="STR_ID" dataType="guid" required="true" isPrimaryKey="true" display="false" />
					<field id="title" name="STR_TITLE" dataType="string" required="true" isPrimaryName="true" />
					<field id="introduction" name="STR_INTRODUCTION" dataType="string" isIntroduction="true" />
					<field id="desktop_image" name="STR_DESKTOP_IMAGE" dataType="media" required="true" />
					<field id="desktop_webp_image" name="STR_DESKTOP_IMAGE_WEBP" dataType="media" required="true" />
					<field id="desktop_large_image" name="STR_DESKTOP_LARGE_IMAGE" dataType="media" required="true" />
					<field id="desktop_large_webp_image" name="STR_DESKTOP_LARGE_IMAGE_WEBP" dataType="media" required="true" />
					<field id="tablet_image" name="STR_TABLET_IMAGE" dataType="media" required="true" />
					<field id="tablet_webp_image" name="STR_TABLET_IMAGE_WEBP" dataType="media" required="true" />
					<field id="mobile_image" name="STR_MOBILE_IMAGE" dataType="media" required="true" />
					<field id="mobile_webp_image" name="STR_MOBILE_IMAGE_WEBP" dataType="media" required="true" />
					<field id="mobile_small_image" name="STR_MOBILE_SMALL_IMAGE" dataType="media" required="true" />
					<field id="mobile_small_webp_image" name="STR_MOBILE_SMALL_IMAGE_WEBP" dataType="media" required="true" />
					<field id="button" name="STR_BOTAO" dataType="html" />
				</fields>
				<metaData>
					<comments/>
					<publishStartDate/>
					<publishEndDate/>
					<publishToPrincipals/>
					<workflow/>
					<tag/>
					<categorization/>
					<versioning/>
					<seo/>
				</metaData>

Por Gabriel Silva de Menezes

Em 02/09/19 13:21

Entrar

Interaja com a comunidade e tenha acesso a conteúdos exclusivos.

Houve algum erro ao acessar o banco de dados. Tente novamente mais tarde.