Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-965

Session close fails when session handle is passed as json string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • api
    • None

    Description

      Error:

      java.lang.IllegalStateException: Illegal character """ at position 15 is not allowed as a start of a name in a path template "sessionid={
         "lensSessionHandle" : {
            "publicId" : "a0b729a4-3676-4195-a2c7-ad284abc520e",
            "secretId" : "06393266-1899-4d8e-bcdf-6c6ce4eefe11"
         }%0A}".
      	at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:134) ~[jersey-client-2.22.1.jar:na]
      	at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:220) ~[jersey-client-2.22.1.jar:na]
      	at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:59) ~[jersey-client-2.22.1.jar:na]
      	at org.apache.lens.regression.core.helpers.ServiceManagerHelper.exec(ServiceManagerHelper.java:245) ~[lens-regression-2.5.0-beta-SNAPSHOT.jar:2.5.0-beta-SNAPSHOT]
      	at org.apache.lens.regression.core.helpers.ServiceManagerHelper.exec(ServiceManagerHelper.java:271) ~[lens-regression-2.5.0-beta-SNAPSHOT.jar:2.5.0-beta-SNAPSHOT]
      	at org.apache.lens.regression.core.helpers.SessionHelper.closeNewSession(SessionHelper.java:141) [lens-regression-2.5.0-beta-SNAPSHOT.jar:2.5.0-beta-SNAPSHOT]
      	at org.apache.lens.regression.client.SessionResourceTests.testSessionJson(SessionResourceTests.java:406) [test-classes/:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_65]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_65]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_65]
      	at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_65]
      	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) [testng-6.8.7.jar:na]
      	at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) [testng-6.8.7.jar:na]
      	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) [testng-6.8.7.jar:na]
      	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) [testng-6.8.7.jar:na]
      	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) [testng-6.8.7.jar:na]
      	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) [testng-6.8.7.jar:na]
      	at org.testng.TestRunner.privateRun(TestRunner.java:767) [testng-6.8.7.jar:na]
      	at org.testng.TestRunner.run(TestRunner.java:617) [testng-6.8.7.jar:na]
      	at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) [testng-6.8.7.jar:na]
      	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) [testng-6.8.7.jar:na]
      	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) [testng-6.8.7.jar:na]
      	at org.testng.SuiteRunner.run(SuiteRunner.java:240) [testng-6.8.7.jar:na]
      	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) [testng-6.8.7.jar:na]
      	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) [testng-6.8.7.jar:na]
      	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) [testng-6.8.7.jar:na]
      	at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) [testng-6.8.7.jar:na]
      	at org.testng.TestNG.run(TestNG.java:1057) [testng-6.8.7.jar:na]
      	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111) [testng-6.8.7.jar:na]
      	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204) [testng-6.8.7.jar:na]
      	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175) [testng-6.8.7.jar:na]
      	at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:125) [testng-plugin.jar:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_65]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_65]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_65]
      	at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_65]
      	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) [idea_rt.jar:na]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            archana.h Archana H
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: