Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem logging in #77

Closed
imaginator opened this issue Oct 14, 2013 · 6 comments
Closed

problem logging in #77

imaginator opened this issue Oct 14, 2013 · 6 comments
Labels

Comments

@imaginator
Copy link
Member

Mrflix is having issues to log in - password and account work at the XMPP layer, but something about his bc server account is out of whack (the technical term)

2013-10-14 14:14:38,833 [pool-3-thread-1] DEBUG org.buddycloud.channelserver.packetprocessor.iq.IQProcessor - Finding IQ processor for namespace http://jabber.org/protocol/pubsub
2013-10-14 14:14:38,834 [pool-3-thread-1] INFO  org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace - Using processor for packet type: get
2013-10-14 14:14:38,849 [pool-3-thread-1] ERROR org.buddycloud.channelserver.packetprocessor.iq.IQProcessor - Error while processing packet.
java.lang.IllegalArgumentException: No enum const class org.buddycloud.channelserver.pubsub.affiliation.Affiliations.followerPlus
        at java.lang.Enum.valueOf(Enum.java:214)
        at org.buddycloud.channelserver.pubsub.affiliation.Affiliations.valueOf(Affiliations.java:3)
        at org.buddycloud.channelserver.db.jdbc.JDBCNodeStore.getUserAffiliations(JDBCNodeStore.java:454)
        at org.buddycloud.channelserver.channel.ChannelManagerImpl.getUserAffiliations(ChannelManagerImpl.java:117)
        at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.get.AffiliationsGet.getUserAffiliations(AffiliationsGet.java:167)
        at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.get.AffiliationsGet.process(AffiliationsGet.java:87)
        at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.PubSubGet.process(PubSubGet.java:73)
        at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.PubSubGet.process(PubSubGet.java:24)
        at org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace.process(AbstractNamespace.java:62)
        at org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace.process(AbstractNamespace.java:13)
        at org.buddycloud.channelserver.packetprocessor.iq.IQProcessor.processPacket(IQProcessor.java:87)
        at org.buddycloud.channelserver.packetprocessor.iq.IQProcessor.process(IQProcessor.java:58)
        at org.buddycloud.channelserver.queue.InQueueConsumer.consume(InQueueConsumer.java:53)
        at org.buddycloud.channelserver.queue.QueueConsumer$1.run(QueueConsumer.java:28)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
2013-10-14 14:14:38,849 [pool-2-thread-1] DEBUG org.buddycloud.channelserver.queue.OutQueueConsumer - There are 1 online resources for mrflix@buddycloud.org/b2532f52-da60-4451-8500-bc3d4c45344a
2013-10-14 14:14:38,849 [pool-2-thread-1] DEBUG org.buddycloud.channelserver.queue.OutQueueConsumer - OUT -> <iq type="error" id="69c7e7a06c19c1bb8ad33a99d3e296ba" from="channels.buddycloud.org" to="mrflix@buddycloud.org/b2532f52-da60-4451-8500-bc3d4c45344a"><pubsub xmlns="http://jabber.org/protocol/pubsub"><affiliations/></pubsub><error code="500" type="wait"><internal-server-error xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>
@abmargb
Copy link
Collaborator

abmargb commented Oct 14, 2013

Looks like a database issue. I'll check it in a while.
Em 14/10/2013 11:53, "Simon Tennant" notifications@github.com escreveu:

Mrflix is having issues to log in - password and account work at the XMPP
layer, but something about his bc server account is out of whack (the
technical term)

2013-10-14 14:14:38,833 [pool-3-thread-1] DEBUG org.buddycloud.channelserver.packetprocessor.iq.IQProcessor - Finding IQ processor for namespace http://jabber.org/protocol/pubsub
2013-10-14 http://jabber.org/protocol/pubsub2013-10-14 14:14:38,834 [pool-3-thread-1] INFO org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace - Using processor for packet type: get
2013-10-14 14:14:38,849 [pool-3-thread-1] ERROR org.buddycloud.channelserver.packetprocessor.iq.IQProcessor - Error while processing packet.
java.lang.IllegalArgumentException: No enum const class org.buddycloud.channelserver.pubsub.affiliation.Affiliations.followerPlus
at java.lang.Enum.valueOf(Enum.java:214)
at org.buddycloud.channelserver.pubsub.affiliation.Affiliations.valueOf(Affiliations.java:3)
at org.buddycloud.channelserver.db.jdbc.JDBCNodeStore.getUserAffiliations(JDBCNodeStore.java:454)
at org.buddycloud.channelserver.channel.ChannelManagerImpl.getUserAffiliations(ChannelManagerImpl.java:117)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.get.AffiliationsGet.getUserAffiliations(AffiliationsGet.java:167)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.get.AffiliationsGet.process(AffiliationsGet.java:87)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.PubSubGet.process(PubSubGet.java:73)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.PubSubGet.process(PubSubGet.java:24)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace.process(AbstractNamespace.java:62)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace.process(AbstractNamespace.java:13)
at org.buddycloud.channelserver.packetprocessor.iq.IQProcessor.processPacket(IQProcessor.java:87)
at org.buddycloud.channelserver.packetprocessor.iq.IQProcessor.process(IQProcessor.java:58)
at org.buddycloud.channelserver.queue.InQueueConsumer.consume(InQueueConsumer.java:53)
at org.buddycloud.channelserver.queue.QueueConsumer$1.run(QueueConsumer.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
2013-10-14 14:14:38,849 [pool-2-thread-1] DEBUG org.buddycloud.channelserver.queue.OutQueueConsumer - There are 1 online resources for mrflix@buddycloud.org/b2532f52-da60-4451-8500-bc3d4c45344a
2013-10-14 http://mrflix@buddycloud.org/b2532f52-da60-4451-8500-bc3d4c45344a2013-10-14 14:14:38,849 [pool-2-thread-1] DEBUG org.buddycloud.channelserver.queue.OutQueueConsumer - OUT ->


Reply to this email directly or view it on GitHubhttps://github.com//issues/77
.

@imaginator
Copy link
Member Author

Thanks man - this is for Felix - will email you his credentials.

@abmargb
Copy link
Collaborator

abmargb commented Oct 14, 2013

Fixed with:

UPDATE affiliations SET affiliation = 'publisher' WHERE affiliation =
'followerPlus';

On Mon, Oct 14, 2013 at 12:35 PM, Abmar Barros abmargb@gmail.com wrote:

Looks like a database issue. I'll check it in a while.
Em 14/10/2013 11:53, "Simon Tennant" notifications@github.com escreveu:

Mrflix is having issues to log in - password and account work at the XMPP

layer, but something about his bc server account is out of whack (the
technical term)

2013-10-14 14:14:38,833 [pool-3-thread-1] DEBUG org.buddycloud.channelserver.packetprocessor.iq.IQProcessor - Finding IQ processor for namespace http://jabber.org/protocol/pubsub
2013-10-14 http://jabber.org/protocol/pubsub2013-10-14 14:14:38,834 [pool-3-thread-1] INFO org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace - Using processor for packet type: get
2013-10-14 14:14:38,849 [pool-3-thread-1] ERROR org.buddycloud.channelserver.packetprocessor.iq.IQProcessor - Error while processing packet.
java.lang.IllegalArgumentException: No enum const class org.buddycloud.channelserver.pubsub.affiliation.Affiliations.followerPlus
at java.lang.Enum.valueOf(Enum.java:214)
at org.buddycloud.channelserver.pubsub.affiliation.Affiliations.valueOf(Affiliations.java:3)
at org.buddycloud.channelserver.db.jdbc.JDBCNodeStore.getUserAffiliations(JDBCNodeStore.java:454)
at org.buddycloud.channelserver.channel.ChannelManagerImpl.getUserAffiliations(ChannelManagerImpl.java:117)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.get.AffiliationsGet.getUserAffiliations(AffiliationsGet.java:167)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.get.AffiliationsGet.process(AffiliationsGet.java:87)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.PubSubGet.process(PubSubGet.java:73)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.pubsub.PubSubGet.process(PubSubGet.java:24)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace.process(AbstractNamespace.java:62)
at org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace.process(AbstractNamespace.java:13)
at org.buddycloud.channelserver.packetprocessor.iq.IQProcessor.processPacket(IQProcessor.java:87)
at org.buddycloud.channelserver.packetprocessor.iq.IQProcessor.process(IQProcessor.java:58)
at org.buddycloud.channelserver.queue.InQueueConsumer.consume(InQueueConsumer.java:53)
at org.buddycloud.channelserver.queue.QueueConsumer$1.run(QueueConsumer.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
2013-10-14 14:14:38,849 [pool-2-thread-1] DEBUG org.buddycloud.channelserver.queue.OutQueueConsumer - There are 1 online resources for mrflix@buddycloud.org/b2532f52-da60-4451-8500-bc3d4c45344a
2013-10-14 http://mrflix@buddycloud.org/b2532f52-da60-4451-8500-bc3d4c45344a2013-10-14 14:14:38,849 [pool-2-thread-1] DEBUG org.buddycloud.channelserver.queue.OutQueueConsumer - OUT ->


Reply to this email directly or view it on GitHubhttps://github.com//issues/77
.

Abmar Barros
MSc in Computer Science from the Federal University of Campina Grande -
www.ufcg.edu.br
OurGrid Team Leader - www.ourgrid.org
Buddycloud Dev - www.buddycloud.org
Paraíba - Brazil

@abmargb abmargb closed this as completed Oct 14, 2013
@lloydwatkin
Copy link
Member

whack is one of the java libraries used for the server ;)

@ashward
Copy link
Contributor

ashward commented Oct 15, 2013

In this case the affiliation is FollowerPlus, which afaik isn't a valid affiliation in pubsub or buddycloud, so we should also send a more appropriate error than an internal server error anyway in these cases. I think there are currently plenty of places in the codebase where we could send more appropriate errors for invalid stanzas.

@imaginator
Copy link
Member Author

How about we

CREATE TYPE valid_roles AS ENUM ('outcast', 'publisher', '...');
CREATE TABLE followers (
roles VALID_ROLES);

Happy to put in a pull request with new schema if everyone is happy with
more db constraints.

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants