powered by Jive Software

Sparkweb 0.9.0 source code

I am looking to do some customization to SparkWeb 0.9.0, but it looks like the source I got from the SVN via [http://svn.igniterealtime.org/svn/repos/sparkweb/trunk](http://svn.igniterealtime.org/svn/repos/sparkweb/trunk) SparkWeb, however after compiling it, it did not match up with the compiled version of SparkWeb available for download on the site. Can any one direct me to the location ofSparkWeb 0.9.0 source code?

Thanks,

Justin

Source code was updated since the 0.9.0 release. I’m not sure if 0.9.0 source is still available. You can try contacting @Benjamin Sherman. He’s one of this site and svn admins, maybe he will know.

I got the source code but even after applying the patch to fix the xiff error it still won’t compile. Please see error below. also attached as a text file.

[mxmlc] Loading configuration file F:\Program Files\Adobe\Flex Builder 3\sdks\3.4.0\frameworks\flex-config.xml
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\ContactL ist.mxml(89): Error: Implicit coercion of a value of type org.igniterealtime.xiff.data.im:RosterGroup to an unrelated type mx.collections:ListCollectionView.
[mxmlc] g.dataProvider = ds;
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCore\com\jivesoftware\spark\managers\AccountMana ger.as(36): col: 62 Error: Access of possibly undefined property SET_TYPE through a reference with static type Class.
[mxmlc] var iq:IQ = new IQ(new EscapedJID(connection.server), IQ.SET_TYPE);
[mxmlc] ^
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCore\com\jivesoftware\spark\managers\ConnectionM anager.as(62): col: 16 Error: Call to a possibly undefined method XMPPSocketConnection.
[mxmlc] con = new XMPPSocketConnection();
[mxmlc] ^
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCore\com\jivesoftware\spark\managers\ConnectionM anager.as(88): col: 17 Error: Implicit coercion of a value of type String to an unrelated type uint.
[mxmlc] con.connect( “terminatedStandard”);
[mxmlc] ^
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCore\com\jivesoftware\spark\managers\ConnectionM anager.as(107): col: 78 Error: Access of possibly undefined property UNAVAILABLE_TYPE through a reference with static type Class.
[mxmlc] var unavailablePresence:Presence = new Presence(recipient, null, Presence.UNAVAILABLE_TYPE, null, “Logged out”);
[mxmlc] ^
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCore\com\jivesoftware\spark\managers\ConnectionM anager.as(152): col: 27 Error: Access of possibly undefined property CHAT_TYPE through a reference with static type Class.
[mxmlc] message.type = Message.CHAT_TYPE;
[mxmlc] ^
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\CreateAc countDialog.mxml(90): Error: Implicit coercion of a value of type String to an unrelated type uint.
[mxmlc] con.connect(“terminatedFlash”);
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\CreateAc countDialog.mxml(117): Error: Access of possibly undefined property RESULT_TYPE through a reference with static type Class.
[mxmlc] if(iq.type == IQ.RESULT_TYPE)
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCore\com\jivesoftware\spark\managers\SharedGroup sManager.as(51): col: 32 Error: Access of possibly undefined property GET_TYPE through a reference with static type Class.
[mxmlc] var iq:IQ = new IQ(null, IQ.GET_TYPE, XMPPStanza.generateID("get_shared_groups
"), “_receivedSharedGroups”, this);
[mxmlc] ^
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWeb\src\SparkWeb.mxml(188): Error: Access of possibly undefined property groups through a reference with static type org.igniterealtime.xiff.im:Roster.
[mxmlc] contactListContainer.contacts.dataProvider = SparkManager.roster.groups;
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\BuddyRen derer.mxml(352): Error: Access of possibly undefined property MODERATOR_ROLE through a reference with static type Class.
[mxmlc] if(room.role != Room.MODERATOR_ROLE && room.affiliation != Room.ADMIN_AFFILIATION && room.affiliation != Room.OWNER_AFFILIATION)
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\BuddyRen derer.mxml(352): Error: Access of possibly undefined property ADMIN_AFFILIATION through a reference with static type Class.
[mxmlc] if(room.role != Room.MODERATOR_ROLE && room.affiliation != Room.ADMIN_AFFILIATION && room.affiliation != Room.OWNER_AFFILIATION)
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\BuddyRen derer.mxml(352): Error: Access of possibly undefined property OWNER_AFFILIATION through a reference with static type Class.
[mxmlc] if(room.role != Room.MODERATOR_ROLE && room.affiliation != Room.ADMIN_AFFILIATION && room.affiliation != Room.OWNER_AFFILIATION)
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\GroupCha ngeWindow.mxml(62): Error: Access of possibly undefined property groups through a reference with static type org.igniterealtime.xiff.im:Roster.
[mxmlc] for each(var rosterGroup:RosterGroup in SparkManager.roster.groups)
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\OfflineL istGroup.mxml(40): Error: Implicit coercion of a value of type org.igniterealtime.xiff.im:Roster to an unrelated type mx.collections:ListCollectionView.
[mxmlc] dataProvider = SparkManager.roster;
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\ChatCont ainer.mxml(205): Error: Access of possibly undefined property GROUPCHAT_TYPE through a reference with static type Class.
[mxmlc] chat = message.type == Message.GROUPCHAT_TYPE ? ChatManager.sharedInstance.joinGroupChat(message.from.unescaped, false) : ChatManager.sharedInstance.startChat(message.from.unescaped, false);
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCore\com\jivesoftware\spark\chats\SparkGroupChat .as(134): col: 16 Error: Implicit coercion of a value of type org.igniterealtime.xiff.conference:Room to an unrelated type mx.collections:ArrayCollection.
[mxmlc] return room;
[mxmlc] ^
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\Subscrip tionRequestWindow.mxml(68): Error: Implicit coercion of a value with static type org.jivesoftware.xiff.core:UnescapedJID to a possibly unrelated type org.jivesoftware.xiff.core:JID.
[mxmlc] if (SparkManager.roster.contains(RosterItemVO.get(fromJid, false)))
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\Subscrip tionRequestWindow.mxml(110): Error: Implicit coercion of a value of type org.jivesoftware.xiff.core:UnescapedJID to an unrelated type org.igniterealtime.xiff.core:UnescapedJID.
[mxmlc] SparkManager.roster.addContact(fromJid, nicknameField.text, groupField.text);
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\Subscrip tionRequestWindow.mxml(112): Error: Implicit coercion of a value of type org.jivesoftware.xiff.core:UnescapedJID to an unrelated type org.igniterealtime.xiff.core:UnescapedJID.
[mxmlc] SparkManager.roster.grantSubscription(fromJid, false);
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCore\com\jivesoftware\spark\managers\AbstractSea rchManager.as(319): col: 37 Error: Access of possibly undefined property GET_TYPE through a reference with static type Class.
[mxmlc] var iqSearch:IQ = new IQ(jid, IQ.GET_TYPE, null, “accept”, packetFilter);
[mxmlc] ^
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCore\com\jivesoftware\spark\managers\AbstractSea rchManager.as(333): col: 45 Error: Access of possibly undefined property SET_TYPE through a reference with static type Class.
[mxmlc] var iqSearch:IQ = new IQ(jid.escaped, IQ.SET_TYPE, null, “accept”, packetFilter);
[mxmlc] ^
[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCore\com\jivesoftware\spark\managers\AbstractSea rchManager.as(356): col: 45 Error: Access of possibly undefined property SET_TYPE through a reference with static type Class.
[mxmlc] var iqSearch:IQ = new IQ(jid.escaped, IQ.SET_TYPE, null, “accept”, packetFilter);
[mxmlc] ^
error.txt.zip (1566 Bytes)

Any resolution for this issue?

Its really annoying trying to use the ignite products when they don’t even work properly.

I’m afraid there won’t be any solution as this project is currently dead and nobody maintains it. If it annoys you when you can either look for another project, or became project lead and maintainer of this one and fix it. It’s Open Source after all.

I will be going through the project code and figuring when each reported error occurred.

[mxmlc] C:\Users\Justin Lai\workspace\sparkweb\SparkWebCommonComponents\com\jivesoftware\spark\ContactL ist.mxml(89): Error: Implicit coercion of a value of type org.igniterealtime.xiff.data.im:RosterGroup to an unrelated type mx.collections:ListCollectionView.
[mxmlc] g.dataProvider = ds;
^

Caused by:

[http://www.igniterealtime.org/fisheye/changelog/svn-org?cs=11181](http://www.igniterealtime.org/fisheye/changelog/svn-org?cs=11181)

Hi Rand12,

We did have some look going back into the svn history to around april 28, 2008 version of sparkweb + april 28 xiff libary.

Justin

We ended up trying the 10762 revision of xiff and was able to build a runnable SparkWeb, thanks Justin.

We ultimately decided development resources would be better spent on a more reliable project.

try changing SET_TYPE to TYPE_SET and the same for the rest of the unreferenced types. ie UNAVAILABLE_TYPE to TYPE_UNAVAILABLE.

dont understand why the most up to date version of SparkWeb just doesnt compile… Ive found that most of the namespace imports are out of date??? If anyone knows what version of SparkWeb compiles then please let me know.

Thanks, Chris