when I tried to SSO using Shibboleth IDP, a login Error occured, when username and password was submitted as, Login Failure: Pool is empty and connection creation failed.
My error logs are as follows
==> /opt/shibboleth-idp/logs/idp-warn.log <==
at org.ldaptive.provider.jndi.JndiConnectionFactory.createInternal(JndiConnectionFactory.java:102)
Caused by: javax.naming.CommunicationException: localhost:10389
at com.sun.jndi.ldap.Connection.<init>(Connection.java:216)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
2018-08-13 09:32:53,752 - WARN [org.ldaptive.pool.BlockingConnectionPool:600] - unable to create active connection
2018-08-13 09:32:53,753 - ERROR [org.ldaptive.pool.BlockingConnectionPool:197] - Could not service check out request
2018-08-13 09:32:53,754 - WARN [net.shibboleth.idp.authn.impl.ValidateUsernamePasswordAgainstLDAP:192] - Profile Action ValidateUsernamePasswordAgainstLDAP: Login by admin produced exception
org.ldaptive.pool.PoolExhaustedException: Pool is empty and connection creation failed
at org.ldaptive.pool.BlockingConnectionPool.getConnection(BlockingConnectionPool.java:198)
Can anyone suggest me a way to solve this?
Old question, answer for google.
Check /opt/shibboleth-idp/conf/ldap.properties if your domain/IP and port are correct.
In my case i missed out that the image bitnami/openldap uses port 1389 by default.
14:13:54,515 ERROR [stderr] (Memcached IO over {MemcachedConnection to /172.16.0.63:11211 /172.16.0.66:11211 /172.16.0.68:11211}) 2017-10-20 14:13:54.515 INFO net.spy.memcached.MemcachedConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl#19f3d5d5
14:13:54,516 ERROR [stderr] (Memcached IO over {MemcachedConnection to /172.16.0.63:11211 /172.16.0.66:11211 /172.16.0.68:11211}) 2017-10-20 14:13:54.516 INFO net.spy.memcached.MemcachedConnection: Reconnecting due to failure to connect to {QA sa=/172.16.0.68:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
14:13:54,516 ERROR [stderr] (Memcached IO over {MemcachedConnection to /172.16.0.63:11211 /172.16.0.66:11211 /172.16.0.68:11211}) java.net.ConnectException: Connection timed out: no further information
I am new to drools.
I am using drools 6.5.0 and wildfly 10.
I am developing a REST application with drools rules and executing through REST url.
My drools rules are executed in eclipse perfectly. After that I have deployed my REST application on wildfly. It is successful.
But, If I call the url from browser, it throws the below exception in console.
Is it mandatory to deploy KIE server for the rule execution? Because in tomcat the same application is working fine without KIE server.
droolsTest.java
KieServices ks = KieServices.Factory.get(); //This statement is working fine
KieContainer kContainer = ks.getKieClasspathContainer(); // Error is thrown in this statement
KieSession kSession = kContainer.newKieSession("ksession-rules");
Message message = new Message();
message.setMessage("Hello World Testing");
message.setStatus(Message.HELLO);
kSession.insert(message);
kSession.fireAllRules();
System.out.println("Drools Rules execution is Completed");
14:47:43,604 INFO [stdout] (default task-19) Error caught :java.lang.NoClassDef
FoundError: Could not initialize class org.drools.compiler.kie.builder.impl.KieC
ontainerImpl
14:47:43,607 ERROR [stderr] (default task-19) java.lang.NoClassDefFoundError: Co
uld not initialize class org.drools.compiler.kie.builder.impl.KieContainerImpl
14:47:43,625 ERROR [stderr] (default task-19) at org.drools.compiler.kie.build
er.impl.KieServicesImpl.newKieClasspathContainer(KieServicesImpl.java:135)
14:47:43,626 ERROR [stderr] (default task-19) at org.drools.compiler.kie.build
er.impl.KieServicesImpl.getKieClasspathContainer(KieServicesImpl.java:101)
14:47:43,626 ERROR [stderr] (default task-19) at org.drools.compiler.kie.build
er.impl.KieServicesImpl.getKieClasspathContainer(KieServicesImpl.java:79)
14:47:43,627 ERROR [stderr] (default task-19) at com.sample.DroolsTest.drools(
DroolsTest.java:45)
14:47:43,627 ERROR [stderr] (default task-19) at com.abc.rest.MessageRestSe
rvice.TestDroolsCode(MessageRestService.java:29)
14:47:43,628 ERROR [stderr] (default task-19) at sun.reflect.NativeMethodAcces
sorImpl.invoke0(Native Method)
14:47:43,628 ERROR [stderr] (default task-19) at sun.reflect.NativeMethodAcces
sorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:47:43,628 ERROR [stderr] (default task-19) at sun.reflect.DelegatingMethodA
ccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:47:43,629 ERROR [stderr] (default task-19) at java.lang.reflect.Method.invo
ke(Method.java:498)
14:47:43,630 ERROR [stderr] (default task-19) at org.jboss.resteasy.core.Resou
rceLocatorInvoker.createResource(ResourceLocatorInvoker.java:79)
14:47:43,630 ERROR [stderr] (default task-19) at org.jboss.resteasy.core.Resou
rceLocatorInvoker.createResource(ResourceLocatorInvoker.java:58)
14:47:43,631 ERROR [stderr] (default task-19) at org.jboss.resteasy.core.Resou
rceLocatorInvoker.invoke(ResourceLocatorInvoker.java:100)
14:47:43,631 ERROR [stderr] (default task-19) at org.jboss.resteasy.core.Synch
ronousDispatcher.invoke(SynchronousDispatcher.java:402)
14:47:43,632 ERROR [stderr] (default task-19) at org.jboss.resteasy.core.Synch
ronousDispatcher.invoke(SynchronousDispatcher.java:209)
14:47:43,634 ERROR [stderr] (default task-19) at org.jboss.resteasy.plugins.se
rver.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:
221)
14:47:43,635 ERROR [stderr] (default task-19) at org.jboss.resteasy.plugins.se
rver.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
14:47:43,638 ERROR [stderr] (default task-19) at org.jboss.resteasy.plugins.se
rver.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
14:47:43,639 ERROR [stderr] (default task-19) at javax.servlet.http.HttpServle
t.service(HttpServlet.java:790)
14:47:43,640 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
ServletHandler.handleRequest(ServletHandler.java:85)
14:47:43,641 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.jav
a:62)
14:47:43,641 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
14:47:43,642 ERROR [stderr] (default task-19) at org.wildfly.extension.underto
w.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssoci
ationHandler.java:78)
14:47:43,644 ERROR [stderr] (default task-19) at io.undertow.server.handlers.P
redicateHandler.handleRequest(PredicateHandler.java:43)
14:47:43,645 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociatio
nHandler.java:131)
14:47:43,647 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCal
lHandler.java:57)
14:47:43,649 ERROR [stderr] (default task-19) at io.undertow.server.handlers.P
redicateHandler.handleRequest(PredicateHandler.java:43)
14:47:43,653 ERROR [stderr] (default task-19) at io.undertow.security.handlers
.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.jav
a:46)
14:47:43,655 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidenti
alityConstraintHandler.java:64)
14:47:43,657 ERROR [stderr] (default task-19) at io.undertow.security.handlers
.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.j
ava:60)
14:47:43,658 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSess
ionHandler.java:77)
14:47:43,661 ERROR [stderr] (default task-19) at io.undertow.security.handlers
.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
14:47:43,663 ERROR [stderr] (default task-19) at io.undertow.security.handlers
.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContext
AssociationHandler.java:43)
14:47:43,664 ERROR [stderr] (default task-19) at io.undertow.server.handlers.P
redicateHandler.handleRequest(PredicateHandler.java:43)
14:47:43,665 ERROR [stderr] (default task-19) at org.wildfly.extension.underto
w.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
14:47:43,665 ERROR [stderr] (default task-19) at io.undertow.server.handlers.P
redicateHandler.handleRequest(PredicateHandler.java:43)
14:47:43,668 ERROR [stderr] (default task-19) at io.undertow.server.handlers.P
redicateHandler.handleRequest(PredicateHandler.java:43)
14:47:43,669 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
14:47:43,670 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
ServletInitialHandler.access$100(ServletInitialHandler.java:81)
14:47:43,671 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
ServletInitialHandler$2.call(ServletInitialHandler.java:138)
14:47:43,672 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
ServletInitialHandler$2.call(ServletInitialHandler.java:135)
14:47:43,675 ERROR [stderr] (default task-19) at io.undertow.servlet.core.Serv
letRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction
.java:48)
14:47:43,676 ERROR [stderr] (default task-19) at io.undertow.servlet.core.Cont
extClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
14:47:43,677 ERROR [stderr] (default task-19) at io.undertow.servlet.api.Legac
yThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
14:47:43,681 ERROR [stderr] (default task-19) at io.undertow.servlet.api.Legac
yThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
14:47:43,682 ERROR [stderr] (default task-19) at io.undertow.servlet.api.Legac
yThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
14:47:43,686 ERROR [stderr] (default task-19) at io.undertow.servlet.api.Legac
yThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
14:47:43,695 ERROR [stderr] (default task-19) at io.undertow.servlet.api.Legac
yThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
14:47:43,702 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
14:47:43,703 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
ServletInitialHandler.access$000(ServletInitialHandler.java:81)
14:47:43,704 ERROR [stderr] (default task-19) at io.undertow.servlet.handlers.
ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
14:47:43,704 ERROR [stderr] (default task-19) at io.undertow.server.Connectors
.executeRootHandler(Connectors.java:202)
14:47:43,705 ERROR [stderr] (default task-19) at io.undertow.server.HttpServer
Exchange$1.run(HttpServerExchange.java:805)
14:47:43,705 ERROR [stderr] (default task-19) at java.util.concurrent.ThreadPo
olExecutor.runWorker(ThreadPoolExecutor.java:1142)
14:47:43,706 ERROR [stderr] (default task-19) at java.util.concurrent.ThreadPo
olExecutor$Worker.run(ThreadPoolExecutor.java:617)
14:47:43,706 ERROR [stderr] (default task-19) at java.lang.Thread.run(Thread.j
ava:745)
14:47:43,707 INFO [stdout] (default task-19) Executed
Could anyone provide your help.
Thanks
Senthil
I've decided to use jackrabbit and JCR 2.0 for creating a simple web DMS system. I am using JBoss and then added JCR as module and successfyllu deployed jackrabbit and my own web app. I've tested the app and it seems to work ok. The problem is when starting the server I get this exception and eclipse throws me in debug mode. Everything seems to be working ok, but what causes this exception and more importantly how do I get rid of it?
Edit: Searched quite a while but coundn't find anything on the Internet.
13:24:25,419 ERROR [stderr] (JCA PoolFiller) Exception in thread "JCA PoolFiller" java.lang.UnsupportedOperationException: Retrieving meta data not supported.
13:24:25,420 ERROR [stderr] (JCA PoolFiller) at org.apache.jackrabbit.jca.AnonymousConnection.getMetaData(AnonymousConnection.java:125)
13:24:25,421 ERROR [stderr] (JCA PoolFiller) at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.createConnectionListener(TxConnectionManagerImpl.java:540)
13:24:25,422 ERROR [stderr] (JCA PoolFiller) at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:767)
13:24:25,422 ERROR [stderr] (JCA PoolFiller) at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.fillToMin(SemaphoreArrayListManagedConnectionPool.java:706)
13:24:25,423 ERROR [stderr] (JCA PoolFiller) at org.jboss.jca.core.connectionmanager.pool.mcp.PoolFiller.run(PoolFiller.java:97)
13:24:25,423 ERROR [stderr] (JCA PoolFiller) at java.lang.Thread.run(Unknown Source)
JBoss AS 7 is getting stopped after every 15 minutes.
Please tell me where the configuration for this is so that i can remove it. I want the server to run until I use ./stopserver.sh to stop it.
If i run server from command prompt and do transaction after keeping it idle for 1 hour only the first hit fails with the following errors:
{03:37:31,526 INFO [stdout] (http--0.0.0.0-8080-1) above to execute
03:38:26,073 ERROR [stderr] (http--0.0.0.0-8080-1) java.sql.SQLException: Io exception: Operation timed out
03:38:26,074 ERROR [stderr] (http--0.0.0.0-8080-1) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
03:38:26,075 ERROR [stderr] (http--0.0.0.0-8080-1) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
03:38:26,075 ERROR [stderr] (http--0.0.0.0-8080-1) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
03:38:26,076 ERROR [stderr] (http--0.0.0.0-8080-1) at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:976)
03:38:26,077 ERROR [stderr] (http--0.0.0.0-8080-1) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)}
Server was stopping because of Time -out hence we need to add " deployment-timeout" in standalone.xml as given below:
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" deployment-timeout="1200"/>
</subsystem>