Feed aggregator

Installation and maintenance: Secure client for tigase server

Tigase XMPP Server Board - Fri, 04/29/2016 - 06:51

Hi to everyone :)
Just one interesting questions for all.
Example, i am written chat client for Android. It's awesome.
But how i can disable connections/login to my Tigase XMPP server from any other clients instead of my application?
Thanks for the any idea or step by step manual.

Categories: Tigase Forums

API and development: RE: Problems with pre-bind session for tigase-server-7.1.0

Tigase XMPP Server Board - Fri, 04/29/2016 - 00:16

Thanks for your reply.
I check out source code from https://repository.tigase.org/git/tigase-server.git at "46ea242" commit(origin/release,7.1.0-snapshot) and
I found that there are some differences between the java code from svn repository at "46ea242" commit(origion/release,7.1.0-snapshot) and tigase-server-7.1.0-SNAPSHOT-b4139/jars/tigase-server.jar(Enclosed);

Categories: Tigase Forums

Tigase XMPP Server - Tigase XMPP Server 7.0.4 Release

Tigase Development News - Thu, 04/28/2016 - 11:44

A new Maintenance version of Tigase Server 7 has been released. See Release notes for full details.

Installation and maintenance: RE: Simple questions

Tigase XMPP Server Board - Thu, 04/28/2016 - 06:45

Alex Kobzar wrote:

1. Where i can found all sm-plugins list with short information?

There isn't a list with descriptions of all plugins as the names tend to be self-explanatory and mostly match XML namespaces from XMPP specification related to particular funcionality (vide http://xmpp.org/rfcs/rfc6120.html, http://xmpp.org/rfcs/rfc6121.html, http://xmpp.org/extensions/)

2. How i can setup multi connection for one user? Example i want login from my PC and Smartphone device?

This is described in specification in the section Resource Binding.

3. What about offline file transfer?

Currently such functionality is not available.

Categories: Tigase Forums

API and development: RE: Problems with pre-bind session for tigase-server-7.1.0

Tigase XMPP Server Board - Thu, 04/28/2016 - 04:32

I've tried one of the latest versions of Tigase and it works just fine.

  • Which exact version do you use?
  • have you modified Tigase in any way?
Categories: Tigase Forums

API and development: RE: Problems with pre-bind session for tigase-server-7.1.0

Tigase XMPP Server Board - Thu, 04/28/2016 - 04:08

Not anonymous.There is attached a real jid to from attribute.
This is my steps:
Step 1 request

<iq type="set" to="bosh@im.example.com" id="3"> <command xmlns="http://jabber.org/protocol/commands" node="pre-bind-bosh-session"> <x xmlns="jabber:x:data" type="submit"> <field var="from"><value>jay011461751374@im.example.com</value></field> <field var="hold"><value>1</value></field> <field var="wait"><value>60</value></field> </x> </command> </iq>

Step 2 response
Server occured error :
java.lang.NullPointerException at tigase.server.ConnectionManager.getServiceId(ConnectionManager.java:1231) at tigase.server.ConnectionManager.getServiceId(ConnectionManager.java:1217) at tigase.server.ConnectionManager.getXMPPIOService(ConnectionManager.java:1259) at tigase.server.bosh.BoshConnectionManager.getSeeOtherHostForJID(BoshConnectionManager.java:531) at tigase.server.bosh.BoshSession.init(BoshSession.java:338) at tigase.server.bosh.BoshConnectionManager.preBindSession(BoshConnectionManager.java:261) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:233) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) at tigase.admin.Script19.run(Script19.groovy:89) at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:352) at org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:72) at tigase.server.script.Script.runCommand(Script.java:159) at tigase.server.BasicComponent.processScriptCommand(BasicComponent.java:1071) at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1415)
<iq xmlns="jabber:client" to="admin@im.example.com/jaxl#73879a391b21f0495b1f09df1a49c05e" id="3" from="bosh@im.example.com" type="result"> <command xmlns="http://jabber.org/protocol/commands" status="completed" node="pre-bind-bosh-session"> <x xmlns="jabber:x:data" type="result"> <field var="Script result" type="text-multi"><value>Script finished with no errors but returned no results.</value></field> </x></command> </iq>

There is no expected "from" jid to response!

Could you figure out what's wrong with the sent stanza or any conditions to provide ? For my local server version 7.0.2 is ok for me to add user via ad-hoc command.

Thanks in advance!

Categories: Tigase Forums

Installation and maintenance: Simple questions

Tigase XMPP Server Board - Thu, 04/28/2016 - 02:07

Hi. I am just started use Tigase xmpp server.
But have some questions, and can't find answers...

1. Where i can found all sm-plugins list with short information?
2. How i can setup multi connection for one user? Example i want login from my PC and Smartphone device?
3. What about offline file transfer?

Sorry if my questions is stupid, but i didn't found it in manuals.

Categories: Tigase Forums

API and development: RE: Problems with pre-bind session for tigase-server-7.1.0

Tigase XMPP Server Board - Thu, 04/28/2016 - 00:46

How exactly are you trying to utilize pre-bind?

Please note, that Tigase doesn't support anonymous pre-bind for the moment.

Categories: Tigase Forums

API and development: Problems with pre-bind session for tigase-server-7.1.0

Tigase XMPP Server Board - Wed, 04/27/2016 - 03:31

Hi guys,
I encounter the error when i try to pre-bind the session in jaxl php library.
Here is the server log error description(my tigase server's version is 7.1.0-snapshot):

java.lang.NullPointerException
at tigase.server.ConnectionManager.getServiceId(ConnectionManager.java:1231)
at tigase.server.ConnectionManager.getServiceId(ConnectionManager.java:1217)
at tigase.server.ConnectionManager.getXMPPIOService(ConnectionManager.java:1259)
at tigase.server.bosh.BoshConnectionManager.getSeeOtherHostForJID(BoshConnectionManager.java:531)
at tigase.server.bosh.BoshSession.init(BoshSession.java:338)
at tigase.server.bosh.BoshConnectionManager.preBindSession(BoshConnectionManager.java:261)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:233)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at tigase.admin.Script19.run(Script19.groovy:89)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:352)
at org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:72)
at tigase.server.script.Script.runCommand(Script.java:159)
at tigase.server.BasicComponent.processScriptCommand(BasicComponent.java:1071)
at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1415)

Please give me some advises to understand the error report !Thanks in advance la~.

Categories: Tigase Forums

API and development: RE: Privacy Lists: mutual blocking

Tigase XMPP Server Board - Mon, 04/25/2016 - 03:08

Igor Khomenko wrote:

Checked 7.0.3 and still have this issue

and I found one thing in code, why it works this way

class JabberIqPrivacy, method allow

you have the following code:

[...]

so, for example, User1 has User2 in his privacy list
then User1 sends a message to User2.
so this messages comes to JabberIqPrivacy.filter method on the User1's side

and then above jid variable becomes packet.getStanzaTo() (User2).
And because a 'User2' record is in the User1's list, so this message will be removed inside JabberIqPrivacy.filter method.

But you've missed other part - setting packetIn = false;, which ten is taken into consideration in tigase.xmpp.impl.JabberIqPrivacy.matchToPrivacyListElement(boolean, Packet, Element, ITEM_ACTION), which then doens't match to privacy list if the packet is not incoming.

Categories: Tigase Forums

Tigase XMPP Client Library - Tigase XMPP Client Library v3.1.0 released!

Tigase Development News - Thu, 04/21/2016 - 16:22

A new version of Tigase XMPP Client Library has been released. The current version is v3.1.0.

Please see http://www.tigase.net/blog-entry/tigase-client-library-v310-released for release notes.

API and development: RE: Problem with Stream Management

Tigase XMPP Server Board - Thu, 04/21/2016 - 01:34

Thank you, Andrzej!

Categories: Tigase Forums

API and development: RE: How can i check out the source code of tigase-server-7.1.0 ?

Tigase XMPP Server Board - Thu, 04/21/2016 - 00:42

It's in the Repository in the origin/master branch. Current stable version (7.0.x) is in origin/release branch.

Categories: Tigase Forums

API and development: How can i check out the source code of tigase-server-7.1.0 ?

Tigase XMPP Server Board - Wed, 04/20/2016 - 20:13

Hi,Guys!I am working on tigase-server-7.0.2,but i wanna upgrade my server to tigase-server-7.1.0 to achieve the new features such as rest streamp api,unifiy-archive feature and marjor fix.

Could you all tell me how to upgrade or somewhere to check out the source code of tigase-server-7.1.0?
Thanks in advance la~~

Categories: Tigase Forums

API and development: RE: Problem with Stream Management

Tigase XMPP Server Board - Wed, 04/20/2016 - 09:25

Thank you for reporting this issue. I will work on solution for this issue. Right now I see that it happens only when you use -amp,+message,+msgoffline instead of default configuration in which amp is only enabled processor handling messages.
To fix this issue right now I could suggest to replace following part of etc/init.properties file:
--sm-plugins = +message-archive-xep-0136,-message-carbons,-amp,+msgoffline,+message

with following:
--sm-plugins = +message-archive-xep-0136,-message-carbons

however this will enable AMP feature.

I do not think this issue is related to StreamManagement.

I created task #4120 to find cause of this issue and fix it.

Categories: Tigase Forums

API and development: RE: Problem with Stream Management

Tigase XMPP Server Board - Wed, 04/20/2016 - 08:37

Hello everyone.
We had the same problem with losing messages on Wi-fi disconnect, so we've enabled Stream Management on server (Tigase version 7.0.2) with the following properties:
--sm-plugins = +message-archive-xep-0136,-message-carbons,-amp,+msgoffline,+message c2s/watchdog_delay[L]=60000 c2s/watchdog_timeout[L]=60000 c2s/max-inactivity-time[L]=60 c2s/processors[s]=urn:xmpp:sm:3
If we understood Andrzej Wójcik correctly, messages sent to fullJid should not be stored in offline database. However, there are 2 rows in tig_pairs table and messages are delivered twice when user becomes online:

<message id="aadea" to="/mobile" xmlns="jabber:client" from="/MWW-212" type="chat">
<body>1</body><active xmlns="http://jabber.org/protocol/chatstates"/><delivery-error xmlns="http://tigase.org/delivery-error"/><delay xmlns="urn:xmpp:delay" stamp="2016-04-20T15:08:07.033Z" from="domain.net">Offline Storage - mww-212.company.com</delay></message>

<message id="aadea" to="" xmlns="jabber:client" from="/MWW-212" type="chat">
<body>1</body><active xmlns="http://jabber.org/protocol/chatstates"/><delay xmlns="urn:xmpp:delay" stamp="2016-04-20T15:08:07.037Z" from="domain.net">Offline Storage - mww-212.company.com</delay></message>

Could you please suggest how we can fix this?

Categories: Tigase Forums

API and development: RE: Privacy Lists: mutual blocking

Tigase XMPP Server Board - Wed, 04/20/2016 - 07:01

Checked 7.0.3 and still have this issue

and I found one thing in code, why it works this way

class JabberIqPrivacy, method allow

you have the following code:

JID jid = packet.getStanzaFrom(); boolean packetIn = true; if ((jid == null) || sessionUserId.equals(jid.getBareJID())) { jid = packet.getStanzaTo(); packetIn = false; }

so, for example, User1 has User2 in his privacy list
then User1 sends a message to User2.
so this messages comes to JabberIqPrivacy.filter method on the User1's side

and then above jid variable becomes packet.getStanzaTo() (User2).
And because a 'User2' record is in the User1's list, so this message will be removed inside JabberIqPrivacy.filter method.

That's my investigation

Categories: Tigase Forums

API and development: RE: Privacy Lists: mutual blocking

Tigase XMPP Server Board - Wed, 04/20/2016 - 01:55

If I remember correctly you are using some custom code? Can you try running this use case against vanilla Tigase first just to rule this out?

Categories: Tigase Forums

Pages

Get in touch

We provide software products, consulting and custom development services

Tigase, Inc.
100 Pine Street, Suite 1250
San Francisco, CA 94111, USA
Phone: (415) 315 9771

Follow us on:

Twitter

  • A new maintenance release of Tigase XMPP Server has been released, now v7.0.4. Check out the release notes here: https://t.co/7Rqjng8v1K 1 day 23 hours ago
  • Tigase XMPP Server supports REST integration out of the box, see https://t.co/56fnwwT88N for setup and useage details. 3 days 17 hours ago
Back to Top