[Logo] SpagoWorld Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing  
[Groups] Back to home page  [Moderation Log] Moderation Log   [Register] Register /  [Login] Login 
SpagoBICommonJEngine - CAS Problem [SOLVED]  XML
Forum Index » Technical Help - SpagoBI Server - OTHER DOMAINS
Author Message
ckarabag.spw

Newby

Joined: 02/06/2014 17:08:15
Messages: 11
Offline

Hi,

I'm trying to setup the SpagoBICommonJEngine to work with CAS Server. But I'm getting an exception.
Any ideas where to look for solving this issue.

I have attached the exception and the SpagoBICommonJEngine\WEB-INF\web.xml file.

Thanks,
Christos


SpagoBIProcessEngine.log

11 Aug 2014 14:53:11,111 ERROR it.eng.spagobi.utilities.filters.SpagoBIAccessFilter.doFilter:198 - SpagoBIAccessFilter:doFilter ServletException!!
java.lang.NullPointerException
at it.eng.spagobi.services.cas.CasSsoService3NoProxy.readUserIdentifier(CasSsoService3NoProxy.java:4
at it.eng.spagobi.utilities.filters.SpagoBIAccessFilter.getUserWithSSO(SpagoBIAccessFilter.java:221)
at it.eng.spagobi.utilities.filters.SpagoBIAccessFilter.doFilter(SpagoBIAccessFilter.java:129)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:11
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:40
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
11 Aug 2014 14:53:11,111 ERROR it.eng.spagobi.utilities.filters.SpagoBIAccessFilter.doFilter:198 - SpagoBIAccessFilter:doFilter ServletException!!
java.lang.NullPointerException
at it.eng.spagobi.services.cas.CasSsoService3NoProxy.readUserIdentifier(CasSsoService3NoProxy.java:4
at it.eng.spagobi.utilities.filters.SpagoBIAccessFilter.getUserWithSSO(SpagoBIAccessFilter.java:221)
at it.eng.spagobi.utilities.filters.SpagoBIAccessFilter.doFilter(SpagoBIAccessFilter.java:129)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:11
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:40
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
11 Aug 2014 14:53:11,113 ERROR it.eng.spagobi.utilities.filters.SpagoBIAccessFilter.doFilter:199 - msg: [null]
11 Aug 2014 14:53:11,113 ERROR it.eng.spagobi.utilities.filters.SpagoBIAccessFilter.doFilter:199 - msg: [null]



web.xml


<?xml version="1.0" encoding="UTF-8"?>
<web-app id="SpagoBICommonJEngine"
version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">


<display-name>SpagoBICommonJEngine</display-name>
<description>
SpagoBI CommonJ Engine
</description>

<!-- ============================================================================ -->
<!-- FILTERS -->
<!-- ============================================================================ -->
<!-- START-CAS -->
<filter>
<filter-name>CAS Authentication Filter</filter-name>
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param>
<param-name>casServerLoginUrl</param-name>
<param-value>https://localhost:8443/cas/login</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>localhost:8443</param-value>
</init-param>
</filter>

<filter>
<filter-name>CAS Validation Filter</filter-name>
<filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>https://localhost:8443/cas</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>https://localhost:8443</param-value>
</init-param>
<init-param>
<param-name>proxyReceptorUrl</param-name>
<param-value>/proxyCallback</param-value>
</init-param>
<init-param>
<param-name>proxyCallbackUrl</param-name>
<param-value>https://localhost:8443/SpagoBICommonJEngine/proxyCallback</param-value>
</init-param>
</filter>

<filter>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
</filter>
<!-- END-CAS -->



<!-- ============================================================================ -->
<!-- FILTER MAPPINGS -->
<!-- ============================================================================ -->
<!-- START-CAS -->
<filter-mapping>
<filter-name>CAS Authentication Filter</filter-name>
<url-pattern>/WorkRunService</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Authentication Filter</filter-name>
<url-pattern>/EngineInfoService</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Authentication Filter</filter-name>
<url-pattern>/WorkUploadService</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Authentication Filter</filter-name>
<url-pattern>/WorkRunServiceTest</url-pattern>
</filter-mapping>

<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/JobRunService</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/EngineInfoService</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/WorkUploadService</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/WorkRunServiceTest</url-pattern>
</filter-mapping>

<filter-mapping>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<url-pattern>/WorkRunService</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<url-pattern>/EngineInfoService</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<url-pattern>/WorkUploadService</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<url-pattern>/WorkRunServiceTest</url-pattern>
</filter-mapping>

<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/proxyCallback</url-pattern>
</filter-mapping>
<!-- END-CAS -->

<filter>
<filter-name>SpagoBIAccessFilter</filter-name>
<filter-class>it.eng.spagobi.utilities.filters.SpagoBIAccessFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>SpagoBIAccessFilter</filter-name>
<url-pattern>/servlet/AdapterHTTP/*</url-pattern>
</filter-mapping>

<filter-mapping>
<filter-name>SpagoBIAccessFilter</filter-name>
<url-pattern>/servlet/AdapterHTTPBackEnd/*</url-pattern>
</filter-mapping>

<!-- ============================================================================ -->
<!-- SERVLETS -->
<!-- ============================================================================ -->


<servlet>
<servlet-name>AdapterHTTP</servlet-name>
<servlet-class>it.eng.spago.dispatching.httpchannel.AdapterHTTP</servlet-class>
</servlet>

<servlet>
<servlet-name>ConfigServlet</servlet-name>
<servlet-class>it.eng.spago.configuration.ConfigServlet</servlet-class>
<init-param>
<param-name>AF_CONFIG_FILE</param-name>
<param-value>/WEB-INF/conf/master.xml</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>


<servlet>
<servlet-name>EngineTestServlet</servlet-name>
<servlet-class>
it.eng.spagobi.utilities.engines.EngineTestServlet
</servlet-class>
</servlet>

<!-- ============================================================================ -->
<!-- SERVLET MAPPINGS -->
<!-- ============================================================================ -->


<servlet-mapping>
<servlet-name>AdapterHTTP</servlet-name>
<url-pattern>/servlet/AdapterHTTP/*</url-pattern>
</servlet-mapping>


<!--<servlet-mapping>
<servlet-name>WorkRunServlet</servlet-name>
<url-pattern>/WorkRunServlet</url-pattern>
</servlet-mapping>


<servlet-mapping>
<servlet-name>WorkRunService</servlet-name>
<url-pattern>/WorkRunServiceBackEnd</url-pattern>
</servlet-mapping>

-->
<servlet-mapping>
<servlet-name>AdapterHTTP</servlet-name>
<url-pattern>/servlet/AdapterHTTPBackEnd/*</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>EngineTestServlet</servlet-name>
<url-pattern>/servlet/AdapterHTTPTest</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

<error-page>
<error-code>404</error-code>
<location>/jsp/errors/error404.jsp</location>
</error-page>

<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/html/error.html</location>
</error-page>


<session-config>
<session-timeout>30</session-timeout>
</session-config>

<!-- ============================================================================ -->
<!-- RESOURCES -->
<!-- ============================================================================ -->

<resource-ref>
<description>Spagobi db</description>
<res-ref-name>jdbc/spagobi</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

<resource-ref>
<res-ref-name>worker/worker</res-ref-name>
<res-type>commonj.work.WorkManager</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>



</web-app>

This message was edited 1 time. Last update was at 12/08/2014 17:51:45

bernabei

SpagoBI friend
[Avatar]

Joined: 05/07/2010 12:44:01
Messages: 84
Location: Bologna
Offline

Hi
from the error I suppose that CAS client doesn't put in session the correct information.

Probably this is the source code that creates the error:
Assertion assertion = (Assertion) session.getAttribute(AbstractCasFilter.CONST_CAS_ASSERTION);

The SpagoBIAccessFilter must be covers from the "CAS Validation Filter" , so check if this configuration is missing:


<filter-mapping>
<filter-name>CAS Authentication Filter</filter-name>
<url-pattern>/servlet/AdapterHTTP/*</url-pattern>
</filter-mapping>

<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/servlet/AdapterHTTP/*</url-pattern>
</filter-mapping>

<filter-mapping>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<url-pattern>/servlet/AdapterHTTP/*</url-pattern>
</filter-mapping>

Best Regards
Angelo
[Email]
ckarabag.spw

Newby

Joined: 02/06/2014 17:08:15
Messages: 11
Offline

Thanks Angelo!! This solved my problem.
davidmishra.spw



Joined: 07/09/2017 13:21:06
Messages: 9
Offline

here
here
show box
halloween2017.spw



Joined: 04/10/2017 04:12:34
Messages: 1
Offline

Hilarious Halloween costumes for men women 2017. Halloween hilarious costumes will be really attractive for each and every one halloween 2017 quotes
picsnook.spw



Joined: 30/10/2017 17:31:46
Messages: 1
Offline

found it here
helakimaa.spw



Joined: 23/12/2017 11:52:52
Messages: 1
Offline

check out these recommended apps

UkTVNow APK
GATE Answer Key 2018
PPSSPP Gold APK Download
music paradise pro downloader for android
 
Forum Index » Technical Help - SpagoBI Server - OTHER DOMAINS
Go to:   
Powered by JForum 2.1.9 © JForum Team