On Fri, Jun 3, 2011 at 10:51 AM, Amila Suriarachchi <[email protected]> wrote:
>
>
> On Fri, Jun 3, 2011 at 10:36 AM, Prabath Siriwardena <[email protected]>
> wrote:
>>
>> In this case I had both IS and ESB running with default ports -
>
> In one machine how that is possible? I guess the problem is your ESB qpid
> has not started due to bind exception and at runtime it has connected to IS
> qpid server which uses a different access key.

Yes. this could be the issue..
>
>>
>> later I changed the qpid ports of ESB - then issue didn't come..
>
> you don't have to change each and every port. just change the offset.

yes.. thanks..

Regards,
-Prabath

>
> thanks,
> Amila.
>
>>
>> Thanks & regards,
>> -Prabath
>>
>> On Fri, Jun 3, 2011 at 10:29 AM, Amila Suriarachchi <[email protected]>
>> wrote:
>> > This error comes from here.
>> >
>> > boolean isAuthenticated = false;
>> >
>> >             // Authenticate internal call from another Carbon component
>> >             if
>> >
>> > (password.equals(AuthenticationServiceDataHolder.getInstance().getAccessKey()))
>> > {
>> >                 isAuthenticated = true;
>> >             } else { // External call
>> >                 UserRealm userRealm = getUserRealm(username);
>> >
>> >                 // Can not find the user realm
>> >                 if (null == userRealm) {
>> >                     throw new AccountNotFoundException("Invalid User : "
>> > +
>> > principal);
>> >                 }
>> >
>> >                 // Get username from tenant username
>> >                 int domainNameSeparatorIndex =
>> > username.indexOf(DOMAIN_NAME_SEPARATOR);
>> >                 if (-1 != domainNameSeparatorIndex) {
>> >                     username = username.substring(0,
>> > domainNameSeparatorIndex);
>> >                 }
>> >
>> > When a user calls through the event we use trust delegation where event
>> > broker sets a spacial key as password and i.e checked by the Qpid
>> > server.
>> >
>> > In this instance that check has been failed.
>> >
>> > My guess for this situation is you may have set the remote broker in the
>> > event broker config with wrong admin port number.
>> >
>> > If you can exact steps to reproduce this issue I can debug and see.
>> >
>> > thanks,
>> > Amila.
>> >
>> > On Fri, Jun 3, 2011 at 9:23 AM, Prabath Siriwardena <[email protected]>
>> > wrote:
>> >>
>> >> Login to ESB and updated the synapse configuration and you see
>> >> following errors after sometime...
>> >>
>> >> I am running an IS on the same machine at the same time - with default
>> >> ports.. Could this be the issue..? [Invalid User : wso2.system.user
>> >> [error code 320: context in use]]
>> >>
>> >> [2011-06-03 09:17:47,117] ERROR - EventPublisher Can not publish the
>> >> message
>> >> org.wso2.carbon.event.core.exception.EventBrokerException: Can not
>> >> create topic connection
>> >>        at
>> >>
>> >> org.wso2.carbon.event.core.internal.delivery.jms.JMSDeliveryManager.getTopicConnection(JMSDeliveryManager.java:78)
>> >>        at
>> >>
>> >> org.wso2.carbon.event.core.internal.delivery.jms.JMSDeliveryManager.publish(JMSDeliveryManager.java:143)
>> >>        at
>> >>
>> >> org.wso2.carbon.event.core.internal.EventPublisher.run(EventPublisher.java:56)
>> >>        at
>> >>
>> >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> >>        at
>> >>
>> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> >>        at java.lang.Thread.run(Thread.java:680)
>> >> Caused by: javax.jms.JMSException: Error creating connection: Error
>> >> processing data: java.io.IOException: Error looking up user
>> >> javax.security.auth.login.AccountNotFoundException: Invalid User :
>> >> wso2.system.user
>> >>        at
>> >>
>> >> org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:286)
>> >>        at
>> >>
>> >> org.apache.qpid.client.AMQConnectionFactory.createTopicConnection(AMQConnectionFactory.java:345)
>> >>        at
>> >>
>> >> org.wso2.carbon.event.core.internal.delivery.jms.JMSDeliveryManager.getTopicConnection(JMSDeliveryManager.java:72)
>> >>        ... 5 more
>> >> Caused by: org.apache.qpid.AMQConnectionFailureException: Error
>> >> processing data: java.io.IOException: Error looking up user
>> >> javax.security.auth.login.AccountNotFoundException: Invalid User :
>> >> wso2.system.user [error code 320: context in use]
>> >>        at
>> >> org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:472)
>> >>        at
>> >>
>> >> org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:276)
>> >>        ... 7 more
>> >> Caused by: org.apache.qpid.AMQException: Cannot connect to broker:
>> >> Error processing data: java.io.IOException: Error looking up user
>> >> javax.security.auth.login.AccountNotFoundException: Invalid User :
>> >> wso2.system.user [error code 320: context in use]
>> >>        at
>> >>
>> >> org.apache.qpid.client.AMQConnectionDelegate_0_10.makeBrokerConnection(AMQConnectionDelegate_0_10.java:203)
>> >>        at
>> >>
>> >> org.apache.qpid.client.AMQConnection.makeBrokerConnection(AMQConnection.java:617)
>> >>        at
>> >> org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:396)
>> >>        ... 8 more
>> >> Caused by: org.apache.qpid.transport.ConnectionException: Error
>> >> processing data: java.io.IOException: Error looking up user
>> >> javax.security.auth.login.AccountNotFoundException: Invalid User :
>> >> wso2.system.user
>> >>        at
>> >>
>> >> org.apache.qpid.transport.ConnectionException.rethrow(ConnectionException.java:67)
>> >>        at
>> >> org.apache.qpid.transport.Connection.connect(Connection.java:268)
>> >>        at
>> >>
>> >> org.apache.qpid.client.AMQConnectionDelegate_0_10.makeBrokerConnection(AMQConnectionDelegate_0_10.java:184)
>> >>        ... 10 more
>> >> Caused by: org.apache.qpid.transport.ConnectionException: Error
>> >> processing data: java.io.IOException: Error looking up user
>> >> javax.security.auth.login.AccountNotFoundException: Invalid User :
>> >> wso2.system.user
>> >>        at
>> >> org.apache.qpid.transport.Connection.closeCode(Connection.java:526)
>> >>        at
>> >>
>> >> org.apache.qpid.transport.ConnectionDelegate.connectionClose(ConnectionDelegate.java:76)
>> >>        at
>> >>
>> >> org.apache.qpid.transport.ConnectionDelegate.connectionClose(ConnectionDelegate.java:40)
>> >>        at
>> >>
>> >> org.apache.qpid.transport.ConnectionClose.dispatch(ConnectionClose.java:100)
>> >>        at
>> >>
>> >> org.apache.qpid.transport.ConnectionDelegate.control(ConnectionDelegate.java:49)
>> >>        at
>> >>
>> >> org.apache.qpid.transport.ConnectionDelegate.control(ConnectionDelegate.java:40)
>> >>        at org.apache.qpid.transport.Method.delegate(Method.java:163)
>> >>        at
>> >> org.apache.qpid.transport.Connection.received(Connection.java:369)
>> >>        at
>> >> org.apache.qpid.transport.Connection.received(Connection.java:59)
>> >>        at
>> >> org.apache.qpid.transport.network.Assembler.emit(Assembler.java:95)
>> >>        at
>> >>
>> >> org.apache.qpid.transport.network.Assembler.assemble(Assembler.java:181)
>> >>        at
>> >> org.apache.qpid.transport.network.Assembler.frame(Assembler.java:129)
>> >>        at
>> >> org.apache.qpid.transport.network.Frame.delegate(Frame.java:133)
>> >>        at
>> >>
>> >> org.apache.qpid.transport.network.Assembler.received(Assembler.java:100)
>> >>        at
>> >> org.apache.qpid.transport.network.Assembler.received(Assembler.java:42)
>> >>        at
>> >>
>> >> org.apache.qpid.transport.network.InputHandler.next(InputHandler.java:187)
>> >>        at
>> >>
>> >> org.apache.qpid.transport.network.InputHandler.received(InputHandler.java:103)
>> >>        at
>> >>
>> >> org.apache.qpid.transport.network.InputHandler.received(InputHandler.java:42)
>> >>        at
>> >>
>> >> org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:128)
>> >>        ... 1 more
>> >>
>> >>
>> >> --
>> >> Thanks & Regards,
>> >> Prabath
>> >>
>> >> http://blog.facilelogin.com
>> >> http://RampartFAQ.com
>> >> _______________________________________________
>> >> Carbon-dev mailing list
>> >> [email protected]
>> >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>> >
>> >
>> > _______________________________________________
>> > Carbon-dev mailing list
>> > [email protected]
>> > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>> >
>> >
>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> http://blog.facilelogin.com
>> http://RampartFAQ.com
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>



-- 
Thanks & Regards,
Prabath

http://blog.facilelogin.com
http://RampartFAQ.com
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to