Jump to content
We've recently updated our Privacy Statement, available here ×
  • jsexception.could.not.find.resource.with.uri after js-import


    stasp

    Issue:

    In rare cases after trying to run any report after export/import you may get the following stack trace:

    --------------------------------

    com.jaspersoft.jasperserver.api.JSException: jsexception.could.not.find.resource.with.uri

    at com.jaspersoft.jasperserver.war.action.ResourceTypeMappingAction.doPreExecute(ResourceTypeMappingAction.java:63)

    at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:186)

    at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)

    at org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:77)

    at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)

    at org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)

    at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)

    at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:101)

    at org.springframework.webflow.engine.State.enter(State.java:194)

    at org.springframework.webflow.engine.Flow.start(Flow.java:535)

    at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:366)

    at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:225)

    at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)

    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)

    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

    at org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor.invoke

    (MethodSecurityInterceptor.java:66)

    --------------------------------

    In this case try to enable debugging (log in as superuser, go to Manage->Server settings->Log settings and set SQL query executer to DEBUG) and run a reprot again. If you will see exception as the following:

    ---------------

    2012-10-29 09:23:47,169 DEBUG HibernateRepositoryServiceImpl,http-bio-7654-exec-6:995 - Resource of type com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.persistent.RepoResource not found at /organizations/organization_1/Report_Folder/Report_Name.jrxml

    ---------------

    then this is probably an issue with Apache was re-encoding the URLs after they were already encoded. So normally URL will end as follows:

    /organizations/organization_1/Report_Folder/Report_Name.jrxml

    then after encoding it will look as follows:

    %2Forganizations%2Forganization_1%2FReport_Folder%2FReport_Name.jrxml

    which is normal as well. However after extra encoding by Apache it will end with something like

    %252Forganizations%252Forganization_1%252FReport_Folder%252FReport_Name.jrxml

    This should give you a hint that extra encoding is happening.


    Resolution:

    To get rid of this issue you'll need to configure your app server to not perform an extra encoding of the URLs.


    Ref. Case #00029359


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...