Questions Tagged With urlhttps://answers.axonivy.com/tags/url/?type=rss&user=Emmanuel%20Combaquestions tagged <span class="tag">url</span>enWed, 18 Apr 2018 15:06:23 -0400How to get the URL of a process start within a JAX-RS classhttps://answers.axonivy.com/questions/3218/how-to-get-the-url-of-a-process-start-within-a-jax-rs-class<p>Hello IvyTeam,</p> <p>My Ivy Version : 7.0.3 I would like to get the url from a process in a JAX-RS Rest Resource but I get an Exception with this code:</p> <pre><code>Ivy.html().startref("Functional Processes/dis/videoIdentification/start.ivp") </code></pre> <p>The JAX-RS Resource is located in the same project as the process. It works without problem in a Process (IvyScript Step).</p> <p>I can imagine that the fact the code is in a JAX-RS Resource does not allow accessing some Ivy resources like the ProjectModelVersion Provider. Is there a workaround for that? Or do I have to compute the url more manually with the InetAddress and so on ? By the way this code works in this resource: Ivy.html().applicationHomeRef()</p> <p>Thanks in advance </p> <p>Here the StackTrace I get:</p> <pre><code> com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, java.lang.NullPointerException while locating ch.ivyteam.ivy.workflow.internal.di.CaseProjectProcessModelVersionProvider while locating ch.ivyteam.ivy.application.IProcessModelVersion annotated with interface ch.ivyteam.ivy.scope.restricted.FromCaseScope Caused by: java.lang.NullPointerException at ch.ivyteam.ivy.workflow.internal.di.CaseProjectProcessModelVersionProvider.get(CaseProjectProcessModelVersionProvider.java:18) at ch.ivyteam.ivy.workflow.internal.di.CaseProjectProcessModelVersionProvider.get(CaseProjectProcessModelVersionProvider.java:1) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81) at com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61) at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1050) at ch.ivyteam.di.restricted.DiInjector.getInstance(DiInjector.java:77) at </code></pre>Emmanuel CombaWed, 18 Apr 2018 15:06:23 -0400https://answers.axonivy.com/questions/3218/how-to-get-the-url-of-a-process-start-within-a-jax-rs-classprocessurlivyrest