1 Reply Latest reply on Mar 23, 2017 8:53 AM by Ramesh Reddy

    Picketbox authentication exception in log

    Hend Amin Novice

      Hello i am using teiid embeddded with picketbox authentication:

      <policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

               xsi:schemaLocation="urn:jboss:security-config:5.0"

               xmlns="urn:jboss:security-config:5.0"

               xmlns:jbxb="urn:jboss:security-config:5.0">

          <application-policy name = "teiid-security-file">

             <authentication>

                <login-module code ="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required"> 

                <module-option name="defaultUsersProperties">./conf/users.properties</module-option>     

                </login-module>

             </authentication>

          </application-policy>

      </policy>

      the log file get huge because i get this exception: repeated with every login.

      Note:

      - login works fine no problems just this exception is thrown in log.

      - I use file roles.properties not  defaultRoles.properties

       

      2017-02-20 11:39:11.732 DEBUG [NIO1 security]: PBOX00287: Failed to open properties file from URL

      java.net.MalformedURLException: no protocol: defaultRoles.properties

        at java.net.URL.<init>(URL.java:586) ~[na:1.8.0_66]

        at java.net.URL.<init>(URL.java:483) ~[na:1.8.0_66]

        at java.net.URL.<init>(URL.java:432) ~[na:1.8.0_66]

        at org.jboss.security.auth.spi.Util.loadProperties(Util.java:187) ~[picketbox-4.9.3.Final.jar:4.9.3.Final]

        at org.jboss.security.auth.spi.UsersRolesLoginModule.loadRoles(UsersRolesLoginModule.java:231) ~[picketbox-4.9.3.Final.jar:4.9.3.Final]

        at org.jboss.security.auth.spi.UsersRolesLoginModule.createRoles(UsersRolesLoginModule.java:245) ~[picketbox-4.9.3.Final.jar:4.9.3.Final]

        at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:147) ~[picketbox-4.9.3.Final.jar:4.9.3.Final]

        at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source) ~[na:na]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_66]

        at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_66]

        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:736) [na:1.8.0_66]

        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195) [na:1.8.0_66]

        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682) [na:1.8.0_66]

        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680) [na:1.8.0_66]

        at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_66]

        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) [na:1.8.0_66]

        at javax.security.auth.login.LoginContext.login(LoginContext.java:587) [na:1.8.0_66]

        at org.jboss.security.plugins.auth.JaasSecurityManagerBase.defaultLogin(JaasSecurityManagerBase.java:388) [picketbox-4.9.3.Final.jar:4.9.3.Final]

        at org.jboss.security.plugins.auth.JaasSecurityManagerBase.proceedWithJaasLogin(JaasSecurityManagerBase.java:330) [picketbox-4.9.3.Final.jar:4.9.3.Final]

        at org.jboss.security.plugins.auth.JaasSecurityManagerBase.authenticate(JaasSecurityManagerBase.java:318) [picketbox-4.9.3.Final.jar:4.9.3.Final]

        at org.jboss.security.plugins.auth.JaasSecurityManagerBase.isValid(JaasSecurityManagerBase.java:197) [picketbox-4.9.3.Final.jar:4.9.3.Final]

        at com.novomind.ecom.datalayer.util.EmbeddedSecurityHelper.authenticate(EmbeddedSecurityHelper.java:16) [ecom-data-layer-10.0.116.0-SNAPSHOT.jar:na]

        at com.novomind.ecom.datalayer.util.EmbeddedSecurityHelper.authenticate(EmbeddedSecurityHelper.java:44) [ecom-data-layer-10.0.116.0-SNAPSHOT.jar:na]

        at org.teiid.services.SessionServiceImpl.createSession(SessionServiceImpl.java:200) [teiid-runtime-8.13.4.jar:8.13.4]

        at org.teiid.transport.LogonImpl.logon(LogonImpl.java:142) [teiid-runtime-8.13.4.jar:8.13.4]

        at org.teiid.transport.LogonImpl.logon(LogonImpl.java:127) [teiid-runtime-8.13.4.jar:8.13.4]

        at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) ~[na:na]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_66]

        at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_66]

        at org.teiid.transport.ServerWorkItem.run(ServerWorkItem.java:87) [teiid-runtime-8.13.4.jar:8.13.4]

        at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:276) [teiid-engine-8.13.4.jar:8.13.4]

        at org.teiid.transport.SocketClientInstance.processMessagePacket(SocketClientInstance.java:223) [teiid-runtime-8.13.4.jar:8.13.4]

        at org.teiid.transport.SocketClientInstance.receivedMessage(SocketClientInstance.java:209) [teiid-runtime-8.13.4.jar:8.13.4]

        at org.teiid.transport.SSLAwareChannelHandler.messageReceived(SSLAwareChannelHandler.java:212) [teiid-runtime-8.13.4.jar:8.13.4]

        at org.teiid.transport.SSLAwareChannelHandler.channelRead(SSLAwareChannelHandler.java:218) [teiid-runtime-8.13.4.jar:8.13.4]

        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:242) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:847) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) [netty-all-4.0.26.Final.jar:4.0.26.Final]

        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66]