Quantcast
Channel: Ignite Realtime : All Content - Openfire Support
Viewing all 4778 articles
Browse latest View live

[Content Filter Plugin] - rejection notification sends out duplicated notification

$
0
0

Dear Support,

 

When a packet matches it sends out notifications to the user as described below. However, the notifications received by that user are redundant, even if the message is sent only once.

 

 

 

 

See related logs here;

 

at org.jivesoftware.openfire.plugin.ContentFilterPlugin.interceptPacket(ContentFil terPlugin.java:528) 

   at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:239) 

   at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:94) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotificationI M(ContentFilterPlugin.java:632) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotification( ContentFilterPlugin.java:614) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.interceptPacket(ContentFil terPlugin.java:528) 

   at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:239) 

   at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:94) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotificationI M(ContentFilterPlugin.java:632) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotification( ContentFilterPlugin.java:614) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.interceptPacket(ContentFil terPlugin.java:528) 

   at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:239) 

   at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:94) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotificationI M(ContentFilterPlugin.java:632) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotification( ContentFilterPlugin.java:614) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.interceptPacket(ContentFil terPlugin.java:528) 

   at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:239) 

   at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:94) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotificationI M(ContentFilterPlugin.java:632) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotification( ContentFilterPlugin.java:614) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.interceptPacket(ContentFil terPlugin.java:528) 

   at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:239) 

   at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:94) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotificationI M(ContentFilterPlugin.java:632) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotification( ContentFilterPlugin.java:614) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.interceptPacket(ContentFil terPlugin.java:528) 

   at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:239) 

   at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:94) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotificationI M(ContentFilterPlugin.java:632) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotification( ContentFilterPlugin.java:614) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.interceptPacket(ContentFil terPlugin.java:528) 

   at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:239) 

   at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:94) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotificationI M(ContentFilterPlugin.java:632) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotification( ContentFilterPlugin.java:614) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.interceptPacket(ContentFil terPlugin.java:528) 

   at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:239) 

   at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:94) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotificationI M(ContentFilterPlugin.java:632) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotification( ContentFilterPlugin.java:614) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.interceptPacket(ContentFil terPlugin.java:528) 

   at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:239) 

   at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:94) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotificationI M(ContentFilterPlugin.java:632) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotification( ContentFilterPlugin.java:614) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.interceptPacket(ContentFil terPlugin.java:528) 

   at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(Int erceptorManager.java:239) 

   at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:94) 

   at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotificationI M(ContentFilterPlugin.java:632) 

    at org.jivesoftware.openfire.plugin.ContentFilterPlugin.sendViolationNotification(ContentFilterPlugin.java:614)

 

Sorry, I intend to hide the server address & user.

 

Thank you.


Openfire 4.0 admin access lost after restart

$
0
0

Each time I restart Openfire I cannot log in via the admin console.

 

Searching turned up this work around.   Add this to openfire.xml, then restart again.

 

<admin>

<authorizedUsernames>admin</authorizedUsernames>

</admin>

 

 

To be save, I set several usersnames to be admin.  Each restart, I need to try each until one works.  Showing uses finds the accounts, but those that no longer can log in to the console are (no surprise) no longer set as admin.

 

I have not seen this issue until I upgraded to OF 4.0.

 

I see this on Ubuntu 14.04 and Fedora 22

4.0.0: AD groups are messed

$
0
0

Hi,

 

After upgrading from 3.10 to 4.0.0, some of user groups have changed the order, so users were automatically moved to another group. This is very annoying, since I can't move them back to the correct group - OF moves them to the 1st group automatically after logging in. Is it possible to fix that?

how to get the server date time of a LIVE MESSAGE ?

$
0
0

I am not talking about delayed message. Delayed message can be got from stamp <delayxmlns='urn:xmpp:delay'
    
from='capulet.com'
    
stamp='2002-09-10T23:08:25Z'>
    Offline Storage
 
</delay>

But how about a live message ? Does Openfire support that ?

The only information I see on the Internet is XEP-0131: Stanza Headers and Internet Metadata  However, Openfire does not support this XEP.

 

Please tell me how to resolve this. And I need server time because client time can be wrong. Thank you. Why such an obvious thing like this is not included in the message ....

Openfire Server - CentOS

$
0
0

Im planning to build Openfire server for 80-100 spark users LAN and WAN.  Any recommended hardware specs? Does the Openfire server use large size of bandwidth?

 

Thank you.

Openfire 4 and Hazelcast 2.2.0

$
0
0

Hello,

 

I am attempting to build a new cluster with two Openfire servers that have version 4.0 installed. When I install the hazelcast plugin on each server and then open clustering settings I get the following error:

 

Exception:

java.lang.NullPointerException
     at org.jivesoftware.openfire.plugin.util.cache.ClusteredCacheFactory.getClusterNodesInfo(ClusteredCacheFactory.java:228)
     at org.jivesoftware.util.cache.CacheFactory.getClusterNodesInfo(CacheFactory.java:520)
     at org.jivesoftware.openfire.cluster.ClusterManager.getNodesInfo(ClusterManager.java:393)
     at org.jivesoftware.openfire.admin.system_002dclustering_jsp._jspService(system_002dclustering_jsp.java:132)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
     at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
     at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:76)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:53)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:80)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:162)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
     at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
     at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
     at org.eclipse.jetty.server.Server.handle(Server.java:497)
     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
     at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
     at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
     at java.lang.Thread.run(Thread.java:745)

Any thoughts?

Thanks for your help!

Dan

Openfire and Spark: File-Transfer Option not available

$
0
0

I am using Openfire with Spark.

I am using the latest Openfire with version 3 and 4.0.

The Spark-Clients are also the latest version.

The file-Transfer settings are enabled but there is no file-transfer-option available in Spark.

Do i have to do something else?

Where should i see in Spark if the function is available?

 

Thanks in advance

Jens

my issue: smack client auto response pong of the ping by server , and I can't listen the ping .how can i do it? iq.


users/groups HTTP ERROR 500 only when clustering enabled

$
0
0

I'm seeing the following ClassCastException when I try to access users/groups from the console.

 

The problem is only seen when clustering is enabled.

I enable clustering via openfire.xml edited with:  <clustering> <enabled>true</enabled>   </clustering>

Using the console to enable clustering results in https://igniterealtime.org/issues/browse/OF-1045 so editing xml is my only option.

 

Here is the ClassCastException:

 

HTTP ERROR 500

 

Problem accessing /user-summary.jsp. Reason:

 

    Server Error

 

Caused by:

 

java.lang.ClassCastException: org.jivesoftware.util.cache.DefaultCache cannot be cast to org.jivesoftware.openfire.plugin.util.cache.ClusteredCache

                  at org.jivesoftware.openfire.plugin.util.cache.ClusteredCacheFactory.getLock(Clust eredCacheFactory.java:435)

                  at org.jivesoftware.util.cache.CacheFactory.getLock(CacheFactory.java:415)

                  at org.jivesoftware.openfire.spi.RoutingTableImpl.getRoutes(RoutingTableImpl.java: 820)

                  at org.jivesoftware.openfire.SessionManager.getActiveSessionCount(SessionManager.j ava:994)

                  at org.jivesoftware.openfire.spi.PresenceManagerImpl.isAvailable(PresenceManagerIm pl.java:99)

                  at org.jivesoftware.openfire.admin.user_002dsummary_jsp._jspService(user_002dsumma ry_jsp.java:278)

                  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

                  at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)

                  at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1669)

                  at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

                  at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

                  at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

                  at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:76)

                  at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

                  at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:53)

                  at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

                  at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:80)

                  at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

                  at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:162)

                  at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

                  at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)

                  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

                  at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

                  at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:22 3)

                  at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:11 27)

                  at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

                  at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185 )

                  at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:106 1)

                  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

                  at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:215)

                  at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:110)

                  at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

                  at org.eclipse.jetty.server.Server.handle(Server.java:497)

                  at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)

                  at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

                  at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

                  at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635 )

                  at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

                  at java.lang.Thread.run(Thread.java:745)

Question regarding update process 3.10.3 -> 4.0.0 (CentOS 7)

$
0
0

We are using OpenFire with an user repository based in OpenLDAP. As we would not like to use the LDAP groups but configure them ourselves we switched the configuration setting for provider.group.className to org.jivesoftware.openfire.group.DefaultGroupProvider. This works fine.

 

When trying to update I followed the upgrade guide for RPM based systems. However, when following this guide strictly, the new openfire.xml file will not be used as it will be created as openfire.xml.rpmnew. I tried to use it, however, I ended in a clean installation, making me configuring the LDAP connection again and losing all manually created groups.

 

So my question is: Is it really the supposed upgrade path just to update the RPM and start OpenFire again or do I have to adopt changes from openfire.xml (or something else)?

 

Thanks in advance!

Explanation: options to mitigate messages loss because of network problems

$
0
0

Disclaimer: i'm not a developer, but as this question pops quite often and i have to dig for the recent conversation to provide a link or repeat everything again, i thought this could be useful to have such document and bookmark it for future references.

 

Background:

 

When a client loses network connection Openfire may not become aware of this, after all TCP was designed to survive physical connection outtakes, and do not store incoming messages in the Offline storage. So messages in this situation are sent into void and are lost.

 

 

Workaround:

 

Set a system setting in Openfire (Server Settings > Client Connections > Disconnect clients after they have been idle for) to 30 seconds or any other reasonably low value to make this issue appear as rarely as possible. This means that Openfire will disconnect clients that have been idle for 30 seconds and are not responding to ping requests. One can set it even lower, but it can have a side effect: clients disconnecting and reconnecting often.

 

This is only a workaround and there is still a chance to lose a message in this 30 or so seconds gap.

 

 

Stream Management:

 

Stream Management as defined in XEP-0198: Stream Management is meant to solve message loss because of network problems. Both a client and a server has to support this.

 

Openfire has a partial support of this since 4.0.0 version: [OF-446] Implement XEP-0198: Stream Management - Jive Software Open Source

 

Both endpoints of a XMPP stream must support Stream Management, so a client has to support this too. Smack library (which Spark and some other clients are based on) has added support for this recently (4.1.0 version): [SMACK-333] Implement XEP-0198: Stream Management - Jive Software Open Source

 

Spark is still using older Smack version and it is not known when it can be updated to the latest version as this could brake some functionalities (because of some API changes in Smack).

 

 

Message Delivery Receipts:

 

Another approach would be to implement Message Delivery Receipts in a client. This way a client would get a notification that a message hasn't been delivered (or vice versa a notification that a message has been delivered). This is strictly a client side feature, server doesn't have to support this.

 

Smack already supports this (version 3.3.0): [SMACK-331] Add support for XEP-0184: Message Delivery Receipts - Jive Software Open Source

 

Latest Spark builds are using this Smack version, but there is no GUI in Spark for this yet: [SPARK-1238] Add support for XEP-0184: Message Delivery Receipts - Jive Software Open Source

 

Most modern XMPP clients support Message Delivery Receipts. E.g. Gajim client shows a red cross icon beside a message which hasn't been delivered.

Can't enable HTTP Bind

$
0
0

I've looked at all the other posts that mention this error and nothing seems to relate directly or fix the issue.   Trying to select "Enabled" on HTTP Bind Settings, I get this error:

"An error has occured configuring the HTTP binding ports, check the error log for more details."

 

All other settings on the page seem able to enable/disable/change.

 

I tried going to Server Manager -> System Properties and manually adding various settings. Not sure if I got the names exactly right but I tried to set these:

httpbind.enabled: true

xmpp.httpbind.enabled: true

 

Under Log Viewer, the only HttpBind entries I see are (shows up in Error as well as Warn tabs)

at org.jivesoftware.openfire.http.HttpBindManager.changeHttpBindPorts(HttpBindMana ger.java:484)

at org.jivesoftware.openfire.http.HttpBindManager.setHttpBindPorts(HttpBindManager .java:448)

at org.jivesoftware.openfire.admin.http_002dbind_jsp.handleUpdate(http_002dbind_js p.java:41)

at org.jivesoftware.openfire.admin.http_002dbind_jsp._jspService(http_002dbind_jsp .java:136)

 

So not terribly useful information that i can tell.

 

I don't see anything else on the default ports (7070 and 7443) that might be conflicting.

 

I want to enable BOSH so I can maybe integrate a JS based XMPP client so I can get a Chromebox (ChromeOS) to connect to our XMPP/Openfire/Jabber server.   Unless anyone has any good recommendations for ChromeOS-friendly XMPP clients (haven't found any so far).

 

Thanks!

Java KeyStore Path Missing for Bosh and XMPP

$
0
0

Hi there,


Did an upgrade from 3 to 4.0.0 using the deb package on Ubuntu. (dpkg -i). The keystore settings have changed and the default paths for the XMPP client stores and Bosh stores are empty. This causes all ssl/tls related functionality to stop working.

 

Is there a property I must set? Trying to generate self signed certs in order to get the path set results in:

 

2016.01.13 07:09:45 org.jivesoftware.openfire.http.HttpBindManager - Error creating SSL connector for Http bind 
   java.lang.NullPointerException 
   at org.jivesoftware.openfire.http.HttpBindManager.createSSLConnector(HttpBindManag er.java:246) 
   at org.jivesoftware.openfire.http.HttpBindManager.configureHttpBindServer(HttpBind Manager.java:518) 
   at org.jivesoftware.openfire.http.HttpBindManager.start(HttpBindManager.java:193) 
   at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startListeners(ConnectionMa nagerImpl.java:290) 
   at org.jivesoftware.openfire.spi.ConnectionManagerImpl.access$000(ConnectionManage rImpl.java:49) 
   at org.jivesoftware.openfire.spi.ConnectionManagerImpl$1.pluginsMonitored(Connecti onManagerImpl.java:269) 
   at org.jivesoftware.openfire.container.PluginManager.firePluginsMonitored(PluginMa nager.java:532) 
   at org.jivesoftware.openfire.container.PluginManager.access$800(PluginManager.java :68) 
   at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1047) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) 
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301 (ScheduledThreadPoolExecutor.java:178) 
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:293) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
    at java.lang.Thread.run(Thread.java:745)

 

Test SSL on :5222, DH keySize < 2048

$
0
0

I tried with openssl s_client but it didn't display a certificate; xmpp.net IM Observatory seems to return relevant info and says the cert is good, why doesn't openssl?

 

-bash-4.1$ openssl s_client -connect 127.0.0.1:5222 </dev/null -starttls xmpp

CONNECTED(00000007)

---

no peer certificate available

---

No client certificate CA names sent

---

SSL handshake has read 421 bytes and written 114 bytes

---

New, (NONE), Cipher is (NONE)

Secure Renegotiation IS NOT supported

Compression: NONE

Expansion: NONE

---

 

xmpp.net also said :

 

Server uses Diffie-Hellman parameters of < 2048 bits

 

Does this refer to my private key?

 

I tried editing the java.security file and removed an earlier warning about DSA by removing that cipher, and thought I addressed the DH keySize < 2048 by adding :

 

jdk.tls.disabledAlgorithms=SSLv3, RC4, DH keySize < 2048

jdk.certpath.disabledAlgorithms=MD2, DSA, RSA keySize < 2048, DH keySize < 2048

 

but xmpp.net still says :

 

Server uses Diffie-Hellman parameters of < 2048 bits

 

 

I did restart Jive after editing java.security. Thanks for any help!

 

SG

openfire cannot support Chinese username from Active Directory LDAP

$
0
0

the setup steps of openfire:

- step1, language select: zh_CN

- step2, server settings: using default value

- step3, database settings: mysql

- step4, profile settings:

  (4-1) LDAP

  (4-2) Base DN: ou=测试,dc=test,dc=com,dc=cn

        Administrator DN: cn=Administrator,cn=Users,dc=xiangan,dc=fj,dc=pcc

  (4-3) using default value

  (4-4) using default value

  (4-5) select administrator: somename

 

Error occurred in step 4-5 if I use a Chinese username as administrator, "No username was provided or the specified username was not found", and the openfire Launcher log as follows:

 

Openfire 4.0.0 [2016-1-22 10:10:25]

¹ÜÀíÆ½Ì¨¿ªÊ¼¼àÌý http://server:9090

org.jivesoftware.openfire.user.UserNotFoundException: Username ÎÌÈÙÓþ not found

    at org.jivesoftware.openfire.ldap.LdapManager.findUserDN(LdapManager.java:1004)

    at org.jivesoftware.openfire.ldap.LdapManager.findUserDN(LdapManager.java:928)

    at org.jivesoftware.openfire.admin.setup.setup_002dadmin_002dsettings_jsp._jspServ ice(setup_002dadmin_002dsettings_jsp.java:195)

    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1669)

    at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

    at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

    at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:76)

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

    at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:53)

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

    at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:80)

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

    at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:162)

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:22 3)

    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:11 27)

    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185 )

    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:106 1)

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:215)

    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:110)

    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

    at org.eclipse.jetty.server.Server.handle(Server.java:497)

    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)

    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635 )

    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

    at java.lang.Thread.run(Unknown Source)

 

If I use a English username in step 4-5, all will be ok, and the username can login with spark success also.

 

my environment:

- Active Directory server: MS Windows Server 2008 R2, AD DS 2008

- openfire version: 4.0.0

- openfire server os: MS Windows Server 2003 sp1

 

What's the problem? How to make openfire support Chinese username from AD DS ?

 

thx.


How to change correctly Java Keystore default Password in Openfire 4.0?

$
0
0

Hi,

 

I have installed Openfire 4-0 iserver and im trying change default password (changeit) for Java Keystore but don´t know how to do it correctly.

 

Im usign this command:

 

keytool -storepass changeit -storepasswd -keystore security/keystore

 

And when up server i can see this message:

 

Unable to access certificate store.  The keystore may be corrupt. One or more certificates are missing. Click here to generate self-signed certificates or here to import a signed certificate and its private key.

 

 

Someone can help me please?

 

Thanks.

Openfire service installed, Won't work on logout, works through GUI only

$
0
0

So I've recently been given the chance to build a server specifically for our building access and to host our Chat services through Openfire. The "server" runs Windows 8.1 Pro (building access program is compatible with Windows 8.1, and Windows 2012 server is too large of a cost to justify for a small business)

 

Here's the issue, If I have installed and run Openfire via the gui, users are able to utilize spark till I log out of the "server". I installed the service as an admin in cmd prompt with the "openfire-service.exe /install" and started it without the gui running. I have done this on the local user I have on the server and from my admin. It seems like it installs fine, and is in the services.msc, but I can't connect even if the service is running.

 

TL;DR I run gui, users can chat. Service installs, but can't connect.

Register user in my own table and access information from it.

$
0
0

Hello everyone, I'm developing chat app in Android, I achieved basic functionality using openfire and smack api, now I need to make it in web client too. So to synchronize between web client and app user I need to use register user from app/webclient in my own table and not in ofusers table . I followed custom database setup with MySQL but its not working and I even want to access user information from my own custom table through webservice so I think I'll have to use restapi to make http call , am I right ? I'm so confused please help me.

Upgrade issues

Openfire hazelcast cluster threads TIMED_WAITING

$
0
0

Hi,

 

Openfire version 3.10.2

Hazelcast version: 3.5.1

3 node cluster.

 

The number of openfire threads suddenly spikes upto a large value like 30,000 and the process crashes. A jstack output when threads run very high gives the following output. There are about 10,000 threads in this TIMED_WAITING state.

  

 

"TaskEngine-pool-64721" #69065 daemon prio=5 os_prio=0 tid=0x00007f12552ad000 nid=0x55d7 in Object.wait() [0x00007f131146c000]

   java.lang.Thread.State: TIMED_WAITING (on object monitor)

        at java.lang.Object.wait(Native Method)

        at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.pollResponse(Invo cationFuture.java:299)

        - locked <0x00000006edad3278> (a com.hazelcast.spi.impl.operationservice.impl.InvocationFuture)

        at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.waitForResponse(I nvocationFuture.java:247)

        at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFut ure.java:224)

        at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFut ure.java:204)

        at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.getSafely(Invocat ionFuture.java:216)

        at com.hazelcast.concurrent.lock.LockProxySupport.lock(LockProxySupport.java:79)

        at com.hazelcast.concurrent.lock.LockProxySupport.lock(LockProxySupport.java:73)

        at com.hazelcast.map.impl.proxy.MapProxyImpl.lock(MapProxyImpl.java:223)

        at org.jivesoftware.openfire.plugin.util.cache.ClusteredCache.lock(ClusteredCache. java:173)

        at org.jivesoftware.openfire.plugin.util.cache.ClusteredCacheFactory$ClusterLock.l ock(ClusteredCacheFactory.java:449)

        at org.jivesoftware.openfire.spi.RoutingTableImpl.getRoutes(RoutingTableImpl.java: 800)

        at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToBareJID(RoutingTableImpl. java:531)

        at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableI mpl.java:303)

        at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.jav a:239)

        at org.jivesoftware.openfire.net.SocketPacketWriteHandler.process(SocketPacketWrit eHandler.java:68)

        at org.jivesoftware.openfire.spi.PacketDelivererImpl.deliver(PacketDelivererImpl.j ava:56)

        at org.jivesoftware.openfire.http.HttpSession$4.run(HttpSession.java:1083)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

 

 

 

Along with the stack trace above, the other traces that I get is the following. There are about 15000 of these threads too in the same jstack output.

The snippet of code from openfire 3.10.2 that shows the below stack trace comes from adding the stanza to "pendingElements" data structure.

 

        if (!delivered) {

            if (pendingConnections > 0) {

                Log.warn("Unable to deliver a stanza (it is being queued instead), although there are available connections! RID / Connection processing is out of sync!");

            }

            pendingElements.add(stanza);

        }

 

"TaskEngine-pool-64701" #69020 daemon prio=5 os_prio=0 tid=0x00007f1255087800 nid=0x5516 waiting for monitor entry [0x00007f1311b53000]

   java.lang.Thread.State: BLOCKED (on object monitor)

        at java.util.Collections$SynchronizedCollection.add(Collections.java:2035)

        - waiting to lock <0x00000004e58dfd00> (a java.util.Collections$SynchronizedRandomAccessList)

        at org.jivesoftware.openfire.http.HttpSession.deliver(HttpSession.java:1004)

        at org.jivesoftware.openfire.http.HttpSession.deliver(HttpSession.java:970)

        at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289)

        at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToBareJID(RoutingTableImpl. java:633)

        at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableI mpl.java:303)

        at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.jav a:239)

        at org.jivesoftware.openfire.net.SocketPacketWriteHandler.process(SocketPacketWrit eHandler.java:68)

        at org.jivesoftware.openfire.spi.PacketDelivererImpl.deliver(PacketDelivererImpl.j ava:56)

        at org.jivesoftware.openfire.http.HttpSession$4.run(HttpSession.java:1083)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

 

 

Any clues on how to proceeed. Is the hazelcast stuck and therefore the other threads are BLOCKED ?

Do I have to move to a later version of hazelcast? Found the following link

Hazelcast stuck in TIMED_WAITING when using 2nd-level cache · Issue #4406 · hazelcast/hazelcast · GitHub

Viewing all 4778 articles
Browse latest View live