Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble running Oregano chatroom example app

Status
Not open for further replies.

jackz15

Programmer
Jun 28, 2006
103
US
i have succesfully installed Oregano. Now i'm testing an example chatroom app in Flash. Thr app works when my server is localhost, but once i change it to it comes up with all these errors. I'm thinking that it relates to the lack of grant powers in that server, so the app could not perform some of its actions. But i'm not sure. Here is the errors from Flash's output:

##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message = A

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =
5.0.16-standard-log

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message = ?

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message = ht-#dSOr

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message = ,¢

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message =

########################################################



##### ERROR ############################################

error code - clj-052
description - org.omus.EnvelopeFactory: illegal identifier

===== additional info ==================================

message = rd!p5W5D7&U[

########################################################



##### INFO #############################################

error code - clj-008
description - org.omus.session: normal connection shutdown

########################################################
what is org.omus.Envelopfactory?
 
heres envelopefactory.as:
can you tell me why this is happening? this might be a bit hard, and if you need anymore source to look at please say so.

/*
Oregano Multiuser Server - Version 1.1.0 - April 14th, 2004

Web: Mail: info@oregano-server.org

Copyright 2003 - 2004 Jens Halm / Cologne, Germany

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/


org.omus.EnvelopeFactory = function () {
this.nextMsgID = 1;
}

org.omus.EnvelopeFactory.prototype.getNextMsgID = function () {
if (this.nextMsgID >= 9999) this.nextMsgID = 1;
return this.nextMsgID++;
}

org.omus.EnvelopeFactory.prototype.getIncoming = function (str) {
// split header:
var head = substring(str,1,4);
var type = this.trimStr(substring(str,5,12));
var msgID = parseInt(this.trimStr(substring(str,17,4)));
var senderLen = parseInt(this.trimStr(substring(str,21,3)));
var subjLen = parseInt(this.trimStr(substring(str,24,3)));
var attachLen = parseInt(this.trimStr(substring(str,27,6)));
// error check
if (head != "#msg") {
org.omus.iLog.error("clj-052","message = " + str);
return null;
}
if (isNaN(msgID)) {
org.omus.iLog.error("clj-053","message = " + str);
return null;
}
if (isNaN(senderLen)) {
org.omus.iLog.error("clj-054","message = " + str);
return null;
}
if (isNaN(subjLen)) {
org.omus.iLog.error("clj-055","message = " + str);
return null;
}
if (isNaN(attachLen)) {
org.omus.iLog.error("clj-056","message = " + str);
return null;
}
// extract remaining parts:
var idx = 33;
var sender = substring(str,idx,senderLen);
idx += senderLen;
var subject = substring(str,idx,subjLen);
idx += subjLen - 1;
// check length of all parts
if (sender.length != senderLen) {
org.omus.iLog.error("clj-057","message = " + str);
return null;
}
if (subject.length != subjLen) {
org.omus.iLog.error("clj-058","message = " + str);
return null;
}
if (str.length - idx != attachLen) {
org.omus.iLog.error("clj-059","message = " + str);
return null;
}
// create envelope
var msg = new org.omus.Message(subject);
msg.setSender(sender);
msg.setMarshalledAttachment(str,idx);
return new org.omus.Envelope(msg,type,null,msgID);
}


org.omus.EnvelopeFactory.prototype.trimStr = function (str) {
var len = str.length;
for (var i = 0; i < len; i++) {
if (str.charAt(i) == " ") {
return substring(str,1,i);
}
}
return str;
}


org.omus.EnvelopeFactory.prototype.getOutgoing = function (msg,type,recp) {
return new org.omus.Envelope(msg,type,recp,this.getNextMsgID());
}


org.omus.EnvelopeFactory.toString = function () {
return "org.omus.EnvelopeFactory";
}

org.omus.EnvelopeFactory.prototype.toString = org.omus.EnvelopeFactory.toString;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top