Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all 4979 articles
Browse latest View live

i am trying to connect to openfire using this code

$
0
0

configuration=XMPPTCPConnectionConfiguration.builder();

 

            configuration.setServiceName("192.168.1.53");

            configuration.setPort(5222);

            configuration.setSecurityMode(SecurityMode.disabled);

            //connection.setPacketReplyTimeout(30000);

            connection=new XMPPTCPConnection(configuration.build());

            try {

                connection.setPacketReplyTimeout(30000);

                connection.connect();

getting eror:

04-18 13:13:05.084: E/error(1424): SASLError using DIGEST-MD5: not-authorized


100% CPU Usage

$
0
0

Hello!

 

We have one annoying issue with openfire. We use Openfire with AD auth and external MariaDB 5.5.41 database, using custom certificate, only TLS.

 

First, we are trying 3.9.3 with bundled java on windows server 2012 r2 standart (it's VM with 1 vCpu, 1024 mb RAM), and after 1 day or less openfire service show constant 100% CPU Usage, only helps stop|start service. We are trying update jre version to latest 7u76, but it is not helps.

 

Second, we are install Openfire 3.10 RC on centos7.1 (Linux openfire.local 3.10.0-229.1.2.el7.x86_64 #1 SMP Fri Mar 27 03:04:26 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux) with bundled jre, we have expirience teh same issue - constant 100% cpu usage. Increasing Java Heap upto 384 mb doesn't help.

 

Attach latest logs.

Openfire won't connect to mysql after server reboot

$
0
0

After installing Openfire for the first time, everything went smoothly and the server started without problems. However, after rebooting the server Openfire won't start at all. This is what happens:

 

Starting Openfire

# sudo service openfire start
best java alternative in: /usr/lib/jvm/java-7-openjdk-amd64/jre
Starting openfire: openfire.

 

* and nothing happens *

Error log is here: http://pastebin.com/raw.php?i=Fqt9jwnd

 

It seems that Openfire cannot connect to mysql even though

  • The username and password are correct
  • I can log in to mysql with the same credentials from the command line: # mysql -u openfire -p
  • Mysql is running and is listening to port 3306
  • Mysql user 'openfire'@'localhost' does have sufficient permissions
  • Everything worked perfectly before the reboot...

 

These are my database settings from /etc/openfire/openfire.xml:

<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 encrypted="true">c03b4b0f...</username>    <password encrypted="true">637a448f...</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>

 

I managed to start the server with a trick: I disabled write access to openfire.xml, started Openfire service and re-enabled the write access. Openfire then showed the setup page to which I entered all the settings again - and voilà - the server is up and running. However, nobody can actually log in to the xmpp server. Everybody just gets "Not Authorized" error exept the admin account that was updated during the setup. Deleting and re-installing server certificate on the client doesn't work. The users are still in the database and are listed in the admin panel. This trick also reset all server settings. And if I restart openfire, it's the same thing all over again (access denied for user 'openfire'...)

 

Any help would be very much appreciated!

how to connect to openfire server using smack api 4.1.0

$
0
0

i am trying to connect to my openfire server by this code

String DOMAIN = "my server ip";
AbstractXMPPConnection connection;
try{
 XMPPTCPConnectionConfiguration.Builder config = XMPPTCPConnectionConfiguration.builder();    config.setSecurityMode(SecurityMode.disabled);    config.setUsernameAndPassword("admin@"+DOMAIN, "my password");    config.setServiceName(DOMAIN);    config.setHost(DOMAIN);    config.setPort(5222);    config.setDebuggerEnabled(true);   connection = new XMPPTCPConnection(config.build());   connection.setPacketReplyTimeout(10000);   connection.addConnectionListener(this);     connection.connect();     AccountManager AM = AccountManager.getInstance(connection);     AM.createAccount("userName", "password");     connection.disconnect();     System.out.println(":)");    }  catch(Exception e){  System.out.println(":(");    }

my code is in try catch statement but still after running this code nothing gets printed and i get this errors:

 

Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

Caused by: java.lang.reflect.InvocationTargetException

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

  at java.lang.reflect.Method.invoke(Unknown Source)

  at sun.reflect.misc.Trampoline.invoke(Unknown Source)

  at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

  at java.lang.reflect.Method.invoke(Unknown Source)

  at sun.reflect.misc.MethodUtil.invoke(Unknown Source)

  ... 48 more

Caused by: java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserFactory

  at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitializatio n.java:153)

  at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitializatio n.java:148)

  at org.jivesoftware.smack.SmackInitialization.<clinit>(SmackInitialization.java:11 6)

  at org.jivesoftware.smack.SmackConfiguration.getVersion(SmackConfiguration.java:96 )

  at org.jivesoftware.smack.ConnectionConfiguration.<clinit>(ConnectionConfiguration .java:38)

  at application.XmppFuncs.Register(XmppFuncs.java:56)

  at application.Form1.btn_register_onclick(Form1.java:43)

  ... 57 more

Caused by: java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserFactory

  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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

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

  ... 64 more

 

how can i fix this?

thanks in advance

Using smack 4.1 on android, giving exception in connection

$
0
0

I'm trying to make a connection with GoogleTalk in android using Smack 4.1.

I've followed numerous tutorials examples on the internet yet still I can't seem to make it work.

 

   public static final String HOST = "talk.google.com";

 

    public static final int PORT = 5222;

    public static final String SERVICE = "gmail.com";

    public static final String USERNAME = "myemail@gmail.com";

    public static final String PASSWORD = "mypassword";

 

My above credentials are correct...

 

     XMPPTCPConnectionConfiguration.Builder connConfig = XMPPTCPConnectionConfiguration.builder();

       connConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.required);

       connConfig.setUsernameAndPassword(USERNAME, PASSWORD);

       connConfig.setServiceName(SERVICE);

       connConfig.setHost(HOST);

       connConfig.setPort(PORT);

       connConfig.setDebuggerEnabled(true);

       //setCompressionEnabled(false).build();

       //(HOST, PORT, SERVICE);

       XMPPTCPConnection connection = new  XMPPTCPConnection(connConfig.build());

         try {

           connection.connect();

           Log.i("XMPPChatDemoActivity",  "[SettingsDialog] Connected to "+connection.getHost());

         } catch (XMPPException ex) {

             Log.e("XMPPChatDemoActivity",  "[SettingsDialog] Failed to connect to "+ connection.getHost());

             Log.e("XMPPChatDemoActivity", ex.toString());

             setConnection(null);

         }

         catch(SmackException ex){

             Log.e("XMPPChatDemoActivity",  "[SettingsDialog] Failed to connect to "+ connection.getHost());

             Log.e("XMPPChatDemoActivity", ex.toString());

             setConnection(null);

         }

         catch(IOException ex){

             Log.e("XMPPChatDemoActivity",  "[SettingsDialog] Failed to connect to "+ connection.getHost());

             Log.e("XMPPChatDemoActivity", ex.toString());

             setConnection(null);

         }

 

I get `java.lang.ExceptionInInitializeError`

 

on this line

 

    XMPPTCPConnectionConfiguration.Builder connConfig = XMPPTCPConnectionConfiguration.builder();  //line 184

 

Here is the complete stack trace:

 

     FATAL EXCEPTION: Thread-120

    java.lang.ExceptionInInitializerError

    at com.example.samsungchatexample.MainActivity$4.run(MainActivity.java:184)

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

    Caused by: java.lang.ExceptionInInitializerError

    at org.jivesoftware.smack.SmackConfiguration.getVersion(SmackConfiguration.java:96 )

    at org.jivesoftware.smack.ConnectionConfiguration.<clinit>(ConnectionConfiguration .java:38)

 

    Caused by: java.lang.ExceptionInInitializerError

    at java.lang.Class.classForName(Native Method)

    at java.lang.Class.forName(Class.java:217)

    at org.jivesoftware.smack.SmackInitialization.loadSmackClass(SmackInitialization.j ava:213)

    at org.jivesoftware.smack.SmackInitialization.parseClassesToLoad(SmackInitializati on.java:193)

    at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitializatio n.java:163)

    at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitializatio n.java:148)

    at org.jivesoftware.smack.SmackInitialization.<clinit>(SmackInitialization.java:11 6)

 

    Caused by: java.lang.NoClassDefFoundError: javax.naming.directory.InitialDirContext

    at org.jivesoftware.smack.util.dns.javax.JavaxResolver.<clinit>(JavaxResolver.java :50)

 

 

Can someone please help me with this ? I've tested this on `KitKat` and `JellyBean`

Same exception on both so this is not a glitch with context to OS versions. What am I missing ?

 

note: I've tested it on emulator as well as on real device.

 

**EDIT**

 

I've added all the jars which were included in Smack 4.1

Smack 4.1 in android, getting exception "VerifyError" org/jivesoftware/smack/sasl/javax/SASLJavaXMechanism

$
0
0

This is the complete StackTrace, i saw on internet some where that Flow also faced this issue some time in 2011 using aSmack
but I'm not using aSmack. Using Smack 4.1 along with jxmpp:

 

 

Code:

 

   XMPPTCPConnectionConfiguration.Builder connConfig = XMPPTCPConnectionConfiguration.builder();
   connConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.required);
   connConfig.setUsernameAndPassword(USERNAME, PASSWORD);
   connConfig.setServiceName(SERVICE);
   connConfig.setHost(HOST);
   connConfig.setPort(PORT);
   connConfig.setDebuggerEnabled(true);

 

 

 

Exception is on this line:

 

XMPPTCPConnectionConfiguration.Builder connConfig = XMPPTCPConnectionConfiguration.builder();

 

Stack Trace:

 

Process: com.example.samsungchatexample, PID: 2142

 

java.lang.VerifyError: org/jivesoftware/smack/sasl/javax/SASLJavaXMechanism

     at org.jivesoftware.smack.sasl.javax.SASLJavaXSmackInitializer.initialize(SASLJava XSmackInitializer.java:28)

    at org.jivesoftware.smack.SmackInitialization.loadSmackClass(SmackInitialization.j ava:232)

    at org.jivesoftware.smack.SmackInitialization.parseClassesToLoad(SmackInitializati on.java:193)

    at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitializatio n.java:163)

    at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitializatio n.java:148)

     at org.jivesoftware.smack.SmackInitialization.<clinit>(SmackInitialization.java:11 6)

     at org.jivesoftware.smack.SmackConfiguration.getVersion(SmackConfiguration.java:96 )

     at org.jivesoftware.smack.ConnectionConfiguration.<clinit>(ConnectionConfiguration .java:38)

     at com.example.samsungchatexample.MainActivity$4.run(MainActivity.java:202)

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

 

These are the jars which i have in project buildpath .. am i missing something ??

 

smack libs.png

 

 

 

 

 

3.10 RC LDAP Issue

$
0
0


After upgrading from 3.9.1 to 3.10 the Spark client receives "Invalid username or Password" I am using Windows 2008 R2 Active Directory. This worked fine under 3.9.1. What is even more puzzling is that SparkWeb CAN login using LDAP credentials it is the Fat Client giving me trouble.

How do you enable node creation?

$
0
0

I've got this weird issue with my server. On my home server, my android application works perfectly; it can connect, register, create nodes and get nodes.

However, on a server I just recently bought, I'm unable to create or get nodes. My application is able to register accounts and even log into the server, but can't create a node.

 

Is there some setting I need to activate to enable nodes? I can't seem to find anything different between my home server settings and my purchased server settings.

All ports are open by the way.

 

Any help is appreciated.

 

Thank you!


smack4.1 android client connection for openfire server

$
0
0

Hi All,

I want to develop chat app in android. 

So, I am using smack4.1 version. But i am unable to connect openfire server(which is located my local) using smack4.1.

Could you please provide sample code for connecting openfire server from android client?

And could you provide link for smack4.1 API.

 

Thanks in advance...

What is wrong with my BOSH Configuration ?

$
0
0

Hi guys. I looked all over the net, removed, changed things, and, of course, got confused. Could you please tell me what is wrong with my code ? Thank you for your time.

 

package naur.naur;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;


import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.bosh.BOSHConfiguration;
import org.jivesoftware.smack.bosh.XMPPBOSHConnection;


import java.io.IOException;


public class Login extends Activity {


    private static EditText Username, Password;    private Button login;    @Override    protected void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        setContentView(R.layout.login);        Username = (EditText) findViewById(R.id.Login_Username);        Password = (EditText) findViewById(R.id.Login_Password);        login = (Button) findViewById(R.id.LogIn_Button);    }    BOSHConfiguration.Builder boshConfiguration = BOSHConfiguration.builder()            .setUsernameAndPassword(String.valueOf(Username),String.valueOf(Password))            .setHost("www.////.mobi")            .setServiceName("////.mobi")            .setFile("/http-bind/")            .setPort(7070)            .setUseHttps(false);    XMPPBOSHConnection connection = new XMPPBOSHConnection(boshConfiguration.build());        {   login.setOnClickListener(new View.OnClickListener() {            @Override            public void onClick(View v) {            try {                connection.connect();            } catch (SmackException | XMPPException | IOException e) {                throw new IllegalStateException(e);            }            try {                connection.login();            } catch (SmackException | XMPPException | IOException e) {                throw new IllegalStateException(e);        }        }    });
}}

 

I get this error when I click on my LogIn_Button and then the app crashes :

 

04-20 12:27:05.463  22268-22268/naur.naur E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.IllegalStateException: Could not execute method of the activity            at android.view.View$1.onClick(View.java:2154)            at android.view.View.performClick(View.java:2538)            at android.view.View$PerformClick.run(View.java:9152)            at android.os.Handler.handleCallback(Handler.java:587)            at android.os.Handler.dispatchMessage(Handler.java:92)            at android.os.Looper.loop(Looper.java:130)            at android.app.ActivityThread.main(ActivityThread.java:3687)            at java.lang.reflect.Method.invokeNative(Native Method)            at java.lang.reflect.Method.invoke(Method.java:507)            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)            at dalvik.system.NativeStart.main(Native Method)     Caused by: java.lang.reflect.InvocationTargetException            at java.lang.reflect.Method.invokeNative(Native Method)            at java.lang.reflect.Method.invoke(Method.java:507)            at android.view.View$1.onClick(View.java:2149)            at android.view.View.performClick(View.java:2538)            at android.view.View$PerformClick.run(View.java:9152)            at android.os.Handler.handleCallback(Handler.java:587)            at android.os.Handler.dispatchMessage(Handler.java:92)            at android.os.Looper.loop(Looper.java:130)            at android.app.ActivityThread.main(ActivityThread.java:3687)            at java.lang.reflect.Method.invokeNative(Native Method)            at java.lang.reflect.Method.invoke(Method.java:507)            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)            at dalvik.system.NativeStart.main(Native Method)     Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.            at android.view.ViewGroup.addViewInner(ViewGroup.java:1976)            at android.view.ViewGroup.addView(ViewGroup.java:1871)            at android.view.ViewGroup.addView(ViewGroup.java:1851)            at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:228)            at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:218)            at android.app.Activity.setContentView(Activity.java:1668)            at java.lang.reflect.Method.invokeNative(Native Method)            at java.lang.reflect.Method.invoke(Method.java:507)            at android.view.View$1.onClick(View.java:2149)            at android.view.View.performClick(View.java:2538)            at android.view.View$PerformClick.run(View.java:9152)            at android.os.Handler.handleCallback(Handler.java:587)            at android.os.Handler.dispatchMessage(Handler.java:92)            at android.os.Looper.loop(Looper.java:130)            at android.app.ActivityThread.main(ActivityThread.java:3687)            at java.lang.reflect.Method.invokeNative(Native Method)            at java.lang.reflect.Method.invoke(Method.java:507)            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)            at dalvik.system.NativeStart.main(Native Method)

Are VCards working on Smack? Any alternatives?

$
0
0

Hi, I have been having trouble getting VCards to work. Saving my own VCard seems to work fine, however when trying to retrieve the VCard for another user, I get this error:

 

XMPPError: feature-not-implemented - cancel

 

Are VCards currently operational or is it still unimplemented?

 

Are there alternatives to VCards? I would like to query the server for information on a particular user when another user wants to look at their profile.

 

Thank you

Openfire 3.10rc and fastpath.

$
0
0

helloto all,

 

fastpathpluginis compatible withopenfire3.10rc?

Bot File Reciever / File Transfer

$
0
0

Hi Guys

I am trying to build a bot which is connected as a component to an openfire 3.9.3 server using smack 4.1.0.
This smack has to receive a file an process it.

The thing it's that spark client says "The user is offline. Will auto-send "xyz.jpg" when user comes back online".
And there is no transfer.


What am i doing wrong?
How can i enable the presence on a component?

Any help will be apreciate..

Build errors for Smack 4.1

$
0
0

I have cloned the Smack repository and trying to build it using gradle tasks, but unable to solve the errors.

Following is a dump of the commands and results :

 

D:\Android\android tools and libraries\Smack\Smack>gradle clean
BUILD SUCCESSFUL

 

 

D:\Android\android tools and libraries\Smack\Smack>gradle build

:smack-core:test

java.lang.RuntimeException: java.lang.InterruptedException

        at org.jivesoftware.smack.PacketCollectorTest$1.run(PacketCollectorTest.

java:96)

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

Caused by: java.lang.InterruptedException

        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject

.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2017)

        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject

.await(AbstractQueuedSynchronizer.java:2052)

        at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:

374)

        at org.jivesoftware.smack.PacketCollector.nextResultBlockForever(PacketC

ollector.java:150)

        at org.jivesoftware.smack.PacketCollectorTest$1.run(PacketCollectorTest.

java:91)

        ... 1 more

D:\Android\android tools and libraries\Smack\Smack\smack-debug-slf4j\src\main\ja

va\org\jivesoftware\smackx\debugger\package-info.java:1: error: malformed floati

ng point literal

../../../../../../../../smack-debug/src/main/java/org/jivesoftware/smackx/debugg

er/package-info.java

^

D:\Android\android tools and libraries\Smack\Smack\smack-debug-slf4j\src\main\ja

va\org\jivesoftware\smackx\debugger\package-info.java:1: error: malformed floati

ng point literal

../../../../../../../../smack-debug/src/main/java/org/jivesoftware/smackx/debugg

er/package-info.java

   ^

D:\Android\android tools and libraries\Smack\Smack\smack-debug-slf4j\src\main\ja

va\org\jivesoftware\smackx\debugger\package-info.java:1: error: malformed floati

ng point literal

../../../../../../../../smack-debug/src/main/java/org/jivesoftware/smackx/debugg

er/package-info.java

      ^

D:\Android\android tools and libraries\Smack\Smack\smack-debug-slf4j\src\main\ja

va\org\jivesoftware\smackx\debugger\package-info.java:1: error: malformed floati

ng point literal

../../../../../../../../smack-debug/src/main/java/org/jivesoftware/smackx/debugg

er/package-info.java

         ^

D:\Android\android tools and libraries\Smack\Smack\smack-debug-slf4j\src\main\ja

va\org\jivesoftware\smackx\debugger\package-info.java:1: error: malformed floati

ng point literal

../../../../../../../../smack-debug/src/main/java/org/jivesoftware/smackx/debugg

er/package-info.java

            ^

D:\Android\android tools and libraries\Smack\Smack\smack-debug-slf4j\src\main\ja

va\org\jivesoftware\smackx\debugger\package-info.java:1: error: malformed floati

ng point literal

../../../../../../../../smack-debug/src/main/java/org/jivesoftware/smackx/debugg

er/package-info.java

               ^

D:\Android\android tools and libraries\Smack\Smack\smack-debug-slf4j\src\main\ja

va\org\jivesoftware\smackx\debugger\package-info.java:1: error: malformed floati

ng point literal

../../../../../../../../smack-debug/src/main/java/org/jivesoftware/smackx/debugg

er/package-info.java

                  ^

D:\Android\android tools and libraries\Smack\Smack\smack-debug-slf4j\src\main\ja

va\org\jivesoftware\smackx\debugger\package-info.java:1: error: malformed floati

ng point literal

../../../../../../../../smack-debug/src/main/java/org/jivesoftware/smackx/debugg

er/package-info.java

                     ^

D:\Android\android tools and libraries\Smack\Smack\smack-debug-slf4j\src\main\ja

va\org\jivesoftware\smackx\debugger\package-info.java:1: error: class, interface

, or enum expected

../../../../../../../../smack-debug/src/main/java/org/jivesoftware/smackx/debugg

er/package-info.java

                        ^

9 errors

:smack-debug-slf4j:compileJava FAILED

 

 

FAILURE: Build failed with an exception.

 

 

* What went wrong:

Execution failed for task ':smack-debug-slf4j:compileJava'.

> Compilation failed; see the compiler error output for details.

 

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug

option to get more log output.

 

 

BUILD FAILED

Can't create group chat

$
0
0

I use aSmack 3.2.2 but server is last, I can't create group chat, how i do ?

i try from this Smack Extensions User Manual , How i change (necessary aSmack 3.2.2)

Help me, please Thanks.


add JVMROUTE to AJP13 for web server to OpenFire load balancing?

$
0
0

Hello,

 

I have a web app that connects to OpenFire over AJP13.

 

The traffic is forwarded to OpenFire from IIS using the Jakarta ISAPI redirect module.

Works great when connecting to one dedicated OpenFire server.

 

I have a customer that would like to enable some form of load balancing and fail over.

 

In the past I've been able to add a JVMROUTE to AJP13 connections to allow the Jakarta Redirect to perform some load balancing.

 

Is this possible with OpenFire when communication is over AJP13?

 

thanks!

Smack - SSL and Proxy Socks

$
0
0

Hello everyone,

 

I tried to use Smack API with SSL and proxy socks5. I found some examples with SSL setting config.setSocketFactory(SSLSocketFactory.getDefault()).

But when I use ConnectionConfiguration with ProxyInfo, I have some troubles like :

 

AVERTISSEMENT: Connection closed with error

java.io.EOFException: input contained no data

 

In my environment, I set up Dante server and, in log file, I have this information : broken pipe.

 

Do you some ideas to help me ?

 

Thanks a lot!

 

Ronny.

Dynamic Active Directory Groups

$
0
0

We are starting to play around with dynamic groups in Active Directory (2012 functionality).  They show up in AD as Query-based Distribution Groups.  however, they don't seem to be picked up by Openfire at all while the security and regular distribution groups show up without issue.  Is this a shortcoming of Openfire or is there additional configuration to get this working?

NoResponseException smack 4.1.1

$
0
0

Hi, I am recieving a NoResponseException when making a xmpp connection. I am not expecting a response in the application after I send a message through the connection. Below is where I am using the code to make the connection and the call to the connect method. It seems that I get a response later after 5 min instead of 5s. Is there away around this besides setting the packet reply time out to a greater amount?

 

Thanks in advance,

 

James B

 

 

 

androidNotificationHandler.connect(senderId, password);

 

 

 

  public void connect(long senderId, String apiKey)

             throws XMPPException, IOException, SmackException {

      XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()

    

      .setSecurityMode(XMPPTCPConnectionConfiguration.SecurityMode.disabled)

      .setPort(AndroidNotificationHandler.GCM_PORT)

      .setHost(AndroidNotificationHandler.GCM_SERVER)

      .setSocketFactory(SSLSocketFactory.getDefault())

      .setServiceName(AndroidNotificationHandler.GCM_SERVER)

      .setDebuggerEnabled(true)

      .build();   

    

         connection = new XMPPTCPConnection(config);

         connection.setPacketReplyTimeout(10000L);

         connection.removeAllStanzaAcknowledgedListeners();

         connection.connect();

         connection.login(senderId + "@gcm.googleapis.com", apiKey);

  }   

 

 

 

 

11:06:11 PM SENT (0): <stream:stream xmlns='jabber:client' to='gcm.googleapis.com' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>

11:06:11 PM RECV (0): <stream:stream from="gcm.googleapis.com" id="08EF9F0DE2952851" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">

11:06:11 PM RECV (0): <stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-OAUTH2</mechanism><mechan ism>X-GOOGLE-TOKEN</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream: features>

11:06:11 PM SENT (0): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>ADgzNjA5MjE1Nzk4OUBnY20uZ29vZ2xlYXBpcy5jb20AQUl6YVN5RGNleXFfM DNLNkhsM0RMN2hrWUdlYW1nM3d2d3JzU09V</auth>

11:06:12 PM RECV (0): <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>

11:06:12 PM SENT (0): <stream:stream xmlns='jabber:client' to='gcm.googleapis.com' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' id='08EF9F0DE2952851' xml:lang='en'>

11:06:12 PM RECV (0): <stream:stream from="gcm.googleapis.com" id="446DF2621F37A2D7" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">

11:06:12 PM RECV (0): <stream:features><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features>

11:06:12 PM SENT (0): <iq id='PPgTi-4' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>Smack</resource></bind></iq>

11:06:12 PM RECV (0): <iq id="PPgTi-4" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>836092157989@gcm.googleapis.com/SmackF34A92C9</jid></bind></iq>

11:06:12 PM RECV (0): 

11:06:12 PM SENT (0): <iq id='PPgTi-6' type='set'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>

11:06:12 PM RECV (0): <iq type="result" id="PPgTi-6"/>

11:06:12 PM User logged (0): 836092157989@gcm.googleapis.com:5235/SmackF34A92C9

11:06:12 PM XMPPConnection authenticated (0)

11:06:12 PM SENT (0): <iq id='PPgTi-8' type='get'><query xmlns='jabber:iq:roster'></query></iq>

11:06:12 PM SENT (0): <presence id='PPgTi-9'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='os2Kusj3WEOivn5n4iFr/ZEO8ls='/></presence>

2015-04-21 23:06:12,318 DEBUG AndroidNotification com.gamerparentsinc.notification.AndroidNotification - Sending notification, Testing notification for token 123456

11:06:12 PM SENT (0): <message id='PPgTi-10'><gcm xmlns='google:mobile:data'>{"delay_while_idle":true,"data":{"EmbeddedMessageId" :"messageId-88596421-f325-400d-92e1-595e4224d6a2","message":"Testing notification"},"time_to_live":10000,"message_id":"messageId-88596421-f325-400d- 92e1-595e4224d6a2","to":"123456"}</gcm></message>

11:06:12 PM RECV (0): <message><data:gcm xmlns:data="google:mobile:data">{"message_id":"messageId-88596421-f325-400d-92e 1-595e4224d6a2","from":"123456","error_description":"","error":"BAD_REGISTRATION ","message_type":"nack"}</data:gcm></message>

Apr 21, 2015 11:06:22 PM org.jivesoftware.smack.roster.Roster$3 processException

SEVERE: Exception reloading roster

org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 10000ms (~10s). Used filter: IQReplyFilter: iqAndIdFilter (AndFilter: (OrFilter: (IQTypeFilter: type=error, IQTypeFilter: type=result), StanzaIdFilter: id=PPgTi-8)), : fromFilter (OrFilter: (FromMatchesFilter (full): null, FromMatchesFilter (bare): 836092157989@gcm.googleapis.com, FromMatchesFilter (full): gcm.googleapis.com)).

  at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackExceptio n.java:106)

  at org.jivesoftware.smack.AbstractXMPPConnection$6.run(AbstractXMPPConnection.java :1438)

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

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

  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201 (ScheduledThreadPoolExecutor.java:180)

  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:293)

  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)

Smack Packet Writer

$
0
0

Hi, I am recieving this exception and I really have no idea where to look for the problem, or what may be causing this. If someone can point me in the right direction that would be great. Can someone give me a common reason why this exception would be thrown?

 

Thanks in advance,

 

James B

 

 

 

15-Apr-2015 21:00:11.047 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Smack Packet Writer (14)] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

sun.misc.Unsafe.park(Native Method)

java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)

java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Abs tractQueuedSynchronizer.java:2039)

org.jivesoftware.smack.util.ArrayBlockingQueueWithShutdown.take(ArrayBlockingQu eueWithShutdown.java:289)

org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.nextStreamElement(XMP PTCPConnection.java:1286)

org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.writePackets(XMPPTCPC onnection.java:1303)

org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.access$2700(XMPPTCPCo nnection.java:1166)

org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter$1.run(XMPPTCPConnecti on.java:1214)

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

Viewing all 4979 articles
Browse latest View live




Latest Images