Clean Upload of Shared Resources

Avatar

Avatar

Prahlad

Avatar

Prahlad

Prahlad

28-02-2017

Hi,

I have integrated AEM (6.1 SP 1) with AEM Mobile. Then created an App then Article(s) now when I tried to upload Shared Resources for the first time it went well. Then I added  more content and images to the article. This time I got error as one of my image had space in it, fair enough. So I renamed the image and tried to Upload Shared Resources again I was expecting error to go off BUT the same error is still appearing. I tried to restart servers, Clean JSPs, Clean var/contentsync, even removed image but Error is still appearing.

Please help.. Is there a way to make sure a clean Upload of Shared Resources happens? Am I missing anything?

Here is Error from Log:

28.02.2017 10:38:07.136 *ERROR* [127.0.0.1 [1488278263334] POST /content/mobileapps/alere-mobile-app HTTP/1.1] com.adobe.cq.mobile.dps.impl.operations.HTMLResourcesUploadOperation Error:Error uploading HTMLResources: alere-mobile-app. Producer Service returned unexpected response, detailed message: get entity failed: error parsing response, uri="https://pecs.publish.adobe.io/publication/de98c4c7-50cf-42fa-a269-fdcf79fd6883/sharedContent/SHARED_...", parseEexception=Can not construct instance of java.net.URI from String value 'content/dam/web/alere-app/halfwidth_graphic/494x768_CSR_main page_nocopy.jpg': not a valid textual representationproblem: Illegal character in path at index 60: content/dam/web/alere-app/halfwidth_graphic/494x768_CSR_main page_nocopy.jpg

at [Source: org.apache.http.conn.EofSensorInputStream@4efe8bb5; line: 1, column: 2688] (through reference chain: com.adobe.dps.producer.entity.dto.ResourceLink["href"])

com.adobe.cq.mobile.dps.DPSException: Failed to upload shared HTMLResources for: /content/mobileapps/alere-mobile-app

at com.adobe.cq.mobile.dps.impl.service.DPSClientImpl.uploadHTMLResourcesToDPSImpl(DPSClientImpl.java:903)

at com.adobe.cq.mobile.dps.impl.service.DPSClientImpl.uploadHTMLResources(DPSClientImpl.java:176)

at com.adobe.cq.mobile.dps.impl.operations.HTMLResourcesUploadOperation.perform(HTMLResourcesUploadOperation.java:59)

at com.adobe.cq.mobile.dps.impl.operations.MobilePublishAbstractOperation.doRun(MobilePublishAbstractOperation.java:107)

at org.apache.sling.servlets.post.AbstractPostOperation.run(AbstractPostOperation.java:92)

at org.apache.sling.servlets.post.impl.SlingPostServlet.doPost(SlingPostServlet.java:202)

at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:149)

at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:345)

at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:376)

at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:547)

at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:77)

at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java:96)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:146)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:371)

at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:171)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:282)

at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:77)

at com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl.doFilter(ResourceResolverHelperImpl.java:81)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.day.cq.dam.core.impl.servlet.ActivityRecordHandler.doFilter(ActivityRecordHandler.java:155)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:73)

at com.adobe.cq.dam.s7imaging.impl.auth.MemoryTokenAuthHandler.doFilter(MemoryTokenAuthHandler.java:156)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.adobe.granite.csrf.impl.CSRFFilter.doFilter(CSRFFilter.java:201)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at org.apache.sling.security.impl.ContentDispositionFilter.doFilter(ContentDispositionFilter.java:152)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:129)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl.doFilter(AuthoringUIModeServiceImpl.java:364)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:243)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.adobe.cq.social.commons.cors.CORSAuthenticationFilter.doFilter(CORSAuthenticationFilter.java:91)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.day.cq.analytics.provisioning.impl.UserAuthenticationRequestFilter.doFilter(UserAuthenticationRequestFilter.java:119)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:95)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:269)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:74)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:90)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.adobe.cq.history.impl.HistoryRequestFilter.doFilter(HistoryRequestFilter.java:107)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter.doFilter(CanvasPageDeleteRequestFilter.java:88)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:77)

at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:56)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServletStarterFilter.java:135)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.adobe.cq.social.ugcbase.security.impl.SaferSlingPostServlet.doFilter(SaferSlingPostServlet.java:132)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at com.adobe.granite.requests.logging.impl.RequestLoggerImpl.doFilter(RequestLoggerImpl.java:137)

at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)

at org.apache.sling.engine.impl.SlingRequestProcessorImpl.doProcessRequest(SlingRequestProcessorImpl.java:151)

at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:217)

at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:336)

at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:297)

at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93)

at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50)

at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:129)

at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:308)

at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:89)

at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:290)

at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

at org.apache.sling.featureflags.impl.FeatureManager.doFilter(FeatureManager.java:115)

at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75)

at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)

at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)

at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)

at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)

at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:76)

at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:49)

at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.Server.handle(Server.java:497)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

at java.lang.Thread.run(Thread.java:745)

Caused by: com.adobe.dps.client.producer.exceptions.ProducerServiceProtocolException: Producer Service returned unexpected response, detailed message: get entity failed: error parsing response, uri="https://pecs.publish.adobe.io/publication/de98c4c7-50cf-42fa-a269-fdcf79fd6883/sharedContent/SHARED_...", parseEexception=Can not construct instance of java.net.URI from String value 'content/dam/web/alere-app/halfwidth_graphic/494x768_CSR_main page_nocopy.jpg': not a valid textual representationproblem: Illegal character in path at index 60: content/dam/web/alere-app/halfwidth_graphic/494x768_CSR_main page_nocopy.jpg

at [Source: org.apache.http.conn.EofSensorInputStream@4efe8bb5; line: 1, column: 2688] (through reference chain: com.adobe.dps.producer.entity.dto.ResourceLink["href"])

at com.adobe.dps.client.producer.utils.HttpUtilsProducer.getObjectWithFailure(HttpUtilsProducer.java:120)

at com.adobe.dps.client.producer.ContentProducerDaoImpl.getContentManifest(ContentProducerDaoImpl.java:292)

at com.adobe.dps.client.producer.api.ProducerApiImpl.getContentEntries(ProducerApiImpl.java:501)

at com.adobe.dps.client.producer.api.ProducerApiImpl.uploadSharedContentEntityContent(ProducerApiImpl.java:670)

at com.adobe.cq.mobile.dps.impl.service.DPSClientImpl.uploadHTMLResourcesToDPSImpl(DPSClientImpl.java:889)

... 128 common frames omitted

Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.net.URI from String value 'content/dam/web/alere-app/halfwidth_graphic/494x768_CSR_main page_nocopy.jpg': not a valid textual representationproblem: Illegal character in path at index 60: content/dam/web/alere-app/halfwidth_graphic/494x768_CSR_main page_nocopy.jpg

at [Source: org.apache.http.conn.EofSensorInputStream@4efe8bb5; line: 1, column: 2688] (through reference chain: com.adobe.dps.producer.entity.dto.ResourceLink["href"])

at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:55)

at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:797)

at com.fasterxml.jackson.databind.deser.std.FromStringDeserializer.deserialize(FromStringDeserializer.java:133)

at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:538)

at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:99)

at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:242)

at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:118)

at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:232)

at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:206)

at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:25)

at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1269)

at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:864)

at com.adobe.dps.commons.json.JsonObjectMapperCached.readValue(JsonObjectMapperCached.java:119)

at com.adobe.dps.client.producer.utils.HttpUtilsProducer.getObjectWithFailure(HttpUtilsProducer.java:104)

... 132 common frames omitted

Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 60: content/dam/web/alere-app/halfwidth_graphic/494x768_CSR_main page_nocopy.jpg

at java.net.URI.create(URI.java:859)

at com.fasterxml.jackson.databind.deser.std.FromStringDeserializer$Std._deserialize(FromStringDeserializer.java:210)

at com.fasterxml.jackson.databind.deser.std.FromStringDeserializer.deserialize(FromStringDeserializer.java:122)

... 143 common frames omitted

Caused by: java.net.URISyntaxException: Illegal character in path at index 60: content/dam/web/alere-app/halfwidth_graphic/494x768_CSR_main page_nocopy.jpg

at java.net.URI$Parser.fail(URI.java:2829)

at java.net.URI$Parser.checkChars(URI.java:3002)

at java.net.URI$Parser.parseHierarchical(URI.java:3086)

at java.net.URI$Parser.parse(URI.java:3044)

at java.net.URI.<init>(URI.java:595)

at java.net.URI.create(URI.java:857)

... 145 common frames omitted

Regards,

Prahlad

Accepted Solutions (0)

Answers (0)