And how is this done. Thank you for your help.
Is it possibel to add a user (chat partner) to all users, like a support officer?
get the jid using openfire api inside plugin
i want to get the JID based on user name using openfire api inside my plugin. I am getting the User object but it doesnt return the jid , so how can i get the jid like roger@myserver.com inside my plugin
PubSub Node doesn't fire after changing domain
Hey tehre,
we recently changed the domain of our openfire... since we did that PubSub Nodes don't fire anymore.
Can anybody explain to me why this happens? Its not as bad, but I'd like to understand it.
Thanks in advance...
Maybe somebody even has a fix that I could use to solve this.
How to debug openfire plugin?
I found a plugin online and I am trying to test it.
Built the plugin with openfire 3.9.3, deployed to my openfire server, everything seemed to be fine.
When I click on plugin's admin setting page, I got a completely blank screen, even the openfire decorator didn't show up.
How do I debug this kind of behavior? I've looked at error.log but nothing related to the plugin in trouble was shown.
-update:
After a pain in the a$$ manual debug session I figured out this line in the jsp is causing problem:
List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request)
If I disable the line, the setting page shows up fine. This line is used for the setting page because the page allows users to upload stuff.
Any one knows how to fix it?
Thanks for your help.
Set "secret key" for User Service
Can someone give me a hint, where and how to set the "secret key" used by the User Service? Thanks in advance!
Maximum size of a IQ?
Hello everybody,
I am currently in charge of developing a solution for our application to reload messages that are older than 24 days (since thats currently the limit for openfire for the history).
Regarding this I'd like to know whats the maximum allowed size for a IQ in openfire. I read that xmpp doesnt specify a limit here but that some xmpp solutions have indeed a limit set for this.
How does openfire handle this, and how does it behave if this limit is reached?
Thanks in advance.
Can Openfire Connect to File System, Database and LDAP at the same time?
I have setup Openfire in my system but during profile settings I can chose one option out of following :
Default (Server database), Directory Server (LDAP) and clearspace Integration..
Is there any way I can make Openfire integrate with more than one of the above two? As in based on the requimrement I chose to select LDAP or Server database!
If it is possible, please share the file names.
I have setup openfire source code for testing purpose, for the above goal.
Any heads up will be useful.
Thanks,
Dish
Chartset problem with Monitoring Service plugin
Hi to you all.
I installed Monitoring Service pluging for openfire , now conevsations in Arabic or Persian languages are archived but in "???????" format !
I added UTF-8 to MySql database . No problem in other parts in Openfire .
I realized that the pluging calls for conversations through javascript inner.Html function to show it as a frame,targeted "conversation-viewer.jsp?conversationID=" + conversationID;" . When i open this page with an ID in a seperate window i can see the generated html doesnt contain any charset setting . How can i find and add charset to this page (conversation-viewr.jsp)? Thank you
Feature Request : Full support for XEP-0277 Microblogging
Hi all
I was facing some problems with jappix microblog system running on openfire server . I did a little googleing and came up with this jappix discussion link :
https://github.com/jappix/jappix/issues/302
valeriansaliou : "The reason is that Openfire support of this feature is only partial. We choose not to bother to adapt to legacy implementations.
Please use Metronome if you need to get it to work. Build should work as on our doc."
I really love working with openfire , how can i check if this feature will be in new releases?
Cache Property Related to MUC Rooms
Would anyone happen to know what the cache property for MUC permissions is?
I can't seem to find them in this list. http://community.igniterealtime.org/docs/DOC-1673
Right now, my muc rooms aren't updating their member/admin permissions right away from the database. I would like permissions / rooms to reflect the database within a few minutes. I've manged to accomplish this for users and groups so far.. but having no luck with MUC.
Updating Openfire Jetty from 7.4 to 9.1
Dear all,
I would like to upgrade the Openfire embedded Jetty web server from 7.4 to 9.1. The primary reason is the speed improvement with SPDY. especially SPDY push. I have fixed all of the compilation errors in building Openfire and implemented the changes required to use the new Connector objects in Jetty 9.x. I am running with Java 8 and everything seems to be working fine.
To have an idea of how fast SPDY is, please visit https://webtide.com/ (developers of Jetty) with a Chrome browser.
is there a way to configure NoSQL Database rather than Relational DB in Openfire Server?
is there a way to configure NoSQL Database rather than Relational DB in Openfire Server?
Critical Help Needed
Hey everyone,
I hired a developer to install OpenFire, and do some other work for me. The relationship hasn't been smooth, and recently he sent some threatning emails regarding the setup of OpenFire.
Specifically, he said something about setting up the 'OpenFire server alive time' and a script he wrote to clear the openfire database on a specific interval, and restart again. Eventually, XMPP won't work.
Is there anything he could have done to make this threat legitimate? He has been unresponsive to my replies.
How does openfire behave when updating cached instances?
Hello everybody,
I am currently in charge of developing a couple of plugins for our chatting solution based on openfire.
We actually have a lot of Database-Access which I want to keep as low as possible.
Until now we implemented our own solution for caches.
It kinda works like this:
-Client needs some object info
-Check if object is cached
-If not cached: Read from DB and create CacheItem
-If cached: Return info from CacheItem
Most caches will get flushed after some time.
If a CacheItem is flushed that has its changes not reflected to the Database yet it will now commit those changes to the Database.
We now would like to switch to using openfires CacheFactory and its own Cache-Class.
However, it seems the Cache-Class used by the CacheFactory doesn't allow for us to get informed when a item from the cache is flushed...
and thus we would not be able to reflect changes to the database.
My question now is how does openfire handle this kind of scenario?
Are changes to CacheItems reflected DIRECTLY to the database? If so, the "only" profit to the cache would be "READ" operations, right? Does this suffice? I fear that we access the database far to often....thats why we created our cache solution...which basicly works...but reaches its limits now...
I hope somebody can explain to me how openfire uses its cache items and how changes to cache items are reflected to the database.
Thanks in advance
Error after new build
HI,
I have followed the build document and search the site for an answer so here I go.
I have downloaded the ant build tool into a windows 7 machine and configured the tool and java just like the document states.
In the first time I try to build the source code I get a build error. This error goes away after a issue a clean and build again
I installed open fire on a server. When I overright the openfire.jar file with the one from the build an lunch the admin page i get the following error.
Problem accessing /index.jsp. Reason:
java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/Concurrent HashMap$KeySetView;
Caused by:
java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/Concurrent HashMap$KeySetView;
at org.jivesoftware.util.ConcurrentHashSet.iterator(ConcurrentHashSet.java:90)
at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:150)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1330)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:22 7)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:94 1)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186 )
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875 )
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:250)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:149)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:349)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConne ction.java:919)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51 )
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.jav a:586)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java :44)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598 )
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
at java.lang.Thread.run(Unknown Source)
any help would be great.
Ping isn't working properly when connection goes down
I have used the PingManager to implement the XEP-0199: XMPP Ping – sever to client ping.
But the issue with this approach is when the wifi is ON but the network link is down , I am not getting a ping from a server and not even my PingFailed listener is getting fired.
So how can I check connection is alive because sometimes isConnection and isAuthentication returns true itself , even if the session is not closed at server. so if pingFailed funcitons works or is there any function exist were i can hook up in coming packet and check with the outgoing ping then in that case i can create a new xmpp connection to server and give seemless experience to the user
here is my code.
public void InitializePingManager(){
mPingManager = PingManager.getInstanceFor(xmpp);
mPingManager.setDefaultPingInterval(1000*50);
mPingManager.setPingInterval(1000*50);
mPingManager.registerPingFailedListener(new PingFailedListener(){
@Override
public void pingFailed() {
// TODO Auto-generated method stub
Log.e("PING" , "ping failed");
}
});
Feature Request: XEP-0198 Stream Management
Now that there is a Feature request bug for SMACK ( http://issues.igniterealtime.org/browse/SMACK-333 ), it would be nice to add a bug for openfire too.
I know that Stream Management is not easy to implement on Server side, therefore it will take a while to accomplish. But once it is there, it would attract more mobile users to use openfire as their XMPP server.
Flow
Can anyone help me what exactly is the exception means?
Hello, I just download of3.9.3 sources and imported in my Eclipse IDE. Everthing is fine
I finished the setup process quickly and just typed admin account to login the openfire Administration Console, it's also works well.
But when I back and check the Eclipse console, I got this:
16:27:01,283 ERROR CertificateManager:301 - Error decoding subjectAltName
java.lang.ClassCastException: org.bouncycastle.asn1.DERTaggedObject cannot be cast to org.bouncycastle.asn1.ASN1Sequence
at org.jivesoftware.util.CertificateManager.getSubjectAlternativeNames(CertificateManager.java:260)
at org.jivesoftware.util.CertificateManager.getPeerIdentities(CertificateManager.java:223)
at org.jivesoftware.util.CertificateManager.isCertificate(CertificateManager.java:371)
at org.jivesoftware.util.CertificateManager.isRSACertificate(CertificateManager.java:322)
at org.jivesoftware.openfire.http.HttpBindManager.createSSLConnector(HttpBindManager.java:210)
at org.jivesoftware.openfire.http.HttpBindManager.configureHttpBindServer(HttpBindManager.java:506)
at org.jivesoftware.openfire.http.HttpBindManager.start(HttpBindManager.java:163)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startHTTPBindListeners(ConnectionManagerImpl.java:564)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.startListeners(ConnectionManagerImpl.java:180)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl.access$0(ConnectionManagerImpl.java:139)
at org.jivesoftware.openfire.spi.ConnectionManagerImpl$1.pluginsMonitored(ConnectionManagerImpl.java:152)
at org.jivesoftware.openfire.container.PluginManager.firePluginsMonitored(PluginManager.java:568)
at org.jivesoftware.openfire.container.PluginManager.access$6(PluginManager.java:566)
at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManager.java:1084)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
What's going on out there, Is it a serious exception?
Thanks for your help!
Help me! The Exception "sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
java version "1.7.0_65"
smack 4.0.0
The test code:
final ConnectionConfiguration connectionConfig = new ConnectionConfiguration( "127.0.0.1", Integer.parseInt("5222"), "yuyong.com");
connectionConfig.setReconnectionAllowed(true);
connectionConfig.setSendPresence(true);
XMPPConnection connection = new XMPPTCPConnection(connectionConfig);
System.out.println(connection.isAuthenticated());try{
connection.connect();
connection.login("ht", "890806");
Chat chat = ChatManager.getInstanceFor(connection).createChat("admin@yuyong.com", new MessageListener() {publicvoid processMessage(Chat chat, Message message) {// Print out any messages we get back to standard out.
System.out.println("Received message: " + message);}});
chat.sendMessage("Howdy!");}catch (IOException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.}
Then he gives me some exception:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnection.java:652)
at org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:223)
at org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:48)
at org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:82)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
at sun.security.validator.Validator.validate(Validator.java:260)
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323)
... 11 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:196)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380)
... 17 more
七月 17, 2014 3:24:49 上午 org.jivesoftware.smack.tcp.PacketWriter writePackets
警告: Exception writing closing stream element
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:121)
at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at java.io.BufferedWriter.flush(BufferedWriter.java:254)
at org.jivesoftware.smack.tcp.PacketWriter.writePackets(PacketWriter.java:190)
at org.jivesoftware.smack.tcp.PacketWriter.access$000(PacketWriter.java:40)
at org.jivesoftware.smack.tcp.PacketWriter$1.run(PacketWriter.java:77)
Can anyone help me?
Where can I find the correct org.apache.mina mina-core sources?
I am trying to debug Openfire V3.9.3, but I noticed that the supplied sources jar for mina-core is off.
The jar file, mina-core.jar, refers in the WEB-INF to the 1.1.8 SNAPSHOT sources, but only the 1.1.7 sources jar seems to be supplied.
Anybody knows why that is? And where can I find the correct 1.1.8 SNAPSHOT sources for mina-core?