Quantcast
Channel: Ignite Realtime: Message List
Viewing all 11413 articles
Browse latest View live

Where is a web client using web socket?

$
0
0

@I am beginner of openfire and xmpp.

I want to make a web chatting application.

So I searched the web chatting data and finally get openfire server and web smack.

By the way, web smack uses adobe flash.

I don't like adobe flash,because my web chatting application must run at mobile device.

Where is a web client using web socket?

Please help me

 

Message was edited by: rabit


Strophe/Openfire detect user(receiver) is offline/Disconnected?

$
0
0

I am just starting new on Openfire and using Strophe, trying to figure out a structure that can trigger GCM/APNS if a user if offline - to notify a user that they have a message so they will open a phonegap app, which then the connection will be back and the message pass through.

 

I am thinking, if i use strophe, and when i send a message out to another user(receiver in the one to one chat), i detect if the "receiver" is off/online or disconnected. If the receiver status is offline or if the receiver is not connected, then i trigger a GCM/APNS script.

 

I read about the Idle Clients Detection Settings, so does it mean the connection will be disconnected if the client is idled for a certain amount of time? And then if the receiver lost internet connection, there are no activity(or heartbeat packets) their connection will be disconnected, and i can use strophe to detect it? And i know the receiver(user) is not connected?

 

 

My question is can strophe do that with Openfire?(To detect of a specific id/username is on/offline or not connected?)

 

Or would i have to do it another way maybe with some plugin?

 

Thanks

Re: Where is a web client using web socket?

$
0
0

You are probably talking about SparkWeb, which is old, not developed anymore client. There are no web client on this site.

Disable Logging and stop Server [QNAP]

$
0
0

Hi,

 

i installed Openfire with the .tar.gz packacke on my QNAP NAS and hope you can help me.

 

To make use of the HDD Standby I want to disable all the logging functions. How can i do that? I have set the MaxFileSize in the log4j.xml to 0KB but it seems that that isnt working as i thought, now files as info.log1 are created. And is there anything else i should deactivate to prevent data written to the HDDs? I also set the Database to readonly which helped alot but maybe theres more.

 

The other thing is, how can i stop the server? I can start openfire with the usual command /path/openfire start but if I want to stop it, its always says The Daemon is not running and openfire keeps running.

 

Please help, thanks :-)

comment importer smack-4.1.3 dans android studio

$
0
0

Bonjour, s'il vous plait je suis nouveau dans le développement android. je viens de télécharger le package smack-4.1.3 mais il y a trop de .jar je sais pas lesquels je vais importer dans mon android studio.

merci

Is it possible to check a specific user's connection status??

$
0
0

I am wondering if it is possible to use strophe.js or converse.js to check if a specific user/id is connected(connection status)??

 

I read in the documentation that connection status constants are the responds from the connection function. But is it possible to just check a user's connection status(Any user) without connecting??

 

I would want to call a function with the specific user id/name then it returns me the user's connection status.

 

 

I read further, and wondering if i can use ping to do that??

And just set the "serviceJID" to the receiver JID?? So then i can know if that receiver is connected or not?

 

 

connection.ping.ping(
  
"serviceJID@server.org",
  success_callback
,
  error_callback
,
  timeout
);

Re: comment importer smack-4.1.3 dans android studio

Smack: StanzaListener.processPacket() are not called on GCM incoming message.

$
0
0

Hello.

 

I'm programming GCM(Google Cloud Messaging) backend server with Smack 4.1.3.

Problem is when my backend receives first GCM incoming message, processPacket() doesn't called for that message.

But when second message arrives, processPacket() called for FIRST message.

Then third message comes, processPacket() doesn't called.

And on fourth message, processPacket() called for THIRD message.

 

My console debug log prints like this.

07:27:51 User logged (0): MY_SENDER_ID@gcm.googleapis.com:5235/Smack6DCD9C77

07:27:51 XMPPConnection authenticated (0)

// First GCM incoming message.

07:27:56 RECV (0): <message to="MY_SENDER_ID@gcm.googleapis.com" from="devices@gcm.googleapis.com" ... "message_id":"15" ... </message>

// processPacket doesn't called

// Second GCM message comes.

07:27:58 RECV (0): <message to="MY_SENDER_ID@gcm.googleapis.com" from="devices@gcm.googleapis.com" ... "message_id":"16" ... </message>

// Then processPacket() for FIRST message called immediately. processPacket() just prints received XML message.

Received:<message to="MY_SENDER_ID@gcm.googleapis.com" from="devices@gcm.googleapis.com" ... "message_id":"15" ... </message>

// Third GCM message.

07:28:04 RECV (0): <message to="MY_SENDER_ID@gcm.googleapis.com" from="devices@gcm.googleapis.com" ... "message_id":"17" ... </message>

// processPacket doesn't called

// Fourth GCM message.

07:28:05 RECV (0): <message to="MY_SENDER_ID@gcm.googleapis.com" from="devices@gcm.googleapis.com" ... "message_id":"18" ... </message>

// processPacket() for THIRD message called.

Received:<message to="MY_SENDER_ID@gcm.googleapis.com" from="devices@gcm.googleapis.com" ... "message_id":"17" ... </message>

...

 

I googled about this and found same question about this on stackoverflow.

The link is this.

http://stackoverflow.com/questions/31583930/not-able-receiving-all-messages-from -google-cloud-messaging-with-ccs

My code is nearly identical to above link's code.

 

Is it bug or am I missing something?

Thank you for your help.


Re: Smack: StanzaListener.processPacket() are not called on GCM incoming message.

$
0
0

Could you attach a debugger an see why the listener is not invoked for the second and fourth stanza, and only for the first/third after the second/fourth arrived?

Keystore password change causes Openfire to fail

$
0
0

Hi All,

 

Specifications:

Openfire 3.10.2 on Windows Server 2012 R2 Std.

StartCom SSL certificate imported and valid

Web access on 9091 functional and certificate presenting as valid

XMPP access on 5222 functional and certificate presenting as valid

 

I've made it to the point where my Openfire installation if functioning for my purposes, and I wanted to lock down the keystore and truststore with a randomly-generated password. I use keytool to change the default password on both the truststore and keystore from 'changeit' to a random password generated by KeyPass. Passwords are 16 characters in length with alphanumerics and symbols.

 

Per the documentation, I modified the xmpp.socket.ssl.trustpass and xmpp.socket.ssl.keypass values from the web console with the passwords I generated from KeyPass. I also selected to encrypt these values.

 

At this point, after a service restart, the web interface is unavailable on both 9090 and 9091 and XMPP access with or without encryption on both 5222 and 5223 is not functional.

 

I am seeing the following error in the error logs:

 

2015.08.23 09:53:13 org.jivesoftware.openfire.session.LocalClientSession - Client session rejected. TLS is required but no certificates were created.

 

No other logs indicate an error.

 

My question is twofold:

 

Is there a syntactical limitation for the keystore password? Can it not contain certain characters or is it limited to a specific length?

 

And two, how do I reset my server properties to remove the trustpass and keypass values without having access to the web console? I changed the passwords back to 'changeit' in the local console, but the web server is still not accessible. It is, however, showing as listening on 9090 in netstat.

 

Any help would be appreciated.

 

Update #1:

Foiled by the Windows firewall! I managed to get to the web console on 9090, but now I'm getting HTTP Error 500 Java IO exception after login.

 

Update #2:

Apparently my initial keystore change back to the default was not successful and the old "complex" password was still intact. I changed the passwords for the keystore and truststore back to the default, and I'm back in the console.

 

My previous question, however, still remains: is there a limitation for the keystore password?

 

Update #3

I'm not sure if there's something programmatically flawed or if I'm doing something improper. I set the keystore password to just a very basic 'welcome1' without any success. The same issue occurs each time. Is anyone aware of a problem with protecting the keystore with a password other than the default of 'changeit?'

 

At this point, I'm going to leave the functional installation as-is with the defaults.

Re: Openfire PubSub node item list empty after item publication

Re: smack4.1.3, android i need a example

$
0
0

thank you very much;

 

Does smack4.1.3 need a JDK7 version?

 

our project  is jdk6

 

i haved change smack3.

Re: comment importer smack-4.1.3 dans android studio

$
0
0

Merci beaucoup pour votre aide.

Mais j'ai rencontré un autre problème. au fait j'arive pas à me connecter à mon serveur openfire depuis mon téléphone android sur  sur le quel j'ai installer mon apk que l'emulateur ma générer. voici mon code

 

public class AccueilActivity extends Activity {

   TextView t = (TextView) findViewById(R.id.textView1);
   public static final String HOST = "Lawalist-PC";

   public static final int PORT = 5222;

   public static final String SERVICE = "Lawalist-PC";

   private final static String LOGIN = "lawalist";

   private final static String PASSWD = "lawalist";

 

 

   @Override
   protected void onCreate(Bundle savedInstanceState) {

   super.onCreate(savedInstanceState);

  setContentView(R.layout.accueil);

   final Button loginButton = (Button) findViewById(R.id.connexion);

  loginButton.setOnClickListener(new View.OnClickListener() {

 

   public void onClick(View v) {

  EditText t = (EditText)findViewById(R.id.textView1);

  ConnectionConfiguration config = new ConnectionConfiguration(HOST, PORT);

  XMPPConnection connection = new XMPPConnection(config);

   try {

  SASLAuthentication.supportSASLMechanism("PLAIN", 0);

  config.setSASLAuthenticationEnabled(true);

  connection.connect();

  connection.login(LOGIN, PASSWD);

  t.setText("Connection ok");
   } catch (Exception ex) {

     t.setText("Failed to connect ");
   }
   }

  });

  }

}

 

Quand je compile il n'y a aucun problème, mais quant j'installe l'apk généré lors de la compilation sur mon téléphone, c'est toujours le message "Failed to connect"  qui s'affiche. Le téléphone et le PC sur lequel j'ai installé le serveur openfire sont sur le même réseau. s'il vous plais aidez moi, comment puis-je raisoudre ce problème.

Problème de connexion avec l'api smack au serveur openfire

$
0
0

Bonjour, je suis entrain de développer une application de messagerie utilisant l'api smack et un serveur openfire. je développe sur android studio, j'ai pus importer l'api sans problème.

voici mon code

 

import org.jivesoftware.smack.SASLAuthentication;

import org.jivesoftware.smack.SmackConfiguration;

import org.jivesoftware.smack.XMPPConnection;

import org.jivesoftware.smack.ConnectionConfiguration;

import android.app.Activity;

import android.os.Bundle;

import android.view.Menu;

import android.view.MenuItem;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

 

public class AccueilActivity extends Activity {

public static final String HOST = "192.168.1.45";

public static final int PORT = 5222;

public static final String SERVICE = "192.168.1.45";

private final static String LOGIN = "user1";

private final static String PASSWD = "user1user1";

 

protected void onCreate(Bundle savedInstanceState) {

   super.onCreate(savedInstanceState);

  setContentView(R.layout.accueil);

   final Button loginButton = (Button) findViewById(R.id.connexion);

  loginButton.setOnClickListener(new View.OnClickListener() {

 

   public void onClick(View v) {

TextView t = (TextViewt)findViewById(R.id.textView1);

ConnectionConfiguration config = new ConnectionConfiguration(HOST, PORT, SERVICE);

XMPPConnection connection = new XMPPConnection(config);

try {

  SASLAuthentication.supportSASLMechanism("PLAIN", 0);

  config.setSASLAuthenticationEnabled(true);

   connection.connect();

   connection.login(LOGIN, PASSWD);

    t.setText("Connection ok ");
    } catch (Exception ex) {

     t.setText("Connection non ok ");

   }

  });

}

}

 

Quant je compile tout marche bien, mais quand j'installe l'apk généré par émulateur sur mon téléphone android, j'arrive pas à me connecter au serveur. c'est toujours le message d'exception qui est affiché "Connection non ok ". Mon téléphone et le PC sur lequel j'ai installé le serveur openfire sont tous connectés sur le même réseau.

S'il vous plais pouvez m'aider, c'est mon plus grand problème ça fais des jours que je cherche la solution mais je n'ai rien trouvé.

Re: Smack: StanzaListener.processPacket() are not called on GCM incoming message.

$
0
0

Hello.

 

I attached debugger and found some info.

When first message arrives, then call chain goes down like this.

 

AbstractXMPPConnection.parseAndProcessStanza() called.

->

PacketParserUtils.parseStanza(parser)

->

PacketParserUtils.parseMessage()

->

PacketParserUtils.parseExtensionElement()

->

ParserUtils.forwardToEndTagOfDepth()

->

MXParser.more()

->

org.jivesoftware.smack.util.ObservableReader

line #40 public int read(char[] cbuf, int off, int len) throws IOException {    // len: 6565  off: 1627  cbuf: char[8192]@5721

line #41: int count = wrappedReader.read(cbuf, off, len);   // len: 6565  count: 387

line #42: if (count > 0) {

line #43:     String str = new String(cbuf, off, count);  // off: 1627  count: 387  cbuf: char[8192]@5721

 

I omitted some method in call chain... But important thing is when FIRST message comes, it eventually comes down to line #41.

When I did 'Step Into' at line #41. My debugging session ends. I don't know whether IntelliJ IDEA can't go into JAVA core library or maybe I'm doing something wrong... anyway, It stops there.

 

And then, when I send SECOND message from android terminal to GCM, my debugger point starts at line #42 immediately.

It's strange... and I don't have no idea. But it really is. and from there execution continues.

 

line #43, count: 387 is exactly incoming message's length.

incoming message looks like this

 

<message to="MY_SENDER_ID@gcm.googleapis.com" from="devices@gcm.googleapis.com" type="normal"><gcm xmlns="google:mobile:data">{"data":{"hello":"world"},"time_to_live":30,"from":" c7Nz3yaqhLk:APA91bHmKjY9vNPgeCScrOnxjt_GHcX1uZBVbZ9aFQdH-_1IzO5Dl_NYuRIuJXYkTOq1 FNJv-Ri8GmaLXvIL7ZCAWjulEWPinRWRd3vwG7RtW0sdV4sXZ54","message_id":"7","category" :"com.mycompany"}</gcm></message>

 

I replaced some word for personal info, but above message's length is exactly 387.

 

JDK version is 8.

I changed version to 7 and same thing happens.

 

Do you have any idea?

Thank you for your concern.


Re: Idle Connection not disconnecting according to the second set

$
0
0

What client do you use? It works with Spark. A client should respond to ping, either with a proper reply or at least with an error.

Re: Idle Connection not disconnecting according to the second set

$
0
0

I am connecting Openfire with Strophe.js. But even if there is no proper ping respond, it should then automatically disconnect the connection right? I am purposely testing it with no ping respond at the moment.

Re: Idle Connection not disconnecting according to the second set

$
0
0

Well,  can't comment on that anything more. Not a developer myself, but as i said this works fine with Spark. When i tried to set low idle value when we were still using Exodus client, then clients started to disconnect and reconnect like hell, because Exodus didn't supported ping. Maybe when you close browser a tcp connection is still alive. Try pulling out the network cord for testing network loss. That's how i test.

Re: OpenFire 3.10.2 + OpenFire Meetings 0.1.8 HTTP ERROR 404

$
0
0

Thank you.Theurlforofmeetwas incorrect.

By accessingthe roomtheminiatureof the second membernopicture appears.

Would you help me?

Queue Full error

$
0
0

Any idea what this is all about?

 

2015.08.24 16:16:08 org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl - Internal server error

java.lang.IllegalStateException: Queue full

  at java.util.AbstractQueue.add(AbstractQueue.java:98)

  at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.logConversation(Mult iUserChatServiceImpl.java:1241)

  at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.broadcast(LocalMUCRoom.java:1201 )

  at org.jivesoftware.openfire.muc.cluster.BroadcastMessageRequest$1.run(BroadcastMe ssageRequest.java:69)

  at org.jivesoftware.openfire.muc.cluster.MUCRoomTask.execute(MUCRoomTask.java:85)

  at org.jivesoftware.openfire.muc.cluster.BroadcastMessageRequest.run(BroadcastMess ageRequest.java:67)

  at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.broadcast(LocalMUCRoom.java:1168 )

  at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.send(LocalMUCRoom.java:1040)

  at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.sendPublicMessage(LocalMUCRoom.j ava:1015)

  at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:289)

  at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:194)

  at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.processPacket(MultiU serChatServiceImpl.java:331)

  at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents .process(InternalComponentManager.java:591)

  at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToComponent(RoutingTableImp l.java:401)

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

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

  at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:80)

  at org.jivesoftware.openfire.net.StanzaHandler.processMessage(StanzaHandler.java:3 66)

  at org.jivesoftware.openfire.net.ClientStanzaHandler.processMessage(ClientStanzaHa ndler.java:107)

  at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:220)

  at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:187)

  at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandl er.java:177)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceive d(DefaultIoFilterChain.java:690)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(D efaultIoFilterChain.java:417)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilt erChain.java:47)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceiv ed(DefaultIoFilterChain.java:765)

  at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapte r.java:109)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(D efaultIoFilterChain.java:417)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilt erChain.java:47)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceiv ed(DefaultIoFilterChain.java:765)

  at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flus h(ProtocolCodecFilter.java:407)

  at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:236)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(D efaultIoFilterChain.java:417)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilt erChain.java:47)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceiv ed(DefaultIoFilterChain.java:765)

  at org.apache.mina.filter.ssl.SslHandler.flushScheduledEvents(SslHandler.java:322)

  at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:497)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(D efaultIoFilterChain.java:417)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilt erChain.java:47)

  at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceiv ed(DefaultIoFilterChain.java:765)

  at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74)

  at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)

  at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(Ordere dThreadPoolExecutor.java:769)

  at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(Order edThreadPoolExecutor.java:761)

  at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThr eadPoolExecutor.java:703)

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

Viewing all 11413 articles
Browse latest View live




Latest Images