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

openfire meetings 0.3.23

$
0
0

Hi,

 

I've tried the latest plugin from community-plugins/openfire_4_0_2/target/openfire/plugins at master · igniterealtime/community-plugins in both openfire 4.0.1 and 4.0.3 but I can't get past the index.html main page. It just constantly seems to hang and I can't click on anything. Debugging the page it seems to get stuck in moderator.js a lot:

 

    my.isModerator = function () {

        return connection.emuc.isModerator(); <- ReferenceError: connection is not defined

    };

 

I'm not sure if that is related though. Has anyone managed to get the latest plugin working? Are there some other requirements that I'm not aware of when upgrading from plugin v0.3.9 -> 0.3.23?

 

Daire


Re: Openfire losing config after reboot CentOS 7

$
0
0

Yes, I did. I running openfire via the ntsysv, automaticaly.

 

This 'rpm -Va openfire' results in:

# rpm -Va openfire

S.5....T.  c /opt/openfire/conf/openfire.xml

S.5....T.  c /opt/openfire/conf/security.xml

S.5....T.  c /opt/openfire/resources/security/keystore

S.5....T.  c /opt/openfire/resources/security/truststore

 

This mean it is all right?!

 

# ll /opt/openfire/

total 244

drwxr-xr-x 2 daemon daemon     91 Ago 22 14:25 bin

-rw-r--r-- 1 daemon daemon 211535 Ago 19 10:19 changelog.html

drwxr-xr-x 2 daemon daemon   4096 Set  1 09:59 conf

drwxr-xr-x 4 daemon daemon     28 Ago 19 10:19 documentation

drwxr-xr-x 2 daemon daemon     54 Ago  1 09:07 embedded-db

drwxr-xr-x 6 daemon daemon   4096 Ago 22 14:25 jre

drwxr-xr-x 2 daemon daemon   4096 Ago 22 14:25 lib

-rw-r--r-- 1 daemon daemon  10871 Ago 19 10:19 LICENSE.html

drwxr-xr-x 2 daemon daemon    139 Ago 22 14:27 logs

drwxr-xr-x 3 daemon daemon     19 Mar 18  2015 monitoring

drwxr-xr-x 8 daemon daemon   4096 Ago 22 14:26 plugins

-rw-r--r-- 1 daemon daemon   5332 Ago 19 10:19 README.html

drwxr-xr-x 7 daemon daemon     76 Ago 19 10:19 resources

 

 

--- // ---

 

 

# cat /etc/rc.d/init.d/openfire

#!/bin/sh

#

# openfire      Stops and starts the Openfire XMPP service.

#

# chkconfig: 2345 99 1

# description: Openfire is an XMPP server, which is a server that facilitates \

#              XML based communication, such as chat.

# config: /opt/openfire/conf/openfire.xml

# config: /etc/sysconfig/openfire

# pidfile: /var/run/openfire.pid

#

# This script has currently been tested on Redhat, CentOS, and Fedora  based

# systems.

#

 

 

#####

# Begin setup work

#####

 

 

# Initialization

PATH="/sbin:/bin:/usr/bin:/usr/sbin"

RETVAL=0

 

 

# Check that we are root ... so non-root users stop here.

if [ "`id -u`" != 0 ]; then

        echo $0 must be run as root

        exit 1

fi

 

 

# Get config.

[ -f "/etc/sysconfig/openfire" ] && . /etc/sysconfig/openfire

if [ -f "/etc/init.d/functions" ]; then

  FUNCTIONS_FOUND=true

  . /etc/init.d/functions

fi

 

 

# If openfire user is not set in sysconfig, set to daemon.

[ -z "$OPENFIRE_USER" ] && OPENFIRE_USER="daemon"

 

 

# If pid file path is not set in sysconfig, set to /var/run/openfire.pid.

[ -z "$OPENFIRE_PIDFILE" ] && OPENFIRE_PIDFILE="/var/run/openfire.pid"

 

 

# -----------------------------------------------------------------

 

 

# If a openfire home variable has not been specified, try to determine it.

if [ -z "$OPENFIRE_HOME" -o ! -d "$OPENFIRE_HOME" ]; then

        if [ -d "/usr/share/openfire" ]; then

                OPENFIRE_HOME="/usr/share/openfire"

        elif [ -d "/usr/local/openfire" ]; then

                OPENFIRE_HOME="/usr/local/openfire"

        elif [ -d "/opt/openfire" ]; then

                OPENFIRE_HOME="/opt/openfire"

        else

                echo "Could not find Openfire installation under /opt, /usr/share, or /usr/local."

                echo "Please specify the Openfire installation location as variable OPENFIRE_HOME"

                echo "in /etc/sysconfig/openfire."

                exit 1

        fi

fi

 

 

# If log path is not set in sysconfig, set to $OPENFIRE_HOME/logs.

[ -z "$OPENFIRE_LOGDIR" ] && OPENFIRE_LOGDIR="${OPENFIRE_HOME}/logs"

 

 

# Attempt to locate java installation.

if [ -z "$JAVA_HOME" ]; then

        if [ -d "${OPENFIRE_HOME}/jre" ]; then

                JAVA_HOME="${OPENFIRE_HOME}/jre"

        elif [ -d "/etc/alternatives/jre" ]; then

                JAVA_HOME="/etc/alternatives/jre"

        else

                jdks=`ls -r1d /usr/java/j*`

                for jdk in $jdks; do

                        if [ -f "${jdk}/bin/java" ]; then

                                JAVA_HOME="$jdk"

                                break

                        fi

                done

        fi

fi

JAVACMD="${JAVA_HOME}/bin/java"

 

 

if [ ! -d "$JAVA_HOME" -o ! -x "$JAVACMD" ]; then

        echo "Error: JAVA_HOME is not defined correctly."

        echo "       Can not sure execute $JAVACMD."

        exit 1

fi

 

 

# Prepare location of openfire libraries

OPENFIRE_LIB="${OPENFIRE_HOME}/lib"

 

 

# Prepare openfire command line

OPENFIRE_OPTS="${OPENFIRE_OPTS} -DopenfireHome=${OPENFIRE_HOME} -Dopenfire.lib.dir=${OPENFIRE_LIB}"

 

 

# Prepare local java class path

if [ -z "$LOCALCLASSPATH" ]; then

        LOCALCLASSPATH="${OPENFIRE_LIB}/startup.jar"

else

        LOCALCLASSPATH="${OPENFIRE_LIB}/startup.jar:${LOCALCLASSPATH}"

fi

 

 

# Export any necessary variables

export JAVA_HOME JAVACMD

 

 

# Lastly, prepare the full command that we are going to run.

OPENFIRE_RUN_CMD="${JAVACMD} -server ${OPENFIRE_OPTS} -classpath \"${LOCALCLASSPATH}\" -jar \"${OPENFIRE_LIB}/startup.jar\""

 

 

#####

# End setup work

#####

 

 

 

 

 

 

start() {

        OLD_PWD=`pwd`

        cd $OPENFIRE_LOGDIR

 

 

        PID=$(findPID)

        if [ -n "$PID" ]; then

            echo "Openfire is already running."

            RETVAL=1

            return

        fi

 

 

        # Start daemons.

        echo -n "Starting openfire: "

 

 

        rm -f nohup.out

        su -s /bin/sh -c "nohup $OPENFIRE_RUN_CMD > $OPENFIRE_LOGDIR/nohup.out 2>&1 &" $OPENFIRE_USER

        RETVAL=$?

 

 

        echo

 

 

        [ $RETVAL -eq 0 -a -d /var/lock/subsys ] && touch /var/lock/subsys/openfire

 

 

        sleep 1 # allows prompt to return

 

 

        PID=$(findPID)

        echo $PID > $OPENFIRE_PIDFILE

 

 

        cd $OLD_PWD

}

 

 

stop() {

        # Stop daemons.

        echo -n "Shutting down openfire: "

 

 

        if [ -f "$OPENFIRE_PIDFILE" ]; then

                killproc -p $OPENFIRE_PIDFILE -d 10

                rm -f $OPENFIRE_PIDFILE

        else

                PID=$(findPID)

                if [ -n $PID ]; then

                        kill $PID

                else

                        echo "Openfire is not running."

                fi

        fi

 

 

        RETVAL=$?

        echo

 

 

        [ $RETVAL -eq 0 -a -f "/var/lock/subsys/openfire" ] && rm -f /var/lock/subsys/openfire

}

 

 

restart() {

        stop

        sleep 10 # give it a few moments to shut down

        start

}

 

 

condrestart() {

        [ -e "/var/lock/subsys/openfire" ] && restart

        return 0

}

 

 

status() {

        PID=$(findPID)

        if [ -n "$PID" ]; then

                echo "openfire is running"

                RETVAL=0

        else

                echo "openfire is not running"

                RETVAL=1

        fi

}

 

 

findPID() {

        echo `ps ax --width=1000 | grep openfire | grep startup.jar | awk '{print $1}'`

}

 

 

# Handle how we were called.

case "$1" in

        start)

                start

                ;;

        stop)

                stop

                ;;

        restart)

                restart

                ;;

        condrestart)

                condrestart

                ;;

        status)

                status

                ;;

        *)

                echo "Usage $0 {start|stop|restart|status|condrestart}"

                RETVAL=1

esac

 

 

exit $RETVAL

Re: Receiving new Spark message opens window but doesn't display message

$
0
0

The message that you provided is not an actual chat message, it is bit of metadata, that's used to signal the current state of the peer user (it is used to display messages like "user is typing...", things like that).

 

Can you, with certainty, tell if the other user was sending you an actual message (as in, composed text)? If there's a bug in Spark where it would pop up a new chat window when it receives a chat state change, it would look as if you missed a message - perhaps that message was not sent in the first place?

Re: Receiving new Spark message opens window but doesn't display message

$
0
0

Guus,

 

In my environment (4.0.3 / 2.8 both on Ubnutu) I can see the message in the logs but the chat window in spark shows nothing. So, essentially, I miss the first message.

Re: Receiving new Spark message opens window but doesn't display message

$
0
0

Yes, there was definitely a message sent, it just didn't show up in my spark. The message was logged in openfire.

Re: Receiving new Spark message opens window but doesn't display message

$
0
0

To start the debugger, select "advanced" on the login screen (where you fill out your username/password), then make sure that "start debugger on startup" is checked. It will give you a new screen with lots of debugging information after you log in.

Re: Receiving new Spark message opens window but doesn't display message

$
0
0

You've already mentioned that the message shows up in the message archive on the Openfire side, but it's unclear to me if you looked at the Openfire log files. Perhaps a warning or error is logged there, that indicates why a packet is not processed properly.

 

The easiest way to look at the Openfire logs is by looking at the file "all.log" in the directory "logs" of the installation folder of Openfire. You can also view the logs via the Openfire admin console, but for a reason that I never quite understood, the log files there is separated in four distinct tabs (each for a different severity).

Re: Auto Start Openfire

$
0
0

Which download did you use to install Openfire? I think the .deb file should automatically register such a script. If you used the .tar.gz file, there are various scripts in the /bin/ folder that can be used.


auto import settings

$
0
0

Hi, I've been in a previous thread where my issue is to auto install Spark client using either a software distribution software or etc. I was successful but one thing came up on my mind was, since I'm using Spark IM Client 2.8.0.886 due to the issue that I want to check the checkbox under this version.

 

disable certificate hostname verification

 

My question is, is there a way to automate and check this one. So technically the end user doesn't need to place that check anymore, he/she just needs to remember his/her Windows login credentials to login to Spark client.

 

Thanks

jepoy

Re: invalid username and password problem

$
0
0

"java.sql.SQLException: No suitable driver found for jdbc:hsqldb:/opt/openfire/embedded-db/openfire"

 

This error indicates that Openfire is missing one or more libraries. I think your installation is corrupted. Try downloading a fresh copy of Openfire, and install it on a new (virtual) server.

Re: I Can't connect Amazon Windows server's Openfire Administration Panel using public IP

$
0
0

First, make sure that Openfire is running, and that the Openfire process is listening on TCP port 9090. A tool like netstat will be helpful to determine this.

 

If you do find that Openfire is running correctly, verify that your security settings / firewall allow you to access port 9090 on that server.

Re: I Can't connect Amazon Windows server's Openfire Administration Panel using public IP

$
0
0

I've changed security settings, security groups and firewalls then what i do? and i've tried like this [mypublicip:9090] but its not work...

Re: auto import settings

$
0
0

This setting is stored in C:\Users\User\AppData\Roaming\Spark\spark.properties file. It's:

DisableHostnameVerification=true

 

So, you can distribute a preconfigured (also with some other settings) spark.properties file to your users.

Re: auto import settings

$
0
0

any best tool? any idea? how you would distribute this setting? script? xml? etc?

 

Thanks

jepoy

Re: auto import settings


Openfire 4.0.3 wrong id or pass

$
0
0

Openfire application I installed for the first time. I select the default profile option in the settings section.

Then follows a note on the curren account password of the admin section = "If this is a new installation , the current password will be 'admin'  "  as well as the current password instead of 'admin' I wrote.

I also e- mail new password and filled parts and I pressed the button contiune. It gave such an error ="There were errors when updating the admin account. Please see below." ->Please enter the correct current password.

 

 

Please help me!

Re: I Can't connect Amazon Windows server's Openfire Administration Panel using public IP

$
0
0

Verify that Openfire is running.

Verify that Openfire is listening on port 9090 (use a tool like netstat).

See if there are any obvious clues in the Openfire logs. (<openfire_home>/logs/all.log )

Re: Openfire losing config after reboot CentOS 7

$
0
0

Yes it should change. If I got it right the only change you see is <setup>false to true</setup> which is odd.

Null pointer exception in PingManager.pingMyServer

$
0
0

Hi all,

 

We are getting the following exception in our app.

 

Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'long org.jivesoftware.smack.XMPPConnection.getPacketReplyTimeout()' on a null object reference

       at org.jivesoftware.smackx.ping.PingManager.pingMyServer(Unknown Source)

       at org.jivesoftware.smackx.ping.PingManager.pingServerIfNecessary(Unknown Source)

       at org.jivesoftware.smackx.ping.android.ServerPingWithAlarmManager$2$1.run(Unknown Source)

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

 

If the connection is broken we will clear the connection and try to make a new one. And as the connection held in PingManager is a weak reference, it seemed that the reference to connection is becoming null and thus the exception occurred in pingMyServer when doing the retry.

 

Can anyone advise us how to handle the situation in a better way? Thanks in advance.

How to persist users(MultiUserChat) and chat history in Openfire (Ver 4.0.3) using SMACK API (4.2.0 Beta1)

$
0
0

I have successfully created a multiuserchat group, but the user goes offline the user is removed from the group, and i want to have the history of messages to save for the user the next time he logs in. I found some approaches from previous and deduced as follows

  1. There are several old answers out there but none of them is based on new SMACK API 4.1.5+
  2. using "Stream Management", but i have no idea what and how to do it, How it helps to solve my problem.
  3. Using a PUBSUB for getting messages and delivering to user and showing the pseudo-list of users.

I want to know the best and effective approach or any libs which help to achieve my result. I am a newbie to XMPP and have 2+ year experience in java

NOTE: I am looking for a whatsapp group chat implementation to kick/invite/providing_permissions to the user and history of messages for notifications/when he is offline.

I am searching for this from long time , Any Help is really appreciated. Thanks in advance.

The same question is also available at stack overflow, please find at android - How to persist users(MultiUserChat) and chat history in Openfire (Ver 4.0.3) using SMACK API (4.2.0 Beta1) - S…

Viewing all 12000 articles
Browse latest View live