That sucks pretty badly if thats the case - i really dont want to have to put in D7-Openfire01 into my clients and its especially awkward if i have to help them set that up over the phone instead of just telling them "chat.domain.com"
Re: Spark 2.8 failed to login
Re: Spark 2.8 failed to login
Ill give that a try now - thanks.
EDIT: Confirmed that works - must be the same issue as the announcement then but it even matters if youre using a DNS name.
Missing roster event between Openfire 3.9.3 and Openfire 4.0.2
We recently upgraded from Openfire 3.9.3 and Openfire 4.0.2 and we are seeing some issues.
A requests to add B in his roster
B denies A's contact request
A does not receive a roster push for the denial
A's roster still shows B in the roster with pending request.
When i switch back to Openfire 3.9.3 the roster push is sent to A and he has the correct entry in the roster.
Can somone please look into this issue and open a defect?
Regards,
Animesh
Re: Spark 2.8 login problem
All my users were could not login after updating to 2.8 as well. We do not use AD authentication, just a simple internal IM box for the company. Changing the server in the client to the name of the server instead of IP and going into advanced, unchecking automatically detect host/port and entering in the server IP and port worked for me. I believe I also had to check accept all certificates since we are using self signed...back up and running using those settings.
Re: Java versions issue - Open Fire 4.0.3
Edit /etc/default/openfire and set JAVA_HOME
Could not determine Smack version - on Unity/Android
Hello,
I'm developing an Unity application with Java/Andoid libraries. As server uses XMPP, I use smack to communicate with server. (Server is coded with prosody.im)
When I test codes without Unity, there is no problem. I can run application with smack via PC(win/java) or native Android app. But problem occurs when I run it with Unity.
I attached logcat below.
Do you have any idea? I googled this error but there were not many questions and no answers...
Thanks in advance
p.s. I'm developing without maven or gradle. just importing jars directly into java side project. (for management of Android plugin of Unity)
p.s.2. Error occurs at this line (Class#2.java:49)
XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()
.setUsernameAndPassword(id, password).setServiceName(SERVICE_NAME).setHost(host).setResource(RESOURCE)
.build();
-- Error Log --
08-30 17:36:23.904: E/SmackInitialization(23634): Could not determine Smack version
08-30 17:36:23.904: E/SmackInitialization(23634): java.lang.NullPointerException: lock == null
08-30 17:36:23.904: E/SmackInitialization(23634): at java.io.Reader.<init>(Reader.java:64)
08-30 17:36:23.904: E/SmackInitialization(23634): at java.io.InputStreamReader.<init>(InputStreamReader.java:122)
08-30 17:36:23.904: E/SmackInitialization(23634): at java.io.InputStreamReader.<init>(InputStreamReader.java:57)
08-30 17:36:23.904: E/SmackInitialization(23634): at org.jivesoftware.smack.SmackInitialization.<clinit>(SmackInitialization.java:61 )
08-30 17:36:23.904: E/SmackInitialization(23634): at org.jivesoftware.smack.SmackConfiguration.getVersion(SmackConfiguration.java:96 )
08-30 17:36:23.904: E/SmackInitialization(23634): at org.jivesoftware.smack.ConnectionConfiguration.<clinit>(ConnectionConfiguration .java:38)
08-30 17:36:23.904: E/SmackInitialization(23634): at [remove package name for security issues].<init>(Class#2.java:49)
08-30 17:36:23.904: E/SmackInitialization(23634): at [remove package name for security issues](Class#1.java:120)
08-30 17:36:23.904: E/SmackInitialization(23634): at [remove package name for security issues](Class#0.java:193)
08-30 17:36:23.904: E/SmackInitialization(23634): at [remove package name for security issues].MainActivity$3.run(MainActivity.java:70)
08-30 17:36:23.904: E/SmackInitialization(23634): at java.lang.Thread.run(Thread.java:818)
08-30 17:36:23.914: E/AndroidRuntime(23634): FATAL EXCEPTION: Thread-22292
08-30 17:36:23.914: E/AndroidRuntime(23634): Process: com.aibrain.giar.lite, PID: 23634
08-30 17:36:23.914: E/AndroidRuntime(23634): java.lang.Error: FATAL EXCEPTION [Thread-22292]
08-30 17:36:23.914: E/AndroidRuntime(23634): Unity version : 5.4.0f3
08-30 17:36:23.914: E/AndroidRuntime(23634): Device model : samsung SM-N920K
08-30 17:36:23.914: E/AndroidRuntime(23634): Device fingerprint: samsung/nobleltektt/nobleltektt:6.0.1/MMB29K/N920KKKU2BPH3:user/release-keys
08-30 17:36:23.914: E/AndroidRuntime(23634): Caused by: java.lang.ExceptionInInitializerError
08-30 17:36:23.914: E/AndroidRuntime(23634): at org.jivesoftware.smack.SmackConfiguration.getVersion(SmackConfiguration.java:96 )
08-30 17:36:23.914: E/AndroidRuntime(23634): at org.jivesoftware.smack.ConnectionConfiguration.<clinit>(ConnectionConfiguration .java:38)
08-30 17:36:23.914: E/AndroidRuntime(23634): at [remove package name for security issues].<init>(Class#2.java:49)
08-30 17:36:23.914: E/AndroidRuntime(23634): at [remove package name for security issues](Class#1.java:120)
08-30 17:36:23.914: E/AndroidRuntime(23634): at [remove package name for security issues](Class#0.java:193)
08-30 17:36:23.914: E/AndroidRuntime(23634): at [remove package name for security issues].MainActivity$3.run(MainActivity.java:70)
08-30 17:36:23.914: E/AndroidRuntime(23634): at java.lang.Thread.run(Thread.java:818)
08-30 17:36:23.914: E/AndroidRuntime(23634): Caused by: java.lang.IllegalStateException: java.lang.IllegalArgumentException: is == null
08-30 17:36:23.914: E/AndroidRuntime(23634): at org.jivesoftware.smack.SmackInitialization.<clinit>(SmackInitialization.java:11 9)
08-30 17:36:23.914: E/AndroidRuntime(23634): ... 7 more
08-30 17:36:23.914: E/AndroidRuntime(23634): Caused by: java.lang.IllegalArgumentException: is == null
08-30 17:36:23.914: E/AndroidRuntime(23634): at org.kxml2.io.KXmlParser.setInput(KXmlParser.java:1634)
08-30 17:36:23.914: E/AndroidRuntime(23634): at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitializatio n.java:155)
08-30 17:36:23.914: E/AndroidRuntime(23634): at org.jivesoftware.smack.SmackInitialization.processConfigFile(SmackInitializatio n.java:148)
08-30 17:36:23.914: E/AndroidRuntime(23634): at org.jivesoftware.smack.SmackInitialization.<clinit>(SmackInitialization.java:11 6)
08-30 17:36:23.914: E/AndroidRuntime(23634): ... 7 more
08-30 17:36:23.924: W/ActivityManager(3662): Force finishing activity com.aibrain.giar.lite/.MainActivity
Re: Failed to route packet to JID:
It appears that the intended recipient, support@ourdomain.com, was simply not online at the time that the message got sent, or at least not online with the resource "android9km8yix6". Think of 'resource' as an identifier for the client that a user is logged in with. XMPP users can log in with multiple clients at the same time, as long as each login specifies a different 'resource' value.
When this happens again, log into the Openfire admin console, and Open the "sessions" tab. By default, that page lists all client sessions. See if there's a row where both the values in the column "Name" as well as "resource" match the 'to' JID. This is the syntax: name@yourdomain/resource
I would not be surprised if you only find a row for the 'name', but that has a different resource. If that's the case, then the entity that sends the message is addressing the wrong recipient.
Disable Privacy Lists (Blocking of other users)
Hello,
we need to not allow our users to block other users.
Openfire 3.9.3
Spark 2.7.3
--
Alex
Re: Disable Privacy Lists (Blocking of other users)
Privacy lists is an internal plugin, it can't be easily disabled other than editing the source and removing everything related and building your own version of Spark.
Re: Java versions issue - Open Fire 4.0.3
It was the space.... Now OF server show the proper Java version. Thanks!
Can I use mysql jdbc driver which is given with openfire for external authentication ?
From this information Openfire: Custom Database Integration Guide ,
I can configure the external authentication with the provided "com.mysql.jdbc.Driver",
Can i use in my application which i sell to the Clients which is not sold under GPL licence,
I am not sure whether mysql license of the jdbc driver will allow it ?
Unable to create a connection
I am trying to create a connection using smack 4.1.8 as below...getting an exception..any help appreciated
import javax.net.ssl.SSLSocketFactory;
import org.jivesoftware.smack.AbstractXMPPConnection;
import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.tcp.XMPPTCPConnection;
import org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration;
public class SmackClient {
public static void main(String[] args) {
try {
// Create the configuration for this new connection
XMPPTCPConnectionConfiguration.Builder configBuilder =
XMPPTCPConnectionConfiguration.builder();
configBuilder.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);
configBuilder.setSocketFactory(SSLSocketFactory.getDefault());
//configBuilder.setDebuggerEnabled(true);
configBuilder.setSendPresence(true);
configBuilder.setUsernameAndPassword("username",
"password");
configBuilder.setResource("ot");
configBuilder.setServiceName("xyz.com");
configBuilder.setHost("stbeehive.xyz.com");
//TLSUtils.acceptAllCertificates(configBuilder);
configBuilder.setPort(5223);
AbstractXMPPConnection connection =
new XMPPTCPConnection(configBuilder.build());
// Connect to the server
connection.connect();
// Log into the server
connection.login();
connection.disconnect();
} catch (Exception e) {
e.printStackTrace();
}
}
}
Exception:
org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 5000ms (~5s). Used filter: No filter used or filter was 'null'.
at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackExceptio n.java:106)
at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackExceptio n.java:85)
at org.jivesoftware.smack.SynchronizationPoint.checkForResponse(SynchronizationPoi nt.java:253)
at org.jivesoftware.smack.SynchronizationPoint.checkIfSuccessOrWait(Synchronizatio nPoint.java:146)
at org.jivesoftware.smack.SynchronizationPoint.checkIfSuccessOrWaitOrThrow(Synchro nizationPoint.java:125)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection. java:858)
at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.ja va:364)
at com.util.smack.SmackClient.main(SmackClient.java:34)
Process exited with exit code 0.
Re: Openfire inconsistency with roster events
I dont think so, because these are roster pushes that are not generated on first time adds. Also the roster events are not being triggered when user logs in again so the contact is missing from his roster on subsequent log in.
Configuration issue Active Directory Groups
OpenFire 4.03
Spark 2.8
Windows 2008 R2
I have successfully set up the openfire server, configured it with our active directory, set up two groups in AD (mgmt.,staff) and populated those groups with users. My searchfilters are limiting what groups (and users) can use the service.. to these two. I've followed the instructions in this link and 'packet filter rules' to attempt the following: Mgmt can see and chat with Mgmt and Staff, Staff can only see and chat with Mgmt (not with each other). http://serverfault.com/questions/191365/openfire-hide-all-users-in-the-same-grou p-from-each-other
This is what my packet filter config looks like:
Here is what is happening - I have several issues:
1) Staff can not see each other as planned, and can not start a chat manually by entering the user id from the spark client menu (Actions->Start a Chat)... a popup window opens but there is no connectivity to the other staff user. However, if from this popup the staff user selects the icon to 'Invite to a conference', then that successfully connects the two staff members. As I understand it, this should not happen if I have 'Any' or 'Reject' set up to block ALL packet traffic.
2) Selecting the spark menu option (Contacts->Show offline users, or Show empty groups) allows me to see both groups (Mgmt and Staff) when I am logged in as a member of Mgmt. Staff or Mgmt that are logged in show up in their respective groups. But when logged in as a Staff member, I cannot see the Mgmt group - nor anyone logged in in under the Mgmt group. I need the staff to be able to see and chat to Mgmt.
Can someone help me diagnose what is going on here?
Thanks in advance,
Rich
Re: Configuration issue Active Directory Groups
Hi...you may want to change the title of your post to something like "packet filter question" as it sounds like your AD setup is fine!
I think you'll have to play with the packet types to get your end result.
MUC (conference) filter blocks the conference packets. I think this is an all or nothing setting. If you need the user to access MUC, but don't want them to use it as a workaround to bypass your 1:1 filter, you'll need to adjust permissions of the conference rooms. (prevent user from creating/inviting/etc/password/et
"Presence" filter might handle letting your users see each other. You'll likely need to allow this.
Re: Could not determine Smack version - on Unity/Android
I disassembled code where error occurs, and found that
Why disassemble code of open source projects?
It appears the Smack resources are missing. Possible that Unity does not include them into the runtime environment for whatever reason.
Re: Could not determine Smack version - on Unity/Android
Sorry, I misused 'disassemble' :-p
Anyway, you mean it is the problem of Unity, right?
Then, is there no way to skip version check?
It looks like Unity can not handle
"classpath:org.jivesoftware.smack/smack-config.xml"
or
"classpath:org.jivesoftware.smack/version"
No file transfer with Spark 2.8.0?
Server: Ubuntu Linux 14.03, Openfire 4.0.3
Clients: Win8 Pro, Spark 2.8.0
Both clients are in different locations and behind a firewall. Chat works without problems, but I can´t transfer any files (or screenshots) after update to 2.8.0.
When I try to send from client A to client B, I click on "accept" and I can see the progress bar and the "Negotiating connection streams, please wait..." message.
After a few seconds, I get a "There was an error during file transfer" message
This is the log from client B (receiver), no log on client A. When I try to send from client B to client A, it´s vice versa.
Aug 31, 2016 12:45:14 PM org.jivesoftware.spark.util.log.Log error
SEVERE: There was an error during file transfer.
org.jivesoftware.smack.SmackException: Error in execution
at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.negotiateStream(Incom ingFileTransfer.java:199)
at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.access$100(IncomingFi leTransfer.java:57)
at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$1.run(IncomingFileTra nsfer.java:129)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.concurrent.ExecutionException: org.jivesoftware.smack.XMPPException$XMPPErrorException: Could not establish socket with any provided host
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.negotiateStream(Incom ingFileTransfer.java:193)
... 3 more
Caused by: org.jivesoftware.smack.XMPPException$XMPPErrorException: Could not establish socket with any provided host
at org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamRequest.cancelReques t(Socks5BytestreamRequest.java:286)
at org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamRequest.accept(Socks 5BytestreamRequest.java:255)
at org.jivesoftware.smackx.filetransfer.Socks5TransferNegotiator.negotiateIncoming Stream(Socks5TransferNegotiator.java:104)
at org.jivesoftware.smackx.filetransfer.FaultTolerantNegotiator.createIncomingStre am(FaultTolerantNegotiator.java:68)
at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$2.call(IncomingFileTr ansfer.java:187)
at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$2.call(IncomingFileTr ansfer.java:183)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.negotiateStream(Incom ingFileTransfer.java:190)
... 3 more
Any ideas? Do I do something wrong or is it a bug?
Re: No file transfer with Spark 2.8.0?
I just downgraded one client to Spark 2.7.7.810.
Now I can send files from the Spark 2.8.8 client to the 2.7.7 client. But the other way arround -> still the same problem as described above.
So this looks much more like bug to me...
Creating openfire server
I am creating an openfire server 4.0.3with embedded database and trying to conenct to my active directory.
I have put in base and admin DN and the test verifies. But on the user mapping it gives an error.
Test:User Mapping
Status: Error
No users were found using the specified configuration. Try changing the base DN, user filter or username field.
If i save and continue the group mapping works., but on the screen after i cannot add any admins because it does not find any.
Please help