Tigase XMPP Server Board

API and development: RE: Some NPE problems when high load test of tigase for chat by jMeter.

Tue, 09/05/2017 - 16:39

It's possible - you could add logic in your test tool to wait for correct authentication from the server before proceeding.

I've also took a look at the sources of that commit and it looks like you are missing from attribute in the messages that you are sending - and those are required by the specification (your assumption about message being addressed/processed but offline user is correct).

Categories: Tigase Forums

Installation and maintenance: RE: Tigase server communicating with mongo DB installation

Tue, 09/05/2017 - 16:34

Aniketh R Jain wrote:

Thanks a lot for replying. :-) I have done the setup to some extent following the documentation but I still don't know about configuring it efficiently. Hence for now I will start using.

Another doubt I have is how do I use the certificates. I get an error when I try connecting to tigase server using Smack API stating the PKIX path building failed and unable to find valid certificate at the path of the requested target.

Please help me if you can on the certificate part. It would be very helpful for me. As of now I can connect successfully to the tigase server when the security mode is disabled.

This is because you don't have valid certificate for your domain - you should either buy a correct certification from respectable CA (or get let's encrypt certificate) or disable certificate checking in the client application - you would still get the benefit of encryption but without validation of the server entity.

Also, where can I find the settings like my XMPP domain name, hostname settings inside tigase.

You mostly manage and configure tigase via configuration file and adding vhosts/domain is done via --vhosts= property. You can also use web AdminUI ( http://hostname:8080/admin/ )

Categories: Tigase Forums

API and development: All users have@localhost as JID and in the db as well

Tue, 09/05/2017 - 09:43

Hello,

I have just started using Tigase and XMPP. All users I want to register are saving with @localhost suffix. But during the installation I did put domain correctly.

Please assist me on this.

Categories: Tigase Forums

API and development: RE: New component development : MessageRouterConfig.hasClassForServerCompone...

Tue, 09/05/2017 - 07:08

Gib Rod wrote:

I have same issue... using the version 7.1.0
I have placed the jar file and class where the documentation says and my config looks like this:

jars/test-component.jar
target/classes/tigase/xmpp/impl/TestComponent.class

> > config-type=--gen-config-def > --admins=admin@localhost > --virt-hosts = localhost > --debug=server,cluster,xml > > --user-db-uri=mongodb://localhost/db > --user-db=tigase.mongodb.MongoRepository > --auth-db=tigase.mongodb.MongoRepository > > muc/history-db-uri=mongodb://localhost/db > pubsub/pubsub-repo-url=mongodb://localhost/db > > message-archive/archive-repo-uri=mongodb://localhost/db > ess-man/plugins-conf/message-archive-xep-0136/default-store-method=message > sess-man/plugins-conf/message-archive-xep-0136/required-store-method=message > > sess-man/plugins-conf/presence/auto-authorize=true > sess-man/plugins-conf/jabber\:iq\:roster/auto-authorize=true > sess-man/plugins-conf/auto-authorize=true > > --sm-plugins = +message-archive-xep-0136,+urn:xmpp:blocking,+msgoffline,+http://jabber.org/protocol/address > > # The Components which are enabled > --comp-name-1=message-archive > --comp-class-1=tigase.archive.MessageArchiveComponent > --comp-name-2 = address > --comp-class-2 = tigase.address.ExtendedAddressing > --comp-name-3 = test > --comp-class-3 = tigase.test.TestComponent
Categories: Tigase Forums

API and development: RE: Some NPE problems when high load test of tigase for chat by jMeter.

Tue, 09/05/2017 - 01:38

I think the problems is due to some users do not log in the tigase-server(due to network traffic) although they have been connected to the server,then those users sending message will
cause above problems .it's not problem of tigase-server. thanks.

Categories: Tigase Forums

Installation and maintenance: RE: Setup On Local Machine

Mon, 09/04/2017 - 23:07

No, we didnt edit it, although we have tried installing the server several times. but this time, the host or IP column is missing in the file. same steps were taken every time.

We have installed tigase-server-7.1.0-b4379.

======================================================================================================
tried installing again : below are the final steps :

Your XMPP (Jabber) domains [employee-star]
localhost
Server administrators [admin@employee-star]
admin@localhost
Admin password [tigase]
tigase
0 [x] Derby (built-in database)
1 [ ] MySQL
2 [ ] PostgreSQL
3 [ ] SQLServer
4 [ ] Other...
input selection:
1

Advanced configuration options
[on, off]
off
press 1 to continue, 2 to quit, 3 to redisplay
1
  • Database configuration:
    You have selected MySQL database. This database needs additional configuration parameters. Please enter all required information.

MySQL super user account will be used only to create and configure database for the Tigase server. It will not be used by the Tigase server later on.

Super user account name: [root]
root
WARNING: password will be visible while entering
Super user password: password
WARNING: password will be visible while entering
Retype password: password

MySQL database details. It will be created automatically if it does not exist.

Database account: [tigase]
tigase
Account password: [tigase12]
tigase12
Database name: [tigasedb]
tigasedb
Database host or IP: [localhost]

Additional database parameters: []

press 1 to continue, 2 to quit, 3 to redisplay
1

and then it got installed after performing necessary checks. ================================================================================================
The new init file :

--comp-class-1 = tigase.muc.MUCComponent
--virt-hosts = localhost
--user-db-uri = jdbc:mysql://localhost/tigasedb?user=tigase&password=tigase12
--user-db = mysql
--admins = admin@localhost
--comp-name-4 = message-archive
--comp-name-3 = proxy
config-type = --gen-config-def
--comp-name-2 = pubsub
--comp-name-1 = muc
--cluster-mode = true
--sm-plugins = +message-archive-xep-0136
--debug = server
--comp-class-4 = tigase.archive.MessageArchiveComponent
--comp-class-3 = tigase.socks5.Socks5ProxyComponent
--comp-class-2 = tigase.pubsub.PubSubComponent ======================================================================================================

the tigase.config file :

#osgiEnabled=(true|false)
#osgiEnabled=false
OSGI=false
ENC="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"
DRV="-Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver"
#GC="-XX:+UseBiasedLocking -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewRatio=2 -XX:+CMSIncrementalMode -XX:ParallelCMSThreads=2 -XX:-ReduceInitialCardMarks -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly"
#EX="-XX:+OptimizeStringConcat -XX:+DoEscapeAnalysis -XX:+UseNUMA"

#GC_DEBUG=" -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Xloggc:logs/jvm.log -verbose:gc "

#JMX_REMOTE_IP="-Djava.rmi.server.hostname=0.0.0.0"

#DNS_RESOLVER=" -Dresolver-class=tigase.util.DNSResolverDefault "
#INTERNAL_IP=" -Dtigase-primary-address=hostname.local "
#EXTERNAL_IP=" -Dtigase-secondary-address=hostname "

JAVA_HOME="/usr/lib/jvm/jdk1.8.0_144"
CLASSPATH=""
#PRODUCTION_HEAP_SETTINGS=" -Xms5G -Xmx5G " # heap memory settings must be adjusted on per deployment-base!
JAVA_OPTIONS="${GC} ${GC_DEBUG} ${EX} ${ENC} ${DRV} ${JMX_REMOTE_IP} -server ${PRODUCTION_HEAP_SETTINGS} ${DNS_RESOLVER} ${INTERNAL_IP} ${EXTERNAL_IP} -XX:MaxDirectMemorySize=128m "
TIGASE_OPTIONS=" --property-file etc/init.properties "

===================================================================================================

question : when i try to open chat channel on Tigase messenger , what is the configuration i need to provide ? which domain to select ? because , by default they have tigase.me and others....and we want to chat on local network using localhost server.

Categories: Tigase Forums

Installation and maintenance: RE: Tigase server communicating with mongo DB installation

Mon, 09/04/2017 - 23:00

Thanks a lot for replying. :-) I have done the setup to some extent following the documentation but I still don't know about configuring it efficiently. Hence for now I will start using.

Another doubt I have is how do I use the certificates. I get an error when I try connecting to tigase server using Smack API stating the PKIX path building failed and unable to find valid certificate at the path of the requested target.

Please help me if you can on the certificate part. It would be very helpful for me. As of now I can connect successfully to the tigase server when the security mode is disabled.

Also, where can I find the settings like my XMPP domain name, hostname settings inside tigase.

Categories: Tigase Forums

API and development: RE: Some NPE problems when high load test of tigase for chat by jMeter.

Mon, 09/04/2017 - 19:14

My exactly version of tigase-server is 9908af23d8ab8f7b186a5b52fed11d922944e24e.
The followings are the tigase.log.0 file and the init.properties file:

Categories: Tigase Forums

Installation and maintenance: RE: Tigase server communicating with mongo DB installation

Mon, 09/04/2017 - 15:48

You need a properly configured Tigase server - you can use various methods to achieve that - we even offer web installer which allows you selecting needed component and selecting database which will be used (including MongoDB). Afterwards you only need to start the server and voila. Please refer to documentations of your Tiagse version available on http://docs.tigase.org/#tigase-server for more details.

Categories: Tigase Forums

API and development: RE: New component development : MessageRouterConfig.hasClassForServerCompone...

Mon, 09/04/2017 - 15:46

Gib Rod wrote:

I have same issue... using the version 7.1.0
I have placed the jar file and class where the documentation says and my config looks like this:
jars/test-component.jar
target/classes/tigase/xmpp/impl/TestComponent.class

Why have you placed TestComponent.class to the target? Which part of the documentation were you following.

Having the jars/test-component.jar and
--comp-name-3 = test --comp-class-3 = tigase.test.TestComponent

Should be enough - you should be able to see component loading in the logs/tigase-console.log, component should be visible in service discovery of your client and packets addressed to your component should be processed by it.

Categories: Tigase Forums

API and development: RE: Some NPE problems when high load test of tigase for chat by jMeter.

Mon, 09/04/2017 - 15:43

@Wei Sun - are those complete Stack Traces? Which version exactly are you using? I've checked latest code of 7.2.0-SNAPSHOT and there are no corresponding lines. Please provide complete build information and Tigase version.

Categories: Tigase Forums

API and development: RE: Is there a way to skip specific packets in a plugin?

Mon, 09/04/2017 - 15:38

Currently it's not possible - the only way is to check each packet for the elements and skip them accordingly. Feel free to submit a feature request so we can plan implementing this.

Categories: Tigase Forums

API and development: RE: How to send command to SessionManager from custom component?

Mon, 09/04/2017 - 15:36

After taking a look at the issue it looks that most likely this is a result of permissions - your packet has:
…</command></iq>, SIZE=562, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=set

Please note PERMISSION=NONE.

Take a look at possible values in tigase.server.Permissions and adjust them accordingly (having NONE prevents further processing of the command)

Categories: Tigase Forums

API and development: RE: how can i judge the message send success in strophe and app

Mon, 09/04/2017 - 15:21

You can use XEP-0198: Stream Management: 4. Acks - it's one of the extensions of the XMPP and allows confirming delivery each stanza to the Tigase Server.

Categories: Tigase Forums

API and development: RE: Some NPE problems when high load test of tigase for chat by jMeter.

Mon, 09/04/2017 - 13:09

This seems like a misconfiguration of the Tigase server and problems with database connectivity.

Wojciech, any ideas?

Categories: Tigase Forums

Installation and maintenance: RE: Setup On Local Machine

Mon, 09/04/2017 - 09:11

Just to get some background on your setup process, did you edit the init.properties file before you started setting up the server?
I assume you are using v7.1.1 from the configuration file, yes?

As far as an IP setup, XMPP does not use IP addresses for connections typically. If you setup a server at localhost, and the device is working in a local network, you may specify the IP address of the linux machine within the client (under hostname). For extended testing outside the LAN, you may want to look at this guide http://docs.tigase.org/tigase-server/stable-snapshot/Administration_Guide/html/#setupTigaseServer to setting up the proper DNS and SRV records.

Categories: Tigase Forums

Installation and maintenance: RE: Setup On Local Machine

Mon, 09/04/2017 - 04:31

The lines which gets added in log file when i hit the setup or admin on chrome :

2017-09-04 16:52:57.104 [ConnectionOpenThread] SocketThread.<clinit>() WARNING: 17 socketReadThreads started.
2017-09-04 16:52:57.111 [ConnectionOpenThread] SocketThread.<clinit>() WARNING: 17 socketWriteThreads started.

and that's it... nothing happens after this.

Categories: Tigase Forums

Installation and maintenance: RE: Setup On Local Machine

Mon, 09/04/2017 - 04:29

Also, here are the init files:

--comp-class-1 = tigase.muc.MUCComponent
--virt-hosts = localhost
--user-db-uri = jdbc:mysql://localhost/tigasedb?user=XXXXXXX&password=XXXXXXXXX
--user-db = mysql
--admins = admin@localhost
--comp-name-4 = message-archive
--comp-name-3 = proxy
config-type = --gen-config-def
--comp-name-2 = pubsub
--comp-name-1 = muc
--cluster-mode = true
--sm-plugins = +message-archive-xep-0136
--debug = server
--comp-class-4 = tigase.archive.MessageArchiveComponent
--comp-class-3 = tigase.socks5.Socks5ProxyComponent
--comp-class-2 = tigase.pubsub.PubSubComponent

And the config file :

#osgiEnabled=(true|false)
#osgiEnabled=false
OSGI=false
ENC="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"
DRV="-Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver"
#GC="-XX:+UseBiasedLocking -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewRatio=2 -XX:+CMSIncrementalMode -XX:ParallelCMSThreads=2 -XX:-ReduceInitialCardMarks -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly"
#EX="-XX:+OptimizeStringConcat -XX:+DoEscapeAnalysis -XX:+UseNUMA"

#GC_DEBUG=" -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Xloggc:logs/jvm.log -verbose:gc "

#JMX_REMOTE_IP="-Djava.rmi.server.hostname=0.0.0.0"

#DNS_RESOLVER=" -Dresolver-class=tigase.util.DNSResolverDefault "
#INTERNAL_IP=" -Dtigase-primary-address=hostname.local "
#EXTERNAL_IP=" -Dtigase-secondary-address=hostname "

JAVA_HOME="/usr/lib/jvm/jdk1.8.0_144"
CLASSPATH=""
#PRODUCTION_HEAP_SETTINGS=" -Xms5G -Xmx5G " # heap memory settings must be adjusted on per deployment-base!
JAVA_OPTIONS="${GC} ${GC_DEBUG} ${EX} ${ENC} ${DRV} ${JMX_REMOTE_IP} -server ${PRODUCTION_HEAP_SETTINGS} ${DNS_RESOLVER} ${INTERNAL_IP} ${EXTERNAL_IP} -XX:MaxDirectMemorySize=128m "
TIGASE_OPTIONS=" --property-file etc/init.properties "

If we try to access localhost:5280/admin , localhost:5280/ui or localhost:5280/setup ,it sits there revolving and doing nothing...

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

  • Tigase XMPP Server v7.1.1 has been released. A small release with some stability changes. Change notes are here https://t.co/KV9kWTYDcc 2 weeks 6 days ago
  • That's pretty awesome! Let's see if we can maintain interop compatibility with FastPath! 1 month 1 week ago
Back to Top