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

REST API Connection Problem

$
0
0

Hi Experts,

 

I am new in OPENFIRE and I need help in using REST API.

I manage to install OPENFIRE server successfully and create a new user from the admin console. However, when I try to create a new user by using the REST API, I failed. I have been trying to call the methods from REST API for few days using JQuery, Ajax, and Javascripts. But none of the codes manage to create a new user. I desperately need some helps from the experts. Thanks!!! These are some of my codes, I hope someone can point out my errors. Thanks again!!!

 

 

 

functionuserCreation() {

    varxmlhttp;

    xmlhttp = new XMLHttpRequest();

    xmlhttp.open('POST', 'http://localhost:9090/plugins/restapi/v1/users', true);

  

   

    xmlhttp.setRequestHeader('Authorization', 'G4diPwo5');

    xmlhttp.setRequestHeader("Content-Type", "application/xml");

 

 

    var data =

            "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" +

            "<user>" +

            "<username>test6</username>" +

            "<password>p4ssword</password>" +

            "</user>";

 

 

    xmlhttp.onreadystatechange = function() {

        if (xmlhttp.status == 201) {

            alert("Update Successfully");

        }

    }

    xmlhttp.send(data);

}

 

 

 

 

 

 

function userCreation2() {

 

    jQuery.ajax({

    headers: {

        "Authorization": "G4diPwo5",

    },

            type: 'POST',

            contentType: "application/json; charset=utf-8",

            dataType: "json",

            url: 'http://localhost:9090/plugins/restapi/v1/users',

            data: {

                    "username": "test6",

                    "password": "p4ssword"

            },

            success: function() {

                alert('POST completed');

            },

           

            error: function(xhr, status, error){

                alert(xhr);

                var err = eval("(" + xhr.responseText + ")");

                alert(err.Message);

            } 

    })

}


Invitation to chat room from open fire plugin, is it possible?

$
0
0

Hi:

 

I would like to create conferences between two users programmatically in order to avoid the user boring tasks. The only thing that I saw it was feasible was creating a chat room and inviting this two users using another user account with Smack client.

 

I thing that it is not the proper way because it is too difficult, however the only thing It could fail is if I try to register several times with the same user account that creates the rooms and invite the users.

 

Could you help me? Do you see an easier way?

 

Kind regards.

New websocket plugin: sending messages to BOSH clients problem

$
0
0

Hello all, when i'm trying to send message from Websocket agent to BOSH visitor i'm getting following on BOSH (visitor) side:

 

<body xmlns='http://jabber.org/protocol/httpbind' ack='5077547733'><message xmlns="jabber:client" xmlns="jabber:client" to="user-732b6b2f@chat.devtd.com/organization/d/_d" type="groupchat" from="ce74b317-053b-41e1-bae1-a55cc83a0146@teledini-conv.chat.devtd.com/agent19478"><body xmlns="">adsfdsaf</body><subject xmlns=""/></message></body>

 

What can cause such problem and any chance to fix?

The official source's servlet plugin (userservice) can't use when deploy to linux

$
0
0

1.First. i develop a servlet plugin to push message, it can be used in local(Windows), but when i deploy it to linux, report 404 error.

 

2.So then, i try to test the official source's servlet plugin--userservice, it's also has the same problem with 1.

 

3.At last. i try to deploy it to Windows7, also has the same problem.

 

i really don't has any ideas, hope someone can help me. i think it's deployment environment's problem, but i don't know how to check it.

 

My local environment : Openfire3.9.3  |  Spark2.7.1  |  JDK1.8.0_51  |  Eclipse in Windows7

Server environment : Ubuntu 14  |  Windows

 

Openfire HazelCast Clustering not working as expected

$
0
0

I've got two questions or issues in regards to the HazelCast clutering.

 

1)  When the senior member server is restarted, none of the other servers will promote to the senior member roll.  When the server that was a senior member finishes restarting, it starts a new cluster instance and remains completely disjointed from the other cluster members.  What is the expected behavior with the hazelcast clustering?  With what I've seen, it seems that if there is any communication disruption with the senior member, openfire must be restarted on all servers.

 

2)  The communicatoin between the cluster members and the senior member does not appear to be stable.  When I look at the clustering page in the openfire administration page on the senior member, I can see the other servers.  When I'm on one of the other servers, I routinely do not get stats back for any other servers except for the local server.  I will occasionally get stats back but it is very inconsistent.  When I do not get stats back, I get the following error in the error.log.  The error occurs immediately and does not wait for 30 seconds as the log indicates. 

 

2015.08.12 15:23:38 org.jivesoftware.openfire.plugin.util.cache.ClusteredCacheFactory - Failed to execute cluster task within 30 seconds

java.util.concurrent.TimeoutException: Call Invocation{ serviceName='hz:impl:executorService', op=com.hazelcast.executor.impl.operations.MemberCallableTaskOperation{serviceNa me='null', partitionId=-1, callId=265, invocationTime=1439393018757, waitTimeout=-1, callTimeout=30000}, partitionId=-1, replicaIndex=0, tryCount=250, tryPauseMillis=500, invokeCount=1, callTimeout=30000, target=Address[x.x.x.x]:5701, backupsExpected=0, backupsCompleted=0} encountered a timeout

        at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicatio nResponse(InvocationFuture.java:366)

        at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicatio nResponseOrThrowException(InvocationFuture.java:334)

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

        at com.hazelcast.util.executor.DelegatingFuture.get(DelegatingFuture.java:71)

        at org.jivesoftware.openfire.plugin.util.cache.ClusteredCacheFactory.doSynchronous ClusterTask(ClusteredCacheFactory.java:335)

        at org.jivesoftware.util.cache.CacheFactory.doSynchronousClusterTask(CacheFactory. java:588)

        at org.jivesoftware.openfire.admin.system_002dclustering_jsp._jspService(system_00 2dclustering_jsp.java:123)

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

        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:74)

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

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

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

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

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

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

        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)

 

 

I'm running Openfire 3.10.2 and Hazelcast plugin 2.1.1.  I've replicated the set up with a set of 3 Windows servers and a set of 2 Linux servers.  The servers are in the same subnet with no network devices in between them.  I've tried using both the multicast and the tcp-ip configuration with the same results. 

 

I'm looking for some insight in to expected hazelcast results and hopefully some tips on making this more stable.

Processing pubsub payloads in a plugin

$
0
0

Hi All,

 

Other than packetsniffer interface, is there any other way to receive Pubsub payloads in a plugin?

 

I want to write a app based on pubsub receiving custom payloads..want to make it work cleanly in openfire...

Email on Away

$
0
0

Hi, All!

Can you help me with some problems, please?

I can't configure or remove the plugin Email on Away. Auto-replies "I'm not here and blah blah blah"  terribly annoying users,

and I can't disable it - after removing, the plugin appears in a few seconds and I could not find where is the settings of plugin.

 

Thanks!
Bye, All!

Openfire Plugin: Content Filter causes Email Loop

$
0
0

I installed and configured content filter plugin in Openfire web admin. See attached files(can't insert picture)

Then it triggered email loop to my mail server, after I tested it with a content filtered word sending it to user focus.

See attached file mail_flood.png.

 

The issue is, if content filter plugin is enabled and is tested with a word that cause it to trigger the alert email message, and that testing is sent to user "focus"(system created user), it will cause email loop to my mail server.

https://en.wikipedia.org/wiki/Email_loop

 

How can I stop this?

 

Please note that, I reset the openfire service to no avail.

I uninstalled and reinstalled openfire to no avail.

Restarted the zimbra mail server to no avail.

Rebooted the mail server, but still receiving those content filter alert email even if no openfire service is running.

 

Please, any help will be greatly appreciated.


I have problem in Roster Can you hep me

$
0
0

when i use

Roster.setDefaultSubscriptionMode(Roster.SubscriptionMode.manual);

and  after this code i use

Roster.getInstanceFor(Definitions.CONNECTION);

but Roster. SubscriptionMode still accept All
why ?????????

Monitoring Plugin: Stanza is empty for group chats

$
0
0

Hi There,

 

I'ld like to archive group chats with all metadata. When sending Messages between single users, the field "stanza" is filled up with information in the Database. But for group chats this field is always empty.

Is there a way to enable saving the whole message?

 

Bests

PascalTurbo

file transfer 406 problem

$
0
0

function step2(iqq) {

    var streamhost = $(iqq).find("streamhost").get(0);

// var serverjid = streamhost.getAttribute("jid");

// var serverhost = streamhost.getAttribute("host");

// var serverport = streamhost.getAttribute("port");

    var iq = $iq({

        to : fjid+'/Spark',

        type : 'set',

        id :id,

        from : fulljid

    }).c('query', {

        xmlns : "http://jabber.org/protocol/bytestreams",

        mode : "tcp",

        sid : sid

    }).c('streamhost', {

        jid : fulljid,

        host : "192.168.22.43",

        port : "7777"

    }).up().c('streamhost', {

        jid : streamhost.getAttribute("jid"),

        host : streamhost.getAttribute("host"),

        port : streamhost.getAttribute("port")

    });

    connection.sendIQ(iq, step3,error);

}

When send file,server will return a 406 error. I serch a long time, but find no where to be wrong.
Does any one konw why??? Please help me.
I'm wait on Internet and beg for my English.

Openfire plugins

$
0
0

is there any option in openfire to automatically copy (synchronize) plugins between many openfire servers that's all in one cluster (using Hazelcast plugin)?
Which mean, when i install any plugin in one server, it automatically installed on the others.

 

Thanks.

How can I start videocall or phonecall on spark open fire

$
0
0

Hi all,

 

 

I´m trying start videocall and phone call on spark open fire, but I can´t do this very well. The plug-ins of vídeocall and phone call already install on server, user client shows plug-ins correstly, but you can´t start feature.

How can I start this features ? Anybody try install this features ?

 

 

Thanks for advance,

Openfire 3.10.0 and websocket

$
0
0

Hi, i'm using openfire 3.9.3 with websocket 0.0.0.6 and everything is fine but when I upgrade to 3.10.0, the websocket plugin fall in error.

 

2015.05.13 11:55:49 org.jivesoftware.openfire.container.PluginManager - Error loading plugin: C:\Program Files\Openfire\plugins\websockets

java.lang.NoClassDefFoundError: org/eclipse/jetty/websocket/WebSocketServlet

    at java.lang.ClassLoader.defineClass1(Native Method)

    at java.lang.ClassLoader.defineClass(Unknown Source)

    at java.security.SecureClassLoader.defineClass(Unknown Source)

    at java.net.URLClassLoader.defineClass(Unknown Source)

    at java.net.URLClassLoader.access$100(Unknown Source)

    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 java.lang.ClassLoader.loadClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at com.ifsoft.websockets.plugin.WebSocketsPlugin.initializePlugin(WebSocketsPlugin .java:58)

    at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :477)

    at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java :76)

    at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1068)

    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(Unknow n 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.websocket.WebSocketServlet

    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 java.lang.ClassLoader.loadClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    ... 22 more

 

Somebody have an idea why this happen.

 

I try this on 3 others computers and the same error on all of them.

 

thanks

Alerta de un nuevo mensaje - ChatWeb

$
0
0

Buenas tardes

 

Necesito configurar que la ventana de navegador del usuario cuando esta minimizada parpadee al llegarle un nuevo mensaje por parte del analista de chat, en este momento solo funciona al analista porque tiene instalado el cliente Spark.


Openfire 3.10 and Broadcast Plugin

$
0
0

Hi everyone,

 

I updated openfire to the last version, and i tried to use broadcast plugin.

 

I configured it adding the properties to system properties and specifying the allowed users to create broadcast messages.

 

plugin.broadcast.allowedUsers

  myuser@arbue01as06,anotheruser@arbue01as06

plugin.broadcast.disableGroupPermissions

  false 

plugin.broadcast.groupMembersAllowed

  false

 

The thing is that when i enabled the property broadcast.enabled = true all spark clients can send broadcast messages, because the option start appearing in all users.

 

I need to add specific users and groups to allow send broadcast messages.

 

 

 

 

              

Webchat help needed please

$
0
0

I have installed Openfire 3.9.3 on a Windows 2K8 Server. I am trying to use the webchat app as well. I have installed Tomcat 7 on the same server as well.I am using the webchat.war for tomcat and I can run the setup for the webchat with now problem. However when I try to access the webchat from our company website I get an offline message. Can anyone tell me why? The workgroup is online and there are people waiting for incoming messages. Would love it if anyone can help me out please.

 

Also I get the following message in the openfire logs:

 

 

 

Apr 24, 2015 9:31:40 AM org.jivesoftware.webchat.util.WebLog logError

WARNING: Could not retrieve image: main

remote-server-not-found(404)

  at com.jivesoftware.smack.workgroup.user.Workgroup.getChatSettings(Unknown Source)

  at com.jivesoftware.smack.workgroup.user.Workgroup.getChatSettings(Unknown Source)

  at org.jivesoftware.webchat.util.SettingsManager.getImage(SettingsManager.java:147 )

  at org.jivesoftware.webchat.servlets.ImageServlet.doGet(ImageServlet.java:43)

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

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

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

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

  at org.jivesoftware.webchat.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi ngFilter.java:45)

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

  at org.jivesoftware.webchat.SetupFilter.doFilter(SetupFilter.java:92)

  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)

Message archiving (openfire monitor plugin 1.4.6)

$
0
0

Is there any plan to add subject field into ofMessageArchive  table ?

OpenFire Custom Plugin Deployment on Remote Server

$
0
0

Hi,

       I have developed my own plugin for a chat app that I am making. After testing it successfully on a local openfire deployment, I took the jar for my plugin and uploaded it through Admin Console on another openfire (v 3.11 Alpha) deployment on a remote server. Unfortunately, my plugin does not appear in the list of Plugins (on Admin Console) NEITHER does it perform the task its supposed to.

 

Would really appreciate some help in this matter.

 

Thanks & best Regards.

Openfire meetings - issue with "invite others to conference"

$
0
0


Hello,

I have seen several questions regarding issue with "invite others to conference". I have the same issue.. My openfire is connected to Active Directory and when I want create conference I see following error log :2015.09.29 10:57:47 org.jivesoftware.openfire.ldap.LdapGroupProvider - Could not find user in LDAP ofmeet1887.

 

Specific user was created in AD for conferences instead on standard "focus" and this user was defined in the group chat admins, also in meeting settings and in server parameters for meetings.

 

Please do you have experience how to solve this issue?

 

Thank you very much.

 

Kind Regards

andrej         

Viewing all 488 articles
Browse latest View live