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

Error Building from Eclipse

$
0
0

Hi folks,

 

I'm trying to build a custom AuthProvider and trying to get the source to build in Eclipse.

 

I followed the build instructions for Ant from the commandline and that works fine; however, when I try to build using Ant in Eclipse, I am getting the following error:

 

Buildfile: C:\Users\Charles\eclipse\workspace\Openfire XMPP Server\build.xml  [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.


BUILD FAILED
C:\Users\Charles\eclipse\workspace\Openfire XMPP Server\build.xml:35: taskdef class org.jivesoftware.ant.SubDirInfoTask cannot be found
 using the classloader AntClassLoader[]


Total time: 308 milliseconds

 

I am completely new to Eclipse so I've been following the guide here: http://community.igniterealtime.org/docs/DOC-1020 but I am stuck at this point.

 

Any guidance would be much appreciated.  Apologies for such a noob question, but I've been coddled by Visual Studio -_-


Add Reliable Voip service to Openfire(SIP or Jingle?)

$
0
0

Hi,

I'm intrested to add a reliable voice/video call feature to my xmpp service run on Openfire server.

After some search and investigate on this topic I finally reached the solution described bellow,

Please read and give your suggestion on it as it would be helpful for others and Also Openfire development.

Here are the steps of my solution:

1- Run an SIP server (eg. kamailio) next to openfire Jabber server.

2- Write an openfire plugin to add account to SIP server for any Openfire user with the same username and password.

3- In the client side, develop application parts to work with SIP. and login to SIP account next to the Jabber account Login.

4- Whenever client want a voice/video call try to connect to SIP server and request call using that server.

 

Is it a good and simple solution for having reliable and good qualilty voice and video call in an XMPP service? Or you prefer using Jingle Extension to do so?

Or you prefer another solution that I forgot to explain?

 

Please discuss on this topic and give your opinions on the following fields:

1- Why you prefer one method over another?

2- What is the steps to make that solution?

3- What resources and sample code could you give to make that solution?

4- Is there any working example of that solution?

 

Thanks for your contribution on this topic

Best Regards

Best suited IDE for Openfire Plugin Development

$
0
0

Hi,

I'm new to Openfire Development and Java EE also.

What IDE do you advise to import Openfire,develop plugin for it and build? I have used eclipse (actually ADT) for android develoment. I'm looking for an IDE that openfire project is developed on, and start plugin development after downoad source, in an OUT OF THE BOX manner, and debug easily.

 

Thanks a lot

How to Set Group profile image in openfire like VCard of individual user .

$
0
0

Here we get one story for setting profile image for group . Is there any options to set profile image of group in openfire ? I am using Asmack at client side .

Images are Bouncing when the user is offline in Openfire

$
0
0

I am newbie to openfire server, There is an iOS app using this server, All the text/image messages are delivering to end user properly when the receiver user is online, But in when the receiver is offline, Only the text messages getting delivered when he comes online But the images are bouncing.

As I can only find the /etc/openfire where openfire.xml is located, Do i need to edit this file, The file looks like this

 

 

 

I am newbie to openfire server, There is an iOS app using this server, All the text/image messages are delivering to end user properly when the receiver user is online, But in when the receiver is offline, Only the text messages getting delivered when he comes online But the images are bouncing.

 

 

As I can only find the `/etc/openfire` where `openfire.xml` is located, Do i need to edit this file, The file looks like this

 

 

    <?xml version="1.0" encoding="UTF-8"?>

   

    <!--

        This file stores bootstrap properties needed by Openfire.

        Property names must be in the format: "prop.name.is.blah=value"

        That will be stored as:

            <prop>

                <name>

                    <is>

                        <blah>value</blah>

                    </is>

                </name>

            </prop>

   

        Most properties are stored in the Openfire database. A

        property viewer and editor is included in the admin console.

    -->

    <!-- root element, all properties must be under this element -->

    <jive>

      <adminConsole>

        <!-- Disable either port by setting the value to -1 --> 

        <port>9090</port> 

        <securePort>9091</securePort>

      </adminConsole> 

      <locale>en</locale> 

      <!-- Network settings. By default, Openfire will bind to all network interfaces.

          Alternatively, you can specify a specific network interfaces that the server

          will listen on. For example, 127.0.0.1. This setting is generally only useful

           on multi-homed servers. --> 

      <!--

        <network>

            <interface></interface>

        </network>

        --> 

      <connectionProvider>

        <className>org.jivesoftware.database.DefaultConnectionProvider</className>

      </connectionProvider> 

      <database>

        <defaultProvider>

          <driver>com.mysql.jdbc.Driver</driver> 

          <serverURL>jdbc:mysql://localhost:3306/openfire?rewriteBatchedStatements=true</ serverURL> 

          <username>root</username> 

          <password>mypwd</password> 

          <testSQL>select 1</testSQL> 

          <testBeforeUse>false</testBeforeUse> 

          <testAfterUse>false</testAfterUse> 

          <minConnections>5</minConnections> 

          <maxConnections>25</maxConnections> 

          <connectionTimeout>1.0</connectionTimeout>

        </defaultProvider>

      </database> 

      <setup>true</setup>

    </jive>

 

 

 

 

How to resolve this issue.

Group chat issue

$
0
0

There are three users (A,B,C) . Where A creates group and invites B and C . There B and C accept invitations .

There are total three members in room. All are chating in group. But in middle C are going offine .That time A and B countinuesly chat .After some times C comes online and rejoins group.

There is an issue that when C comes online C gets last message of group in every 5 minuts. Why this is happening ?

 

Where group name is testing.

A send message in group : 1234567890

 

C2S - SENT (338454169): <message id="49" to="C@mysite.co/Smack" from="testing@mysite.co/A" type="groupchat"><subject>1234567890</subject><body>1234567890</body><request xmlns="urn:xmpp:receipts"/><delay xmlns="urn:xmpp:delay" stamp="2014-06-18T11:15:13.539Z"/><x xmlns="jabber:x:delay" stamp="20140618T11:15:13"/></message>

Error for starting openfire

$
0
0

Hi I'm a new developer for openfire. I have build and init(seting datebase and admin) openfire successfully.

 

But after that, the following exception happened:

 

Console:

 

java.lang.NullPointerException    at org.jivesoftware.openfire.XMPPServer$1.run(XMPPServer.java:433)

 

Log:

 

2014.06.20 17:55:20 org.jivesoftware.openfire.container.PluginManager - Error loading plugin: C:\Users\Worksap\Openfire\target\openfire\plugins\admin
java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool    at java.lang.Class.getDeclaredConstructors0(Native Method)    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)    at java.lang.Class.getConstructor0(Unknown Source)    at java.lang.Class.newInstance(Unknown Source)    at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:418)    at org.jivesoftware.openfire.container.PluginManager.access$1(PluginManager.java:282)    at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManager.java:1072)    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.thread.ThreadPool    at java.net.URLClassLoader$1.run(Unknown Source)    at java.net.URLClassLoader$1.run(Unknown Source)    at java.security.AccessController.doPrivileged(Native Method)    at java.net.URLClassLoader.findClass(Unknown Source)    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:427)    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:389)    ... 14 more

 

If I restart openfire (startup a openfire has been inited). Except for the second exception, it tells me another exception about the address alreeady in use:

 

Console:

Openfire 3.10.0 Alpha [Jun 20, 2014 6:00:33 PM]

Error creating server listener on port 5269: Address already in use: JVM_Bind

Openfire 3.10.0 Alpha [Jun 20, 2014 6:00:34 PM]

Error starting server listener on port 5269: null

Admin console listening at:

  http://wap-chenxiao1:9090

  https://wap-chenxiao1:9091

Error starting XMPP listener on port 5222: Address already in use: bind

Error starting SSL XMPP listener on port 5223: Address already in use: bind

Log:

 

java.net.BindException: Address already in use: bind    at sun.nio.ch.Net.bind0(Native Method)    at sun.nio.ch.Net.bind(Unknown Source)    at sun.nio.ch.Net.bind(Unknown Source)    at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)    at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)    at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:363)    at org.apache.mina.transport.socket.nio.SocketAcceptor.access$800(SocketAcceptor.java:55)    at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:222)    at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)    at java.lang.Thread.run(Unknown Source)
2014.06.20 18:00:34 org.jivesoftware.openfire.spi.ConnectionManagerImpl - Could not setup SSL socket
java.net.BindException: Address already in use: bind    at sun.nio.ch.Net.bind0(Native Method)    at sun.nio.ch.Net.bind(Unknown Source)    at sun.nio.ch.Net.bind(Unknown Source)    at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)    at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)    at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:363)    at org.apache.mina.transport.socket.nio.SocketAcceptor.access$800(SocketAcceptor.java:55)    at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:222)    at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)    at java.lang.Thread.run(Unknown Source)

 

I am really confused about it. Dose anybody can help me?

 

Thanks!

Chartset problem with Monitoring Service plugin

$
0
0

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


Can't build latest Git source in NetBeans

$
0
0

I'm pulling new changes from Git into my local clone as they appear in Fisheye's rss feed. But i'm not trying to build the project often. So i can't say when it went wrong, but now when i'm trying to build it, i get errors about not existing packages (attached). Maybe i should build some new plugins before building the main project?

 

Another question: i see that this was merged recently by Dele https://github.com/igniterealtime/Openfire/pull/48

But i don't remember anything about it in the forums, nor a ticket in JIRA for this.

Connect from Java Application to Openfire Server

$
0
0

Good day to you all.

 

I managed to get the Openfire server working with my own database.

 

I have developed an application where I login with a user and I use some methods of changing data.

Right now, I would like to allow a user to see which contacts that he/she has are also logged in, so I can develop a chat among them.

 

My problem is that I do not know how to login the user from my Java application into the Openfire server.

 

I am searching through the Java Docs and I cannot find any method that allows me to do that,

to login a user that is already in the database into Openfire from my own application.

 

Would you mind lending me a hand with this, please?

 

Thank you very much and have a nice day.

Will Openfire host my Google Cloud Messaging Server?

$
0
0

Although I am developing Android apps, I am a newbie to the world of Java servers.  My apps have been using internal SMS messaging to allow the phones to talk to each other.  This worked wonderfully until KitKat broke all that.  Now I'm looking at GoogleCloudMessaging (GCM) using Cloud Connection Server that uses XMPP.

 

The Google docs cover about everything I would need to know except that they, mysteriously, stay away from telling how to actually implement my GCM XMPP server.  (See https://developer.android.com/google/gcm/ccs.html

 

All the other tutorials on the internet also avoid covering this issue.

 

So, my questions are:  Is Openfire a platform that would be good for hosting my GCM CCS XMPP Server?  Has anyone used Openfire for this purpose?

 

While testing I would want to host on my dev box but soon I would need a commercial server hoster.

Thanks,

Gary

What is returned by getOccupants() method of MultiUserChat class ?

$
0
0

i know getOccupants() method returns java.util.List<java.lang.String> .

 

But i want to know about getOccupants() method returns all occupants of room or only ONLINE occupants of room ?

Is it possibel to add a user (chat partner) to all users, like a support officer?

$
0
0

And how is this done. Thank you for your help.

get the jid using openfire api inside plugin

$
0
0

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

$
0
0

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?

$
0
0

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

$
0
0

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?

$
0
0

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?

$
0
0

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

$
0
0

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

Viewing all 966 articles
Browse latest View live




Latest Images