Nikos Michailidis
2005-07-01 09:07:05 UTC
Hello to all!
Well, my problem is the following:
I want to access the SourceID demo, but instead of using the browser, I
want to use a another
Client that i have developed. Of course I made all the necessary
modifications in the src code.
Inside that client, i'm trying to connecting to the
https://localhost:8443/demo/sp/ by using the
following:
----------------------------------------------------
URL sourceid_url = new URL(url_address); // Process the URL far enough to
find the right handler
URLConnection con = sourceid_url.openConnection();
//The call will change the request from get to post.
//Because of DoOutput, the servlet doPost, and not the servlet doGet, is
overwritten.
con.setDoOutput(true);
con.setDoInput(true);
con.setRequestProperty("Content-Type", "application/octet-stream");
con.setUseCaches(false); // Don't look at possibly cached data
outStream_msisdn = con.getOutputStream(); // Outgoing message to SourceID
--> MSISDN
outDataStream_msisdn = new DataOutputStream ( outStream_msisdn );
outDataStream_msisdn.writeUTF ( msisdn );
outStream_imsi = con.getOutputStream(); // Outgoing message to SourceID
--> IMSI
outDataStream_imsi = new DataOutputStream ( outStream_imsi );
outDataStream_imsi.writeUTF ( imsi );
--------------------------------------------------------
where
url_address = https://localhost:8443/demo/sp/
and the variables (msisdn) and (imsi) will be used to as hardcoded login
and password respectively.
The problem, is that i manage to connect to the SpServlet and start the
demo flow normally, but almost at the end
i get the following error:
---------------------------------
11:42:05,129 INFO [STDOUT] This is AuthnAdapterImpl_SP.java TraceMessage_1
11:42:05,169 INFO [STDOUT] HTTPSession: null // <-- These are log
messages to trace the error
11:42:05,169 INFO [STDOUT] AuthnInfo: null // <-- These are log
messages to trace the error
11:42:05,169 INFO [STDOUT] This is Finalizer_SP.java TraceMessage_8
11:42:05,169 INFO [STDOUT] This is Finalizer_SP.java TraceMessage_9
11:42:05,179 ERROR [Engine] StandardWrapperValve[AssertionConsumerService]:
Servlet.service() for servlet AssertionConsumerService threw exception
org.sourceid.workflow.ParticipantWorkerException:
java.lang.NullPointerException
at
org.sourceid.workflow.WorkflowMediator.handlePendingTasks(WorkflowMediator.java:532)
at
org.sourceid.workflow.WorkflowMediator.continueProcessInstance(WorkflowMediator.java:346)
at
org.sourceid.idff12.servlet.sp.AssertionConsumerService.doGet(AssertionConsumerService.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at idff12demo.filters.LAREXLogFilter.doFilter(LAREXLogFilter.java:55)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at idff12demo.filters.NoCacheFilter.doFilter(NoCacheFilter.java:37)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NullPointerException
at
org.sourceid.idff12.participant.sp.Finalizer.finalizeFederateSSO(Finalizer.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.sourceid.workflow.ParticipantWorkerFactory.executeFinalizer(ParticipantWorkerFactory.java:279)
at
org.sourceid.workflow.WorkflowMediator.handlePendingTasks(WorkflowMediator.java:517)
After analyzing this a bit, i reached the conclusion that there is a
problem with the HTTPSession (is null here).
So my question is how these can be corrected...
Or in other words...how can i can run the demo without using the Browser,
but another java client
to open an HTTPS Connection and pass my login and password....
Thank you in advance for your response.
Best Regards
Nick Michailidis
---------------------------------------------------------
The information in this e-Mail is confidential and intended solely for the person to whom it is addressed. If this message is not addressed to you, please be aware that you have no authorisation to read the rest of this e-Mail, to copy it, re-transmit it, use it or to furnish it to any person. Should you have received this e-mail by mistake, please bring this to the attention of the sender, after which you are kindly requested to destroy the original message. TELETEL S.A. cannot be held responsible or liable in any way whatsoever for and/or in connection with any consequences and/or damage, resulting from the proper and complete dispatch and receipt of the content of this e-Mail.
Well, my problem is the following:
I want to access the SourceID demo, but instead of using the browser, I
want to use a another
Client that i have developed. Of course I made all the necessary
modifications in the src code.
Inside that client, i'm trying to connecting to the
https://localhost:8443/demo/sp/ by using the
following:
----------------------------------------------------
URL sourceid_url = new URL(url_address); // Process the URL far enough to
find the right handler
URLConnection con = sourceid_url.openConnection();
//The call will change the request from get to post.
//Because of DoOutput, the servlet doPost, and not the servlet doGet, is
overwritten.
con.setDoOutput(true);
con.setDoInput(true);
con.setRequestProperty("Content-Type", "application/octet-stream");
con.setUseCaches(false); // Don't look at possibly cached data
outStream_msisdn = con.getOutputStream(); // Outgoing message to SourceID
--> MSISDN
outDataStream_msisdn = new DataOutputStream ( outStream_msisdn );
outDataStream_msisdn.writeUTF ( msisdn );
outStream_imsi = con.getOutputStream(); // Outgoing message to SourceID
--> IMSI
outDataStream_imsi = new DataOutputStream ( outStream_imsi );
outDataStream_imsi.writeUTF ( imsi );
--------------------------------------------------------
where
url_address = https://localhost:8443/demo/sp/
and the variables (msisdn) and (imsi) will be used to as hardcoded login
and password respectively.
The problem, is that i manage to connect to the SpServlet and start the
demo flow normally, but almost at the end
i get the following error:
---------------------------------
11:42:05,129 INFO [STDOUT] This is AuthnAdapterImpl_SP.java TraceMessage_1
11:42:05,169 INFO [STDOUT] HTTPSession: null // <-- These are log
messages to trace the error
11:42:05,169 INFO [STDOUT] AuthnInfo: null // <-- These are log
messages to trace the error
11:42:05,169 INFO [STDOUT] This is Finalizer_SP.java TraceMessage_8
11:42:05,169 INFO [STDOUT] This is Finalizer_SP.java TraceMessage_9
11:42:05,179 ERROR [Engine] StandardWrapperValve[AssertionConsumerService]:
Servlet.service() for servlet AssertionConsumerService threw exception
org.sourceid.workflow.ParticipantWorkerException:
java.lang.NullPointerException
at
org.sourceid.workflow.WorkflowMediator.handlePendingTasks(WorkflowMediator.java:532)
at
org.sourceid.workflow.WorkflowMediator.continueProcessInstance(WorkflowMediator.java:346)
at
org.sourceid.idff12.servlet.sp.AssertionConsumerService.doGet(AssertionConsumerService.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at idff12demo.filters.LAREXLogFilter.doFilter(LAREXLogFilter.java:55)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at idff12demo.filters.NoCacheFilter.doFilter(NoCacheFilter.java:37)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NullPointerException
at
org.sourceid.idff12.participant.sp.Finalizer.finalizeFederateSSO(Finalizer.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.sourceid.workflow.ParticipantWorkerFactory.executeFinalizer(ParticipantWorkerFactory.java:279)
at
org.sourceid.workflow.WorkflowMediator.handlePendingTasks(WorkflowMediator.java:517)
After analyzing this a bit, i reached the conclusion that there is a
problem with the HTTPSession (is null here).
So my question is how these can be corrected...
Or in other words...how can i can run the demo without using the Browser,
but another java client
to open an HTTPS Connection and pass my login and password....
Thank you in advance for your response.
Best Regards
Nick Michailidis
---------------------------------------------------------
The information in this e-Mail is confidential and intended solely for the person to whom it is addressed. If this message is not addressed to you, please be aware that you have no authorisation to read the rest of this e-Mail, to copy it, re-transmit it, use it or to furnish it to any person. Should you have received this e-mail by mistake, please bring this to the attention of the sender, after which you are kindly requested to destroy the original message. TELETEL S.A. cannot be held responsible or liable in any way whatsoever for and/or in connection with any consequences and/or damage, resulting from the proper and complete dispatch and receipt of the content of this e-Mail.