CDATA error
In Flash Builder, I'm getting this problem:
"invalid character or markup found in script block. Try surrounding your code with a CDATA block".
Tho in fact, my code is already surrounded with a CDATA block, and the syntax is correct. What is the problem here?
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
implements="com.rfm.interfaces.IExercise"
xmlns:assets="com.rfm.assets.*"
xmlns:tapat="com.bpi.tapat.*"
width="800" height="600">
<fx:Script>
<![CDATA[
import TPController;
import TPModel;
import TPViewer;
import com.rfm.assets.AssetContainerMgr;
import com.rfm.events.ExerciseEvent;
import com.rfm.interfaces.IExercise;
import com.rfm.state.GameState;
import com.rfm.state.TaskModel;
import com.rfm.test.TestInterface;
import flash.events.*;
import mx.controls.Alert;
import mx.core.UIComponent;
private var _spec:Object;
public var startupAssets:Array = ['tapat_assets', 'global_assets'];
public function startup(spec:Object, previousstate:Object):Boolean {
GameState.fromJSON(previousstate);
TestInterface.instance.register_object(this, 'currentExercise');
_spec = spec as TaskModel;
ldrview.load(startupAssets);
return true;
public function kill():Boolean{
return true;
public function status():Object{
return GameState.toJSON();
public function pause():void{trace("pause");}
public function resume():void{trace("resume");}
public function easyConfig():void{trace("easyConfig");}
public function mediumConfig():void{trace("mediumConfig");}
public function hardConfig():void{trace("hardConfig");}
public function easyStimulus():void{trace("easyStimulus");}
public function mediumStimulus():void{trace("mediumStimulus");}
public function hardStimulus():void{trace("hardStimulus");}
public function prePrompt():void{
currentState = 'stimulus';
init();
public function prompt(e):void{
GameState.write('did_tut', true);
currentState = 'prompt';
public function nextTrial():void{
currentState = 'stimulus';
public function trialComplete(correct:Boolean):void{
AssetContainerMgr.playMP3(correct?'ding':'thump')
prompt();
private function finished():void{
dispatchEvent(new ExerciseEvent(ExerciseEvent.FINISHED, {}))
private function problem():void{
dispatchEvent(new ExerciseEvent(ExerciseEvent.ERROR, {message: 'happy fun error'}))
private function init():void{
var container:UIComponent = new UIComponent;
var TPM:TPModel = new TPModel();
var TPV:TPViewer = new TPViewer();
var TPC:TPController = new TPController();
]]>
</fx:Script>
<s:states>
<s:State name="loading"/>
<s:State name="prompt"/>
<s:State name="stimulus"/>
</s:states>
<assets:AssetLoaderUI id="ldrview" done="prePrompt()" includeIn="loading"/>
<tapat:TAPATSkin id="bg" excludeFrom="loading"/>
<fx:Declarations>
<tapat:colorfilters id="colorfilters"/>
</fx:Declarations>
<s:Button label="skip" click="finished()" skinClass="com.rfm.skins.TxtBtn"/>
</s:Application>
You have a bracket missing or a bad character somewhere. Im not going to dig it out for you.
I would suggest removing all the code and pasting it back in, piece by piece. That will help you figure out where the bad syntax/character is.
I noticed this too:
AssetContainerMgr.playMP3(correct?'ding':'thump')
^ not sure if you need a semicolon at the end there???
Similar Messages
-
CDATA error. Is it me or Sun?
I have a sample xml below and Sun's java source code. When use jdk1.3.1 or 1.4 and jaxp as the parser, I got error when turn on validation. Also, the CDATA section does not show properly when turn of validation (only show: Diagram:). Why "Text" still show for empty spaces when validation turns on? What a mess!!!
XML sample:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE slideshow[
<!ELEMENT slideshow (item)*>
<!ELEMENT item (CDATA)>
]>
<slideshow>
<item><![CDATA[Diagram:
frobmorten <------------ fuznaten
| <3> ^
| <1> | <1> = fozzle
V | <2> = framboze
staten--------------------+ <3> = frenzle
<2>
]]></item>
</slideshow>
Java Source code from Sun:
* @(#)DomEcho01.java 1.9 98/11/10
* Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved.
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import java.io.File;
import java.io.IOException;
import org.w3c.dom.Document;
import org.w3c.dom.DOMException;
public class DomEcho01{
// Global value so it can be ref'd by the tree-adapter
static Document document;
public static void main(String argv[])
if (argv.length != 1) {
System.err.println("Usage: java DomEcho filename");
System.exit(1);
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
factory.setValidating(true);
//factory.setNamespaceAware(true);
try {
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.parse( new File(argv[0]) );
} catch (SAXException sxe) {
// Error generated during parsing)
Exception x = sxe;
if (sxe.getException() != null)
x = sxe.getException();
x.printStackTrace();
} catch (ParserConfigurationException pce) {
// Parser with specified options can't be built
pce.printStackTrace();
} catch (IOException ioe) {
// I/O error
ioe.printStackTrace();
} // mainFor SAX, it appears that nonvalidating parser would
ignore white space if DTD is there (I state this based
on the example from Sun's tutorial site). I am not
sure about DOM.Well, SAX would not use the characters method to report ignorable whitespace, when validating is true it must go through the ignorableWhitespace() callback. Non-validating parsers have a choice of using ignorableWhitespace() or characters callback. Still, stuff inside a CDATA section will always be reported as is, no whitespace will be ignored. For DOM you have to check the supported features if it allows you to change its behaviour regarding whitespace. Take also a look at the Node.normalize() method and there's always trim().
About CDATA, I wonder if I still can use it if my data
has something like:
]]> in the middle of it.
That'll be a problem. In that case, you'd have to escape the '<' character. -
Hi,
I am installing SAP 4.7 Enterprise on Red Hat 5.3 and Oracle 10.2.0.4. When I install 4.7 Enterpirse I have an error in catproc.sql phase like below: -
ERROR 2009-06-02 18:42:34
CJS-00084 SQL statement or script failed.<br>DIAGNOSIS: Error message: ORA-955 for defaultdestSQL> Rem bnainani 11/29/00 - specify compatible=8.0 for create_queue_tableSQL> Rem liwong 10/20/00 - add def$_destination.flagSQL> Rem bnainani 11/15/00 - specify compatible=8.0 for queue tableSQL> Rem narora 09/13/00 - add comment on new def$_destination columnsSQL> Rem liwong 09/01/00 - add master w/o quiesce: fixesSQL> Rem liwong 07/12/00 - add total_prop_time_latSQL> Rem liwong 06/29/00 - add total_txn_count, total_prop_timeSQL> Rem liwong 05/17/00 - add_master_db w/o quiesceSQL> Rem jstamos 05/17/00 - add_master_db w/o quiesceSQL> Rem elu 01/24/00 - add column apply_init to def$_destinationSQL> Rem alakshmi 12/02/99 - Bug 979398: Before-row insert trigger onSQL> Rem def$_propagatorSQL> Rem wesmith 10/31/98 - change shape of table def$_pushed_transactionsSQL> Rem jnath 02/23/98 - bug 601972: split anonymous pl/sql blocksSQL> Rem wesmith 01/21/98 - create def$_pushed_transactions table forSQL> Rem server-side RepAPISQL> Rem nbhatt 07/27/97 - change create_queuetable -> create_queue_tableSQL> Rem nbhatt 04/21/97 - change 'TRACKING' in CREATE_QUEUE to 'DEPENDENCYSQL> Rem nbhatt 04/21/97 - change syntax of create_queueSQL> Rem liwong 04/16/97 - Alter view system.AQ$DEF$_AQ{CALL,ERROR}SQL> Rem liwong 04/11/97 - Fixing defaultdest_primary typoSQL> Rem jstamos 04/10/97 - remove unneeded indexesSQL> Rem nbhatt 04/08/97 - change create_qtable to create_queuetableSQL> Rem jstamos 04/04/97 - tighter AQ integrationSQL> Rem liwong 04/02/97 - Add schema_name, package_name in def$_calldestSQL> Rem ato 03/31/97 - create_qtable interface changeSQL> Rem liwong 03/25/97 - remove batch_no from def$_tranorderSQL> Rem liwong 02/24/97 - pctversion --> 0 for def$_aqcall, def$_aqerrorSQL> Rem liwong 02/22/97 - Remove dropping view aq$def$_aqcallSQL> Rem ademers 02/07/97 - Remove constraint def$_calldest_callSQL> Rem liwong 01/11/97 - drop and create aq$def$_aqcall (temporary)SQL> Rem liwong 01/10/97 - Alter view aq$def$_aqcallSQL> Rem liwong 01/07/97 - Alter default value for batch_noSQL> Rem jstamos 12/23/96 - change temp$nclob colSQL> Rem jstamos 11/21/96 - nchar supportSQL> Rem sjain 11/11/96 - Remove dummy buffer # commentSQL> Rem asgoel 11/05/96 - Disable misc_tracking in def$_aqerrorSQL> Rem sjain 11/06/96 - deferror changesSQL> Rem vkrishna 10/28/96 - change STORED IN to STORE AS for lobSQL> Rem sjain 10/02/96 - Aq conversionSQL> Rem sbalaram 09/24/96 - ARPC performance - add foreign key indexSQL> Rem jstamos 09/06/96 - rename temp$lob and temporarily change nclobSQL> Rem sjain 09/03/96 - AQ conversonSQL> Rem ademers 08/02/96 - queue_batch default in def_destinationSQL> Rem ademers 07/29/96 - queue_batch default in def_callSQL> Rem ademers 07/29/96 - queue_batch defaultSQL> Rem jstamos 07/24/96 - add system.temp$lobSQL> Rem sbalaram 07/22/96 - create def$_aqcall and def$_aqerror tablesSQL> Rem jstamos 06/12/96 - LOB support for deferred RPCsSQL> Rem ldoo 06/28/96 - Comment out queue_table from def_tranorderSQL> Rem ademers 05/30/96 - create def_originSQL> Rem ademers 05/28/96 - fix def_destination col namesSQL> Rem ldoo 05/09/96 - New security modelSQL> Rem sjain 05/01/96 - add seq col to def_destinationSQL> Rem ademers 04/29/96 - add batch_no, dep_scn to def_callSQL> Rem jstamos 12/04/95 - 324303: use index to avoid sorting the queueSQL> Rem jstamos 08/17/95 - code review changesSQL> Rem jstamos 08/16/95 - add comments to tablesSQL> Rem wmaimone 01/04/96 - 7.3 mergeSQL> Rem hasun 01/31/95 - Modify tables.<br>SOLUTION: See ora_sql_results.log and the Oracle documentation for details.
Also some error lines in ora_sql_results.log file like below:
Connected to an idle instance.
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Disconnected
DOC> The following statement will cause an "ORA-01722: invalid number"
DOC> error and terminate the SQLPLUS session if the user is not SYS.
DOC> Disconnect and reconnect with AS SYSDBA.
ERROR at line 1:
ORA-01432: public synonym to be dropped does not exist
ERROR at line 1:
ORA-00942: table or view does not exist
DOC> The following PL/SQL block will cause an ORA-20000 error and
DOC> terminate the current SQLPLUS session if the user is not SYS.
DOC> Disconnect and reconnect with AS SYSDBA.
ERROR at line 1:
ORA-01921: role name 'EXP_FULL_DATABASE' conflicts with another user or role
name
ERROR at line 1:
ORA-01434: private synonym to be dropped does not exist
ERROR at line 1:
ORA-04043: object DIANA does not exist
ERROR at line 1:
ORA-04043: object DIUTIL does not exist
ERROR at line 1:
ORA-04043: object DIUTIL does not exist
ERROR at line 1:
ORA-04043: object SUBPTXT2 does not exist
ERROR at line 1:
ORA-04043: object CREATE_TABLE_COST_COLUMNS does not exist
ERROR at line 1:
ORA-01434: private synonym to be dropped does not exist
And ora_sql.log file is:
connect / as sysdba ;
SHUTDOWN ABORT;
exit;
Executed successfully.
connect / as sysdba ;
SHUTDOWN IMMEDIATE;
exit;
Executed with error.
connect / as sysdba ;
STARTUP NOMOUNT;
exit;
Executed successfully.
connect / as sysdba ;
CREATE DATABASE MDP CONTROLFILE REUSE MAXLOGFILES 255 MAXLOGMEMBERS 3 MAXLOGHISTORY 1000 MAXDATAFILES 254 MAXINSTANCES 50 NOARCHIVELOG CHARACTER SET UTF8 NATIONAL CHARACTER SET UTF8 DATAFILE '/oracle/MDP/sapdata1/system_1/system.data1' SIZE 350M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M EXTENT MANAGEMENT LOCAL DEFAULT TEMPORARY TABLESPACE PSAPTEMP TEMPFILE '/oracle/MDP/sapdata1/temp_1/temp.data1' SIZE 1750M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M UNDO TABLESPACE PSAPUNDO DATAFILE '/oracle/MDP/sapdata1/undo_1/undo.data1' SIZE 700M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M SYSAUX DATAFILE '/oracle/MDP/sapdata1/sysaux_1/sysaux.data1' SIZE 1000M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE 10000M
LOGFILE GROUP 1 ('/oracle/MDP/origlogA/log_g11m1.dbf',
'/oracle/MDP/mirrlogA/log_g11m2.dbf') SIZE 50M REUSE ,
GROUP 2 ('/oracle/MDP/origlogB/log_g12m1.dbf',
'/oracle/MDP/mirrlogB/log_g12m2.dbf') SIZE 50M REUSE ,
GROUP 3 ('/oracle/MDP/origlogA/log_g13m1.dbf',
'/oracle/MDP/mirrlogA/log_g13m2.dbf') SIZE 50M REUSE ,
GROUP 4 ('/oracle/MDP/origlogB/log_g14m1.dbf',
'/oracle/MDP/mirrlogB/log_g14m2.dbf') SIZE 50M REUSE
exit;
Executed successfully.
connect / as sysdba ;
set newpage 0
set space 0
set pagesize 0
set linesize 32767
set markup HTML off
set heading off
set verify off
set feedback off
set trimspool on
set sqlprompt SQL>
set termout on
set verify off
set echo off
spool ora_query3_tmp0_1.res
SELECT STATUS FROM V$INSTANCE;
spool off
exit;
Executed successfully.
connect / as sysdba ;
@@/oracle/MDP/102_64/rdbms/admin/catalog.sql
exit;
Executed successfully.
connect / as sysdba ;
set newpage 0
set space 0
set pagesize 0
set linesize 32767
set markup HTML off
set heading off
set verify off
set feedback off
set trimspool on
set sqlprompt SQL>
set termout on
set verify off
set echo off
spool ora_query3_tmp0_1.res
SELECT STATUS FROM V$INSTANCE;
spool off
exit;
Executed successfully.
connect / as sysdba ;
@@/oracle/MDP/102_64/rdbms/admin/catblock.sql
exit;
Executed successfully.
connect / as sysdba ;
set newpage 0
set space 0
set pagesize 0
set linesize 32767
set markup HTML off
set heading off
set verify off
set feedback off
set trimspool on
set sqlprompt SQL>
set termout on
set verify off
set echo off
spool ora_query3_tmp0_1.res
SELECT STATUS FROM V$INSTANCE;
spool off
exit;
Executed successfully.
connect / as sysdba ;
@@/oracle/MDP/102_64/rdbms/admin/catproc.sql
exit;
Executed with error.
connect / as sysdba ;
set newpage 0
set space 0
set pagesize 0
set linesize 32767
set markup HTML off
set heading off
set verify off
set feedback off
set trimspool on
set sqlprompt SQL>
set termout on
set verify off
set echo off
spool ora_query3_tmp0_1.res
SELECT STATUS FROM V$INSTANCE;
spool off
exit;
Executed successfully.
connect / as sysdba ;
@@/oracle/MDP/102_64/rdbms/admin/catproc.sql
exit;
Executed with error.
connect / as sysdba ;
set newpage 0
set space 0
set pagesize 0
set linesize 32767
set markup HTML off
set heading off
set verify off
set feedback off
set trimspool on
set sqlprompt SQL>
set termout on
set verify off
set echo off
spool ora_query3_tmp0_1.res
SELECT STATUS FROM V$INSTANCE;
spool off
exit;
Executed successfully.
connect / as sysdba ;
@@/oracle/MDP/102_64/rdbms/admin/catproc.sql
exit;
Executed with error.
connect / as sysdba ;
set newpage 0
set space 0
set pagesize 0
set linesize 32767
set markup HTML off
set heading off
set verify off
set feedback off
set trimspool on
set sqlprompt SQL>
set termout on
set verify off
set echo off
spool ora_query3_tmp0_1.res
SELECT STATUS FROM V$INSTANCE;
spool off
exit;
Executed successfully.
connect / as sysdba ;
@@/oracle/MDP/102_64/rdbms/admin/catproc.sql
exit;
Executed with error.
connect / as sysdba ;
set newpage 0
set space 0
set pagesize 0
set linesize 32767
set markup HTML off
set heading off
set verify off
set feedback off
set trimspool on
set sqlprompt SQL>
set termout on
set verify off
set echo off
spool ora_query3_tmp0_1.res
SELECT STATUS FROM V$INSTANCE;
spool off
exit;
Executed successfully.
connect / as sysdba ;
@@/oracle/MDP/102_64/rdbms/admin/catproc.sql
exit;
Executed with error.
The errors are like these. How can I correct these errors and continue to installation? Is the oracle version 10.2.0.4 not correct version to install 4.7 enterprise on Red Hat Linux 5.3?
Best regards,Hi Markus,
I found 5 ERROR. There are different lines.
First one:
<fld name="STATUS">
<strval><![CDATA[ERROR]]>
Second one:
CASE (= 'AUTOALLOCATE') RETURN (' AUTOALLOCATE '),
CASE (DEFAULT) RETURN (' ERROR ' + (tTablespaces.extMgmtAllocMode
Third one:
CASE (= 'DICTIONARY') RETURN (' DICTIONARY '),
CASE (DEFAULT) RETURN (' ERROR ' + (tTablespaces.extMgmtMode
Fourth one:
CASE (= 'AUTOALLOCATE') RETURN (' AUTOALLOCATE '),
CASE (DEFAULT) RETURN (' ERROR ' + (tTablespaces.extMgmtAllocMode
Fifth one:
CASE (= 'DICTIONARY') RETURN (' DICTIONARY '),
CASE (DEFAULT) RETURN (' ERROR ' + (tTablespaces.extMgmtMode
Which one will I change to OK? Must all off them change to OK?
Also is this problem about only these oracle error in your oppinion? For example in first line of ora_sql_results.log I have an error like below:
CJS-00084 SQL statement or script failed
Connected to an idle instance.
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
But ORACLE_HOME and ORACLE_SID environment variable are ok. Also I can connect and start and stop database manually. There is no problem about it.
I installed anly Oracle patch 10.2.0.4. I didn't install any oracle interim patch. Should I have install oracle interim patch for Oracle 10.2.0.4?
Best regards, -
Validator error - Extra data was encountered.
Hi All,
I am working on Outbound EDI870, getting below Error:
2010.06.03 at 04:33:34:988: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (ERROR) Error -: B2B-51505: General validation error.
at oracle.tip.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:2539)
at oracle.tip.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1279)
at oracle.tip.b2b.msgproc.Request.outgoingRequest(Request.java:790)
at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1201)
at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:713)
at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:2754)
at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:2444)
at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:464)
at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:180)
at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77)
at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:171)
at java.lang.Thread.run(Thread.java:619)
2010.06.03 at 04:33:34:988: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) Engine: processOutgoingMessageImpl: B2BDomainException
2010.06.03 at 04:33:34:988: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.engine.Engine:handleOutboundException Updating Error Message: Error -: B2B-51505: General validation error.
2010.06.03 at 04:33:34:988: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) DbAccess:updateWireBusinessToErrorState
2010.06.03 at 04:33:34:988: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Enter
2010.06.03 at 04:33:34:989: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Enter
2010.06.03 at 04:33:34:989: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Got RTP Context
2010.06.03 at 04:33:35:006: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Got 1messages for field messageId with value 1410017
2010.06.03 at 04:33:35:007: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Exit
2010.06.03 at 04:33:35:007: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: findWireMessageByB2BMessageId: querying for id = 1410017
2010.06.03 at 04:33:35:007: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: findWireMessageByB2BMessageId: Returning null
2010.06.03 at 04:33:35:007: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Wire message not found.
2010.06.03 at 04:33:35:008: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Updating business message error information
2010.06.03 at 04:33:35:008: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Enter:
2010.06.03 at 04:33:35:008: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Got RTP Context
2010.06.03 at 04:33:35:008: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Exit
2010.06.03 at 04:33:35:009: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateAppMessageState Enter
2010.06.03 at 04:33:35:009: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: getAppMessageById: Enter appMsg id = 7F000001128FCF1A4C600000EA6A8D00
2010.06.03 at 04:33:35:009: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: getAppMessageById: Got RTP Context
2010.06.03 at 04:33:35:012: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: getAppMessageById: Got [1] messages for AppMessage ID 7F000001128FCF1A4C600000EA6A8D00
2010.06.03 at 04:33:35:012: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: getAppMessageById: Exit
2010.06.03 at 04:33:35:013: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:setAppMsgErrorInfo Enter
2010.06.03 at 04:33:35:013: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:setAppMsgErrorInfo Setting AppMessage to ERROR
2010.06.03 at 04:33:35:013: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:setAppMsgErrorInfo Exitr
2010.06.03 at 04:33:35:013: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Enter:
2010.06.03 at 04:33:35:013: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Got RTP Context
2010.06.03 at 04:33:35:014: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Exit
2010.06.03 at 04:33:35:014: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateAppMessageState Exit
2010.06.03 at 04:33:35:014: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:DbAccess:updateMsgError(3 params) Enter
2010.06.03 at 04:33:35:015: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Enter:
2010.06.03 at 04:33:35:015: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Got RTP Context
2010.06.03 at 04:33:35:016: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: updateObject: Exit
2010.06.03 at 04:33:35:016: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:DbAccess:updateMsgError(3 params) Exit
2010.06.03 at 04:33:35:016: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.engine.Engine:handleOutboundException Updating Native Event Tbl Row
2010.06.03 at 04:33:35:016: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:updateNativeEvtTblRow Enter
2010.06.03 at 04:33:35:017: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Enter
2010.06.03 at 04:33:35:017: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Got RTP Context
2010.06.03 at 04:33:35:019: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Got 1messages for field messageId with value 1410017
2010.06.03 at 04:33:35:019: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: queryById: Exit
2010.06.03 at 04:33:35:019: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: findWireMessageByB2BMessageId: querying for id = 1410017
2010.06.03 at 04:33:35:019: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.ToplinkHelper: findWireMessageByB2BMessageId: Returning null
2010.06.03 at 04:33:35:019: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) DbAccess:updateNativeEvtTblRowGot WireMessage with B2BMessage ID 1410017
2010.06.03 at 04:33:35:020: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.msgproc.DbAccess:
** DbAccess:updateNativeEvtTblRow:tip_wireMsg wiremsg not found
2010.06.03 at 04:33:35:020: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) oracle.tip.b2b.engine.Engine:handleOutboundException notifying App
2010.06.03 at 04:33:35:020: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) Notification: notifyApp: Enter
2010.06.03 at 04:33:35:020: oracle.integration.platform.blocks.executor.WorkManagerExecutor$1@8f1195: B2B - (DEBUG) Notification: notifyApp: payload = <Exception xmlns="http://integration.oracle.com/B2B/Exception" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<correlationId>7F000001128FCF1A4C600000EA6A8D00</correlationId>
<b2bMessageId>1410017</b2bMessageId>
<errorCode>B2B-51505</errorCode>
<errorText>
Error Brief :
Validator error - Extra data was encountered.
An X12 syntax error occurred.
An X12 syntax error occurred.
Validator error - Extra data was encountered.
Validator error - Extra data was encountered.
A data element with 'Mandatory' status is missing.
</errorText>
<errorDescription>
<![CDATA[
Error :
Extra Element was found in the data file as part of Segment REF. Segment REF is defined in the guideline at position 046.{br}{br}This error was detected at:{br}{tab}Segment Count: 3{br}{tab}Element Count: 2{br}{tab}Characters: 567 through 575
At least one of REF02, REF03 must be present. The syntax rule R0203 of Segment REF is violated. Segment REF is defined in the guideline at position 046.{br}{br}This error was detected at:{br}{tab}Segment Count: 3{br}{tab}Element Count: 2{br}{tab}Characters: 593 through 593
At least one of REF02, REF03 must be present. The syntax rule R0203 of Segment REF is violated. Segment REF is defined in the guideline at position 046.{br}{br}This error was detected at:{br}{tab}Segment Count: 3{br}{tab}Element Count: 3{br}{tab}Characters: 593 through 593
Extra Element was found in the data file as part of Segment ISR. Segment ISR is defined in the guideline at position 030.{br}{br}This error was detected at:{br}{tab}Segment Count: 6{br}{tab}Element Count: 1{br}{tab}Characters: 870 through 872
Extra Element was found in the data file as part of Segment ISR. Segment ISR is defined in the guideline at position 030.{br}{br}This error was detected at:{br}{tab}Segment Count: 6{br}{tab}Element Count: 2{br}{tab}Characters: 907 through 915
Element ISR01 (Shipment/Order Status Code) is missing. This Element's standard option is 'Mandatory'. Segment ISR is defined in the guideline at position 030.{br}{br}This Element was expected in:{br}{tab}Segment Count: 6{br}{tab}Element Count: 1{br}{tab}Character: 933
]]>
</errorDescription>
<errorSeverity>2</errorSeverity>
</Exception>
Even though I am providing REF01 and ISR01 values, I am getting this Error.
Below is my XML payload.
<?xml version="1.0" encoding="UTF-8" ?>
- <Transaction-870 xmlns:ns0="http://www.edifecs.com/xdata/200" Standard="X12" xmlns="http://www.edifecs.com/xdata/200">
- <ns0:Segment-ST>
<ns0:Element-143>870</ns0:Element-143>
<ns0:Element-329>000000043</ns0:Element-329>
</ns0:Segment-ST>
- <ns0:Segment-BSR>
<ns0:Element-850>3</ns0:Element-850>
<ns0:Element-847>PA</ns0:Element-847>
<ns0:Element-127>3110000031OTM_TestPR</ns0:Element-127>
<ns0:Element-373>20100603</ns0:Element-373>
</ns0:Segment-BSR>
- <ns0:Loop-REF>
- <ns0:Segment-REF>
<ns0:Element-128>VR</ns0:Element-128>
<ns0:Element-127>RHEEM002</ns0:Element-127>
</ns0:Segment-REF>
</ns0:Loop-REF>
- <ns0:Loop-HL>
- <ns0:Segment-HL>
<ns0:Element-628>1</ns0:Element-628>
<ns0:Element-735>O</ns0:Element-735>
</ns0:Segment-HL>
- <ns0:Segment-PRF>
<ns0:Element-324>OTM_Test</ns0:Element-324>
</ns0:Segment-PRF>
- <ns0:Loop-ISR>
- <ns0:Segment-ISR>
<ns0:Element-368>PR</ns0:Element-368>
<ns0:Element-373>20100531</ns0:Element-373>
</ns0:Segment-ISR>
</ns0:Loop-ISR>
</ns0:Loop-HL>
- <ns0:Loop-HL>
- <ns0:Segment-HL>
<ns0:Element-628>2</ns0:Element-628>
<ns0:Element-735>I</ns0:Element-735>
</ns0:Segment-HL>
- <ns0:Loop-PO1>
- <ns0:Segment-PO1>
<ns0:Element-350>1</ns0:Element-350>
<ns0:Element-330>2</ns0:Element-330>
<ns0:Element-355>EA</ns0:Element-355>
<ns0:Element-235>SK</ns0:Element-235>
<ns0:Element-234>6836003</ns0:Element-234>
<ns0:Element-235_1>VP</ns0:Element-235_1>
<ns0:Element-234_1>TAHM ITEM</ns0:Element-234_1>
</ns0:Segment-PO1>
- <ns0:Segment-PID>
<ns0:Element-349>F</ns0:Element-349>
<ns0:Element-352>TAHM ITEM</ns0:Element-352>
</ns0:Segment-PID>
</ns0:Loop-PO1>
</ns0:Loop-HL>
- <ns0:Segment-CTT>
<ns0:Element-354>2</ns0:Element-354>
</ns0:Segment-CTT>
- <ns0:Segment-SE>
<ns0:Element-96>11</ns0:Element-96>
<ns0:Element-329>000000043</ns0:Element-329>
</ns0:Segment-SE>
</Transaction-870>
Thanks in Advance
RavdeepHi Ravdeep,
Have you validated the payload against the ecs using document editor? If no, please do so.
Also refer -
5084: XEngine error - Invalid data (outbound with validation disabled)
Please paste the complete B2B log here/mail it to my id (in my profile)
Regards,
Anuj -
From my application log I see an exception where it tries to call the oracle.xml.parser.v2.XSLProcessor.
The servlet for the login screen (XSL transformation) takes XML and returns HTML. Actually for the xml parsing
we use xerces I don't understand why we would call the ORACLE parser? Do you have any idea? Is this a CLASSPATH
or configuration problem? Is there a way to use the xml parser xerces instead the oracle one.
<log4j:event logger="com.siemens.srvcmgmt.common.server.PresentationHandler" timestamp="1052834094464" level="DEBUG" thread="ApplicationServerThread-5">
<log4j:message><![CDATA[Error: ]]></log4j:message>
<log4j:NDC><![CDATA[1 Security doPost sendLoginScreen PresentationHandler transformIt]]></log4j:NDC>
<log4j:throwable><![CDATA[java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:375)
at oracle.xml.parser.v2.XSLProcessor.setParam(XSLProcessor.java:658)
at oracle.xml.jaxp.JXTransformer.setParameter(JXTransformer.java:385)
at com.siemens.srvcmgmt.common.server.PresentationHandler.transformIt(PresentationHandler.java:149)
at com.siemens.srvcmgmt.smc.servlet.Security.sendLoginScreen(Security.java:596)
at com.siemens.srvcmgmt.smc.servlet.Security.doPost(Security.java:105)
at com.siemens.srvcmgmt.smc.servlet.Security.doGet(Security.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Thread.java:479)
]]></log4j:throwable>From my application log I see an exception where it tries to call the oracle.xml.parser.v2.XSLProcessor.
The servlet for the login screen (XSL transformation) takes XML and returns HTML. Actually for the xml parsing
we use xerces I don't understand why we would call the ORACLE parser? Do you have any idea? Is this a CLASSPATH
or configuration problem? Is there a way to use the xml parser xerces instead the oracle one.
<log4j:event logger="com.siemens.srvcmgmt.common.server.PresentationHandler" timestamp="1052834094464" level="DEBUG" thread="ApplicationServerThread-5">
<log4j:message><![CDATA[Error: ]]></log4j:message>
<log4j:NDC><![CDATA[1 Security doPost sendLoginScreen PresentationHandler transformIt]]></log4j:NDC>
<log4j:throwable><![CDATA[java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:375)
at oracle.xml.parser.v2.XSLProcessor.setParam(XSLProcessor.java:658)
at oracle.xml.jaxp.JXTransformer.setParameter(JXTransformer.java:385)
at com.siemens.srvcmgmt.common.server.PresentationHandler.transformIt(PresentationHandler.java:149)
at com.siemens.srvcmgmt.smc.servlet.Security.sendLoginScreen(Security.java:596)
at com.siemens.srvcmgmt.smc.servlet.Security.doPost(Security.java:105)
at com.siemens.srvcmgmt.smc.servlet.Security.doGet(Security.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Thread.java:479)
]]></log4j:throwable> -
HL7 Outbound runtime error: "Mandatory attribute missing: Standard"?
I am trying to develop an outbound HL7 v2 solution. I have a composite that picks up an XML message, transforms it to a HL7 v2 XML, popuates b2b. properties and hads the payload over to teh B2B. The partners and partnerships are, seemingly, OK. Yet, I get a runtime error "Mandatory attribute missing: Standard". What am I missing?
The error (one of them anyway) looks like that below.
Thanks in advance for any pointers that anyone may be able to offer.
Regards
Michael
[2010-06-25T09:13:34.437+10:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@157bfbf] [userId: <anonymous>] [ecid: 0000I_gFDdOESOYjLpyGOA1C8Mno0005_G,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [dcid: 3df7286553d16a99:75be56fb:129629445e0:-7fd3-000000000000004e] [SRC_METHOD: synchedLog_J] Notification: notifyApp: Enqueue the exception message:[[
<Exception xmlns="http://integration.oracle.com/B2B/Exception" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<correlationId>C0A8A4811296C3CD78A000001FFF4A70</correlationId>
<b2bMessageId>34373438353435383437393236303338</b2bMessageId>
<errorCode>B2B-51507</errorCode>
<errorText>
<![CDATA[
Error Brief :
XEngine error.
]]>
</errorText>
<errorDescription>
<![CDATA[
Error :
Mandatory attribute missing: Standard.
]]>
</errorDescription>
<errorSeverity>2</errorSeverity>
<errorDetails>
<parameter name="b2b.messageId" value="34373438353435383437393236303338"/>
<parameter name="b2b.documentTypeName" value="ADT_A01"/>
<parameter name="b2b.documentProtocolVersion" value="2.3.1"/>
<parameter name="b2b.documentDefinitionName" value="ADT_A01_DocDef"/>
<parameter name="b2b.documentProtocolName" value="HL7"/>
<parameter name="b2b.messageType" value="1"/>
<parameter name="b2b.fromTradingPartnerId" value="LocalHL7Receiver"/>
<parameter name="b2b.fromTradingPartnerIdType" value="Name"/>
<parameter name="b2b.toTradingPartnerId" value="127.0.0.1"/>
<parameter name="b2b.toTradingPartnerIdType" value="MLLP ID"/>
</errorDetails>
</Exception>
[2010-06-25T09:13:34.437+10:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@157bfbf] [userId: <anonymous>] [ecid: 0000I_gFDdOESOYjLpyGOA1C8Mno0005_G,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [dcid: 3df7286553d16a99:75be56fb:129629445e0:-7fd3-000000000000004e] [SRC_METHOD: synchedLog_J] Notification: deliverException: Send message to endpoint IP_IN_QUEUEAnswering my own question - I needed to populate the Standard attribute of the outbound message with teh string HL7. I populated Version attribute with 2,3,1 just for a good measure. Things now work.
-
Installation error with SWPM 1.3 for 70x on Win/Ora
Hello
We face a vicious error when performing a system copy of a 7.01 system with the latest version of SWMP (70SWPM10SP01_3-20009707.sar).
At the database creation step (just after oradim has created the instance ) we get that error
sapinst_loginquirer.sys.log
FJS-00010 Could not get value for property
The solution was to edit the default pfile (D:\oracle\SID\11203\database\initiSID.ora) that was messed up.
The LOG_ARCHIVE_DEST_1 parameter as some '&' character
log_archive_dest_1 = 'LOCATION=E:\oracle\BWT\oraarch\BWTarch'
just replace ' with '
Hope this will save you timeHello Yves,
Stop SAPINST (SWPM ).
Edit file ControllerKdbClient.dmp in your instdir directory
Find string ERROR in this file.... you will find CDATA [ERROR]...... change ERROR => OK
Restart installation with below command.
./sapinst SAPINST_SKIP_ERRORSTEP=true
Regards,
Jairo Pedroza -
Hi All.
Now I try to import dataobjects that has some lookup data by ICommand.
When I done command
ICommand cmd=import file="c:\temp\dataobject.Services.Email.xml" updatelayout="1" domain=MY-MACHINE logfile="c:\temp\import.log"
Then logfile has these messeages
<?xml version="1.0" encoding="utf-8"?>
<ICommandLog Login="MYDOMAIN\USERID">
<Results Command="import">0 items imported.</Results>
<Error Command="import"><![CDATA[Error while processing command "import".
[ErrorSource="ICommandEngine", ErrorID="ICommandEngine.Error"]
Error while creating Data Object.
[ErrorSource="ImportExport", ErrorID="Import.DataObject.Create"]
You do not have permission to perform the requested action.
[ErrorSource="ActiveDataCache", ErrorID="ADCPermissionMissing"]]]></Error>
</ICommandLog>
Do I have some check points?
Please help me.
yamasakiHi Dear ssondur.
Thank you so much for your response.
Actually today I removed the ORACLEBAM and tried to install again,so then
to the wonderful thing,Data was able to be imported in satisfactorily.
I guess that the database schema was broken(There is no telling why be)
So now the problem is solvable.
But I tried to your advice when I will meet the same error.
If something is, please give me advice again. -
Sapinst error backup/restore phase create controlfile
Hello experts
I am doing a homogeneous system copy using database specific tools backup/restore.Oracle 10.2.0.5, HP-UX, ECC 6.0
Source = ZD1 and Target = ZD1 (Yes they are both same) Source was a fresh install with brand new Export data (SID = ZD1) and now we are replacing the database with a copy of our existing Dev system (also SID = ZD1)
Restored the backup over target using OFFLINE backup. Have not run any "recover database ...." or "alter database open resetlogs" yet because sapinst is suppose to do this.
My control script looks like this: filename = CONTROL.SQL
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE SET DATABASE "ZD1" RESETLOGS ARCHIVELOG
MAXLOGFILES 255
MAXLOGMEMBERS 3
MAXDATAFILES 254
MAXINSTANCES 50
MAXLOGHISTORY 23371
LOGFILE
GROUP 1 (
'/oracle/ZD1/origlogA/log_g11m1.dbf',
then all the data file paths (which I verified to be correct)
ends with:
'/oracle/ZD1/sapdata4/sr3_61/sr3.data61',
'/oracle/ZD1/sapdata4/sr3_62/sr3.data62'
CHARACTER SET UTF8
Now here is the issue:
1) When I manually run the CONTROL.SQL and then just do a alter database open resetlogs everything is fine. Database mounts and opens fine. However when I run the sapinst it tries to run the CONTROL.SQL again and messes up everything. I would like to skip this phase in sapinst and change ERROR to OK in keydb.xml file. Question is when should I do this ? Before starting sapinst so that it skips this or during the phase it stops and asks for backup/restore ?
2) Instead creating files manually I also let sapinst do this. But it throws an error during control file creation. When I used the above CONTROL.SQL it says must use resetlogs to open database. Then I restored all over again and added the line alter database open resetlogs at the end of CONTROL.SQL
'/oracle/ZD1/sapdata4/sr3_61/sr3.data61',
'/oracle/ZD1/sapdata4/sr3_62/sr3.data62'
CHARACTER SET UTF8
ALTER DATABASE OPEN RESTLOGS;
And then ran sapinst again from scratch and now it throws error file 1 needs media recovery.
This is weird and I don't know why sapinst acting smart here and wont let me do it and when it does it by himself it messes up.
Is my CONTROL.SQL scripts correct ? Whats the best approach here.
Thank youHello Nicholas
Thank you. I have replaced the CONTROL>SQL in the installation directory itself. Its in /tmp/sapinst_instdir/ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS And yes it IS picking up the control.sql that I provided and not the default.
DatabaseSAP
Thank you. I have never commented anything in keydb.xml before. But sounds like a good idea because if I can restore it myself I really want to skip this step. Should I just do it before start of sapinst and what exact lines to comment ? Which keydb should I edit ? I found several but looks like ./ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS/keydb.xml is the right one.
root@zepsapa1 # find . -name keydb.xml
./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/DB/keydb.xml
./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/DB/log_20_Apr_2011_05_48_52/keydb.xml
./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/DB_backup/keydb.xml
./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/SCS/keydb.xml
./NW04S/LM/PRC/keydb.xml
./NW04S/LM/UNINSTALL/AS/keydb.xml
./NW04S/LM/UNINSTALL/AS/log_05_Dec_2011_07_39_50/keydb.xml
./ERP/LM/USR/keydb.xml
./ERP/LM/USR/log_15_Dec_2011_15_43_02/keydb.xml
./ERP/LM/USR/log_14_Dec_2011_16_15_35/keydb.xml
./ERP/LM/PRC/keydb.xml
./ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS/keydb.xml
./ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS/log_19_Dec_2011_08_48_00/keydb.xml
./ERP/SYSTEM/ORA/CENTRAL/AS/keydb.xml
./ERP/SYSTEM/ORA/CENTRAL/AS/log_16_Dec_2011_12_41_11/keydb.xml
./ERP/SYSTEM/ORA/CENTRAL/AS/log_16_Dec_2011_13_03_45/keydb.xml
./ERP/SYSTEM/ORA/CENTRAL/AS/log_18_Dec_2011_08_05_17/keydb.xml
Also what exactly am I commenting here ? I see step RunControlScript is the one causing problems and I dont want it to create any control files. Please advise what exactly I need to comment and when. And what about changing the ERROR to OK ?
<strval><![CDATA[]]>
</strval>
</fld>
</row>
<row>
<fld name="STEPKEY">
<strval><![CDATA[|NW_Doublestack_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBOBR|ind|ind|ind|ind|1|0|NW_OraOBR|ind|ind|ind|ind|4|0|RunControlScript]]>
</strval>
</fld>
<fld name="STATUS">
<strval><![CDATA[ERROR]]>
</strval>
</fld>
<fld name="STOP_BEFORE">
<strval><![CDATA[]]>
</strval>
</fld>
<fld name="STOP_AFTER">
<strval><![CDATA[]]>
</strval>
Thank you -
I've gotten the following message and can see what data is being returned, etc. (logs and audits), but the error doesn't explain any specifics. Is there a way to determine what character(s) my CDATA error is referring to?:
09 Aug 2004 10:53:36,092 ERROR FollowUpsController: Exception thrown while retrieving follow ups during getFollowUpsAndReferrals():
com.bea.wli.bpm.proxy.JpdProxyException: java.rmi.UnmarshalException: cannot unmarshaling return; nested exception is:
java.io.IOException: error: Unexpected element: CDATA
Thanks,
Dave Higginshttp://search.java.sun.com/Search/java?col=javafrm&qp=%2Bforum%3A54&qt=days+difference&x=12&y=11
-
Hi,
I have a project nicely running under tomcat 5.x and OC4J standalone 10.1.3 ...
Both rely on J2EE 1.4 accroding to what i understood ...
But production environnement is OAS 10.1.2.0.2 ... relying on J2EE 1.3 :(
Deploying the war don't work of course.
So i've made lots of search to find a way ... i have made a few steps forward but i think i need help now :s ...
Correct me if i'm wrong, to deploy J2EE 1.3 web app :
- java classes can be compiled with jdk 1.4.2_x but not 5.0,
- servlet api 2.3 and jsp 1.2 are needed,
- jstl can't be higher than 1.0.x.
So i refactored my code to make it compile with jdk 1.4.2_13.
Regarding servlet api and jsp, i suppose webapp is using the jars provided with OC4J.
Do i need to do anything else ?
I also made little customization of my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- uncomment the following if you're using the open-session-in-view pattern
note: that you'll need to update the filter-class value if you've changed
the defaults for the package and/or filter name
<filter>
<filter-name>OpenSessionInViewFilter</filter-name>
<filter-class>org.andromda.spring.presentation.AndroMDAOpenSessionInViewFilter</filter-class>
<init-param>
<param-name>singleSession</param-name>
<param-value>false</param-value>
</init-param>
</filter>
-->
<filter>
<filter-name>ResponseOverrideFilter</filter-name>
<filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
</filter>
<!-- uncomment the following if you're using the open-session-in-view pattern
<filter-mapping>
<filter-name>OpenSessionInViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ResponseOverrideFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.andromda.presentation.bpm4struts.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- precompilation merge-point -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- session-config merge-point -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>400</error-code>
<location><![CDATA[/error-page.jsp?code=400]]></location>
</error-page>
<error-page>
<error-code>403</error-code>
<location><![CDATA[/error-page.jsp?code=403]]></location>
</error-page>
<error-page>
<error-code>404</error-code>
<location><![CDATA[/error-page.jsp?code=404&resource=true]]></location>
</error-page>
<error-page>
<error-code>500</error-code>
<location><![CDATA[/error-page.jsp?code=500&exception=true]]></location>
</error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location><![CDATA[/error-page.jsp?code=exception&exception=true]]></location>
</error-page>
<!-- taglib merge-point -->
<!-- JSTL -->
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/lib/standard.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/lib/standard.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/xml</taglib-uri>
<taglib-location>/WEB-INF/lib/standard.jar</taglib-location>
</taglib>
<!-- STRUTS -->
<taglib>
<taglib-uri>/WEB-INF/tld/struts-bean-1.1.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-bean-1.1.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-html-1.1.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-html-1.1.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-tiles-1.1.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tiles-1.1.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/tld/struts-logic-1.1.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-logic-1.1.tld</taglib-location>
</taglib>
</web-app> Each time i start my OC4J container, i get this error :
07/02/06 11:37:05 gesprod: Error preloading servlet
javax.servlet.UnavailableException
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:368)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at org.andromda.presentation.bpm4struts.ActionServlet.init(ActionServlet.java:19)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)
at com.evermind.server.Application.getHttpApplication(Application.java:890)
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
at java.lang.Thread.run(Thread.java:534)If you could provide me some hints, it would be very kind of you.
Best regards,
Geoffrey JachimiakHi,
Some good news, JAAS was easily configured using web console.
I can navigate through my first forms.
I still got some errors, i think it is related to the way jsp and taglibs are mixed.
It may be different from jsp 2.0 ... i've read some docs about EL expressions ...
I'll deepen this :)
Here is the trace in application.log
07/02/06 14:26:39 gesprod: Servlet error
java.lang.IllegalArgumentException: can't parse argument number param.code
at java.text.MessageFormat.makeFormat(MessageFormat.java:1323)
at java.text.MessageFormat.applyPattern(MessageFormat.java:447)
at java.text.MessageFormat.<init>(MessageFormat.java:347)
at org.apache.struts.util.MessageResources.getMessage(MessageResources.java:287)
at org.apache.struts.taglib.TagUtils.message(TagUtils.java:1032)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:224)
at _error_2d_page._jspService(_error_2d_page.java:77)
at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:569)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:305)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:257)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at org.andromda.presentation.bpm4struts.ActionServlet.doPost(ActionServlet.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at org.andromda.presentation.bpm4struts.ActionServlet.doPost(ActionServlet.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)Best regards,
Geoffrey Jachimiak -
Obviously I'm doing something wrong because I can build my FlexUnit instance in ANT and get the verbose response that shows there were errors or not (I am using a simple test case and the SampleTests provided). Yet when I go to the report response (TESTS-TestSuites.xml) the file is empty:
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites />
I can run the FlexUnit4SampleCIProject and get the appropriate failures and report file, but not with my file. Any ideas why?
I extended my tests to be more than just one because I saw at one point there was a bug with that.
My ANT segment (my compile is earlier and successful):
<target name="executeTestRunner" description="executes the test runner app">
<echo>Running Test Runner SWF</echo>
<flexunit swf="${Test.dir}/${TestRunner.name}.swf"
toDir="${Report.dir}"
haltonfailure="false"
verbose="true"
localTrusted="true"/>
<echo>Ran Test Runner SWF</echo>
<echo>Generate Readable Tests</echo>
<junitreport todir="${Report.dir}">
<fileset dir="${Report.dir}">
<include name="Test-*.xml"/>
</fileset>
<report format="frames" todir="${Report.dir}/html"/>
</junitreport>
<echo>Generated Readable Tests</echo>
</target>
The FlexUnit4SampleCIProject's ANT segment:
<target name="test" depends="compile">
<!-- Compile TestRunner.mxml as a SWF -->
<mxmlc file="${test.src.loc}/TestRunner.mxml" output="${bin.loc}/TestRunner.swf">
<source-path path-element="${main.src.loc}" />
<library-path dir="${lib.loc}" append="true">
<include name="*.swc" />
</library-path>
<compiler.verbose-stacktraces>true</compiler.verbose-stacktraces>
<compiler.headless-server>true</compiler.headless-server>
</mxmlc>
<!-- Execute TestRunner.swf as FlexUnit tests and publish reports -->
<flexunit swf="bin/TestRunner.swf" toDir="${report.loc}" haltonfailure="false" verbose="true" localTrusted="true" />
<!-- Generate readable JUnit-style reports -->
<junitreport todir="${report.loc}">
<fileset dir="${report.loc}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${report.loc}/html" />
</junitreport>
</target>
Also, there is an error that the file FlashPlayerTrust is missing, shouldn't the flexUnitTasks.jar build that file if missing? I added it manually and it fixed the problem.Not a problem, already was generated.
flashlog.txt
<testcase classname='tests.unitedmindset.components::SuperLabelTest' name='testSetEmptyText' time='0.000' status='success'/>
<testcase classname='tests.unitedmindset.components::SuperLabelTest' name='testSetNullText' time='0.000' status='failure'><failure message='expected:<Super > but was:<Super null>' type='tests.unitedmindset.components::SuperLabelTest.testSetNullText' ><![CDATA[expected:<Super > but was:<Super null>
at org.flexunit::Assert$/failWithUserMessage()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\Fl exUnit4\src\org\flexunit\Assert.as:277]
at org.flexunit::Assert$/failNotEquals()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit 4\src\org\flexunit\Assert.as:99]
at org.flexunit::Assert$/assertEquals()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4 \src\org\flexunit\Assert.as:90]
at tests.unitedmindset.components::SuperLabelTest/testSetNullText()[C:\workspace\ANTBuildUni tTest\src\tests\unitedmindset\components\SuperLabelTest.as:60]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flex.lang.reflect::Method/apply()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\sr c\flex\lang\reflect\Method.as:208]
at ReflectiveCallable/run()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\fle xunit\runners\model\FrameworkMethod.as:297]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:171]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::StackAndFrameManagement/evaluate()[E:\hudson\j obs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\St ackAndFrameManagement.as:129]
at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[E:\hudson\job s\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stat ementSequencer.as:97]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Asy ncStatementBase.as:76]
at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Sta tementSequencer.as:165]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:138]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::InvokeMethod/handleMethodExecuteComplete()[E:\ hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\state ments\InvokeMethod.as:89]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:173]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::SequencerWithDecoration/executeStep()[E:\hudso n\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements \SequencerWithDecoration.as:104]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[E:\hudson\jobs\F lexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stateme ntSequencer.as:108]
at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[E:\hudson\job s\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stat ementSequencer.as:97]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[E:\hudson\jobs\F lexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stateme ntSequencer.as:108]
at org.flexunit.runners::BlockFlexUnit4ClassRunner/runChild()[E:\hudson\jobs\FlexUnit4-Flex3 .4\workspace\FlexUnit4\src\org\flexunit\runners\BlockFlexUnit4ClassRunner.as:130]
at org.flexunit.internals.runners::ChildRunnerSequencer/executeStep()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ChildRunnerSequencer.as: 82]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.runners::BlockFlexUnit4ClassRunner/handleBlockComplete()[E:\hudson\jobs\Flex Unit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\BlockFlexUnit4ClassRunner.as:16 7]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Asy ncStatementBase.as:76]
at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Sta tementSequencer.as:165]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:138]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::AsyncStatementBase/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Asy ncStatementBase.as:76]
at org.flexunit.internals.runners.statements::StatementSequencer/sendComplete()[E:\hudson\jo bs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Sta tementSequencer.as:165]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:138]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::InvokeMethod/handleMethodExecuteComplete()[E:\ hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\state ments\InvokeMethod.as:89]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:173]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::SequencerWithDecoration/executeStep()[E:\hudso n\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements \SequencerWithDecoration.as:104]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[E:\hudson\jobs\F lexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stateme ntSequencer.as:108]
at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[E:\hudson\job s\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stat ementSequencer.as:97]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::StackAndFrameManagement/handleNextExecuteCompl ete()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runn ers\statements\StackAndFrameManagement.as:151]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.internals.runners.statements::InvokeMethod/handleMethodExecuteComplete()[E:\ hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\state ments\InvokeMethod.as:89]
at org.flexunit.token::AsyncTestToken/sendResult()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspac e\FlexUnit4\src\org\flexunit\token\AsyncTestToken.as:118]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:173]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::StackAndFrameManagement/evaluate()[E:\hudson\j obs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\St ackAndFrameManagement.as:129]
at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[E:\hudson\job s\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\Stat ementSequencer.as:97]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete( )[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\ statements\StatementSequencer.as:134]]]></failure></testcase>
<testcase classname='tests.unitedmindset.components::SuperLabelTest' name='testSetHelloWorldText' time='0.000' status='success'/>
<testcase classname='tests.unitedmindset::SampleTest' name='testSampleError' time='0.000' status='error'><error message='ERROR! - This is an error' type='tests.unitedmindset::SampleTest.testSampleError' ><![CDATA[Error: ERROR! - This is an error
at tests.unitedmindset::SampleTest/testSampleError()[C:\workspace\ANTBuildUnitTest\src\tests \unitedmindset\SampleTest.as:18]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flex.lang.reflect::Method/apply()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\sr c\flex\lang\reflect\Method.as:208]
at ReflectiveCallable/run()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\fle xunit\runners\model\FrameworkMethod.as:297]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:171]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::StackAndFrameManagement/handleTimerComplete()[ E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\st atements\StackAndFrameManagement.as:141]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.utils::Timer/tick()]]></error></testcase>
<testcase classname='tests.unitedmindset::SampleTest' name='testSampleFailure' time='0.000' status='failure'><failure message='FAIL! - This is a sample test that will fail.' type='tests.unitedmindset::SampleTest.testSampleFailure' ><![CDATA[FAIL! - This is a sample test that will fail.
at org.flexunit::Assert$/fail()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org \flexunit\Assert.as:265]
at tests.unitedmindset::SampleTest/testSampleFailure()[C:\workspace\ANTBuildUnitTest\src\tes ts\unitedmindset\SampleTest.as:12]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at flex.lang.reflect::Method/apply()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\sr c\flex\lang\reflect\Method.as:208]
at ReflectiveCallable/run()[E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\fle xunit\runners\model\FrameworkMethod.as:297]
at org.flexunit.runners.model::FrameworkMethod/applyExplosivelyAsync()[E:\hudson\jobs\FlexUn it4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:171]
at org.flexunit.runners.model::FrameworkMethod/invokeExplosivelyAsync()[E:\hudson\jobs\FlexU nit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:186]
at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:77]
at org.flexunit.internals.runners.statements::StackAndFrameManagement/handleTimerComplete()[ E:\hudson\jobs\FlexUnit4-Flex3.4\workspace\FlexUnit4\src\org\flexunit\internals\runners\st atements\StackAndFrameManagement.as:141]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.utils::Timer/tick()]]></failure></testcase>
<testcase classname='tests.unitedmindset::SampleTest' name='testSampleIgnore' time='0.000' status='ignore'><skipped /></testcase>
<endOfTestRun/>
SuperLabelTest.as (runs as intended in UIListener)
this meant to be a simple test class, nothing real or production level
package tests.unitedmindset.components
import com.unitedmindset.components.SuperLabel;
import org.flexunit.Assert;
public class SuperLabelTest
public function SuperLabelTest()
// Private Vars
private var superLabel:SuperLabel;
// Setup
[BeforeClass]
public static function runBeforeClass():void
//do nothing
[AfterClass]
public static function runAfterClass():void
//do nothing
[Before(order=1)]
public function runBeforeEveryTest():void
superLabel = new SuperLabel();
[After]
public function runAfterEveryTest():void
superLabel = null;
// Tests
[Test(description="Tests Setting 'Hello World' Text in SuperLabel")]
public function testSetHelloWorldText():void
superLabel.text = "Hello World";
Assert.assertEquals("Super Hello World", superLabel.text);
[Test(description="Tests Setting NULL in SuperLabel")]
public function testSetNullText():void
superLabel.text = null;
//fail
Assert.assertEquals("Super ", superLabel.text);
//pass
//Assert.assertEquals("Super null", superLabel.text);
[Test(description="Tests Setting '' in SuperLabel")]
public function testSetEmptyText():void
superLabel.text = "";
Assert.assertEquals("Super ", superLabel.text); -
Problems with file uploading servlet, the form action doesnt capture url
Hi, i have one problem. I am working on a project , i have created a servlet that takes uploaded files and processses them and links them back to user to download. The servlet works perfectly from my computer, I am using apache-tomcat-6.0.16 and java 1.6 , I have two forms called encrypt.html and decrypt.html, I will post both of them, now the problem is when somebody access it on the internet while i am running apache, they get a connection was reset on a firefox browser and same stuff on Internet Explorer.
i have checked my server logs and saw nothing unusual there, So please if you can help me, it is my project.
I am pasting html file and error message that other users where getting remotely.
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>Stego Form</title>
<link rel='STYLESHEET' type='text/css' href='encrypt.css'>
</head>
<body>
<center>
<form name='encrypt' enctype='multipart/form-data' method='POST' action='http://localhost:8080/examples/temp2
' accept-charset='UTF-8'>
<input type='hidden' name='sfm_form_submitted' value='yes'>
</input>
<input type='hidden' name='eord' value='e'>
<select name='encryption' size='1'>
<option value='Select an encryption' selected>
Select an encryption
</option>
<option value='DES'>
DES
</option>
<option value='Tripple DES'>
Tripple DES
</option>
</select>
<input type='file' name='overt' size='20'>
<input type='file' name='covert' size='20'>
<input type='submit' name='submit' value='Submit'>
</form>
</center>
</body>
</html>so it works for me even if i access the page with my ip , but for others it doesnt work,
now the user got this xhtml page that i will show, i cant find attach button so i am pasting here.
here is the servlet coding
import java.io.*;
import java.util.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.apache.commons.fileupload.*;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
public class temp2 extends HttpServlet
FileInputStream fin;
String filenames[] = new String[2],fieldname,fieldval;
String keyfile,IVfile;
String names[] = new String[2];
public temp2()
super();
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost(request, response);
@Override
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
String eord="";
List lst = null;
boolean isMultiPart = ServletFileUpload.isMultipartContent(request);
if (!isMultiPart) // check whether the post request is actually multipart
System.out.println("ERROR NOT MULTIPART");
System.exit(0);
DiskFileItemFactory fif = new DiskFileItemFactory();
ServletFileUpload sfu = new ServletFileUpload(fif);
sfu.setSizeMax(10000000);
try { lst = sfu.parseRequest(request); }
catch (FileUploadException ex)
{ System.out.println("ERROR IN PARSING FILES" + ex); System.exit(0); }
if(lst.isEmpty()) // check whether request is empty
System.out.println("ERROR LIST SIZE NOT GOOD : " + lst.size());
System.exit(0);
Iterator x = lst.iterator();
int i = 0;
FileItem f = (FileItem)x.next();
f = (FileItem)x.next();
System.out.println(f.getFieldName());
if(f.getFieldName().equalsIgnoreCase("eord")) // check hidden field to know the case : encrypt or decrypt
eord = f.getString();
System.out.println(f.getString());
else // if it is not first field exit
System.out.println("Invalid FORM");
System.exit(0);
f = (FileItem)x.next(); // next field
if(f.getFieldName().equalsIgnoreCase("encryption")) // type of encryption des / tdes
fieldname = f.getFieldName();
fieldval = f.getString();
System.out.println(f.getString());
if(eord.equalsIgnoreCase("e")) // if it is encryption form only file required
while(x.hasNext())
f = (FileItem)x.next();
if(!f.isFormField())
int check = f.getName().lastIndexOf(File.separator);
System.out.println(File.separator);
if(check==-1)
System.out.println(f.getName());
System.out.println("Unsupported browser : " + check);
System.exit(0);
File ff = new File("e:\\apache\\webapps\\temp\\"+f.getName().substring(check));
names[i] = ff.getName(); // original file names
try
f.write(ff);
filenames[i] = ff.getAbsolutePath();
// renamed
ff.deleteOnExit();
}catch(Exception e) {System.out.println("Error writing file"+ ff.getAbsolutePath()); System.exit(0);}
i++;
try { System.in.read(); } catch(Exception e) {}
}// endwhile
if(fieldval.equalsIgnoreCase("DES"))
System.out.println("DES 1"+filenames[1]);
javades o = new javades(filenames[1]); // the file to be encrypted
filenames[1] = "e:\\apache\\webapps\\temp\\files\\" + names[1];
System.out.println("should be original" + filenames[1]);
else if(fieldval.equalsIgnoreCase("Tripple DES"))
javatdes o = new javatdes(filenames[1]);
filenames[1] = "e:\\apache\\webapps\\temp\\files\\" + names[1];
System.out.println(filenames[1]);
System.out.println("Calling stego");
filenames[0] = "e:\\apache\\webapps\\temp\\" + names[0];
System.out.println("file 1 "+ filenames[0]);
System.out.println("file 2"+ filenames[1]);
try { System.in.read(); } catch(Exception e) {}
stego s = new stego(filenames[0],filenames[1]);
System.out.println("mainext " + s.mainext);
// encryption done, and new files are loaded, now lets hide
if(s.mainext.equalsIgnoreCase("wav"))
s.encodewav();
System.out.println("Encoded wave");
else if(s.mainext.equalsIgnoreCase("bmp"))
System.out.println("Encoded bmp");
s.encodebmp();
System.out.println("done !");
PrintWriter pr = response.getWriter();
pr.println("Greetings , Your work is done and saved, now download the following files");
pr.println("The secret key file is needed for getting back your hidden file, so download that too");
pr.write("<a href=\"/temp/files/IV.txt\">click here</a>");
pr.write("<br/><a href=\"/temp/files/key.txt\">click here</a>");
pr.write("<br/><a href=\"/temp/files/"+names[0]+"\">click here</a>");
return;
// if it is decryption case
else if(eord.equalsIgnoreCase("d"))
while(x.hasNext())
f = (FileItem)x.next();
if(!f.isFormField())
int check = f.getName().lastIndexOf(File.separator);
System.out.println(File.separator);
if(check==-1)
System.out.println(f.getName());
System.out.println("Unsupported browser : " + check);
System.exit(0);
File ff = new File("e:\\apache\\webapps\\temp\\"+f.getName().substring(check));
// else if ladder to store paths of stegofile keyfile and IVfile
if(f.getFieldName().equalsIgnoreCase("stegofile"))
filenames[0] = ff.getAbsolutePath();
else if(f.getFieldName().equalsIgnoreCase("keyfile"))
keyfile = ff.getAbsolutePath();
else if(f.getFieldName().equalsIgnoreCase("IVfile"))
IVfile = ff.getAbsolutePath();
try
f.write(ff); // writes whole file at once
}catch(Exception e) {System.out.println("Error writing file"); System.exit(0);}
}// endwhile
System.out.println("Calling stego");
System.out.println("file 1 "+ filenames[0]);
stego s = new stego(filenames[0]);
System.out.println("mainext " + s.mainext);
if(s.mainext.equalsIgnoreCase("wav"))
s.decodewav();
System.out.println("Encoded wave");
else if(s.mainext.equalsIgnoreCase("bmp"))
s.decodebmp();
System.out.println("Encoded bmp");
System.out.println("done !");
////// hidden file has been retrieved , now lets decrypt it
System.out.println("ext " + s.ext);
filenames[0] = "e:\\apache\\webapps\\temp\\"+s.filename;
System.out.println(filenames[0]);
System.out.println(keyfile);
System.out.println(IVfile);
if(fieldval.equalsIgnoreCase("DES"))
javades o = new javades(filenames[0],keyfile,IVfile); // the file to be encrypted
filenames[0] = "e:\\apache\\webapps\\temp\\" + ( new File(filenames[0]).getName());
System.out.println("should be original" + filenames[0]);
else if(fieldval.equalsIgnoreCase("Tripple DES"))
javatdes o = new javatdes(filenames[0],keyfile,IVfile);
filenames[0] = "e:\\apache\\webapps\\temp\\" + ( new File(filenames[0]).getName());
System.out.println(filenames[0]);
PrintWriter pr = response.getWriter();
pr.write("Greetings, you have successfully retrieved your hidden file, now download it from here <br>");
pr.write("<a href=\"http://localhost:8080/temp/files/" + (new File(filenames[0]).getName())+"\">Click here</a>");
}and here is the xhtml file the user receives, whe he clicks the submit button,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html [
<!ENTITY % htmlDTD
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
%htmlDTD;
<!ENTITY % netErrorDTD
SYSTEM "chrome://global/locale/netError.dtd">
%netErrorDTD;
<!ENTITY loadError.label "Problem loading page">
<!ENTITY retry.label "Try Again">
<!-- Specific error messages -->
<!ENTITY connectionFailure.title "Unable to connect">
<!ENTITY connectionFailure.longDesc "&sharedLongDesc;">
<!ENTITY deniedPortAccess.title "This address is restricted">
<!ENTITY deniedPortAccess.longDesc "">
<!ENTITY dnsNotFound.title "Server not found">
<!ENTITY dnsNotFound.longDesc "
<ul>
<li>Check the address for typing errors such as
<strong>ww</strong>.example.com instead of
<strong>www</strong>.example.com</li>
<li>If you are unable to load any pages, check your computer's network
connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that &brandShortName; is permitted to access the Web.</li>
</ul>
">
<!ENTITY fileNotFound.title "File not found">
<!ENTITY fileNotFound.longDesc "
<ul>
<li>Check the file name for capitalization or other typing errors.</li>
<li>Check to see if the file was moved, renamed or deleted.</li>
</ul>
">
<!ENTITY generic.title "Oops.">
<!ENTITY generic.longDesc "
<p>&brandShortName; can't load this page for some reason.</p>
">
<!ENTITY malformedURI.title "The address isn't valid">
<!ENTITY malformedURI.longDesc "
<ul>
<li>Web addresses are usually written like
<strong>http://www.example.com/</strong></li>
<li>Make sure that you're using forward slashes (i.e.
<strong>/</strong>).</li>
</ul>
">
<!ENTITY netInterrupt.title "The connection was interrupted">
<!ENTITY netInterrupt.longDesc "&sharedLongDesc;">
<!ENTITY netOffline.title "Offline mode">
<!ENTITY netOffline.longDesc "
<ul>
<li>Uncheck "Work Offline" in the File menu, then try again.</li>
</ul>
">
<!ENTITY netReset.title "The connection was reset">
<!ENTITY netReset.longDesc "&sharedLongDesc;">
<!ENTITY netTimeout.title "The connection has timed out">
<!ENTITY netTimeout.longDesc "&sharedLongDesc;">
<!ENTITY protocolNotFound.title "The address wasn't understood">
<!ENTITY protocolNotFound.longDesc "
<ul>
<li>You might need to install other software to open this address.</li>
</ul>
">
<!ENTITY proxyConnectFailure.title "The proxy server is refusing connections">
<!ENTITY proxyConnectFailure.longDesc "
<ul>
<li>Check the proxy settings to make sure that they are correct.</li>
<li>Contact your network administrator to make sure the proxy server is
working.</li>
</ul>
">
<!ENTITY proxyResolveFailure.title "Unable to find the proxy server">
<!ENTITY proxyResolveFailure.longDesc "
<ul>
<li>Check the proxy settings to make sure that they are correct.</li>
<li>Check to make sure your computer has a working network connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that &brandShortName; is permitted to access the Web.</li>
</ul>
">
<!ENTITY redirectLoop.title "The page isn't redirecting properly">
<!ENTITY redirectLoop.longDesc "
<ul>
<li>This problem can sometimes be caused by disabling or refusing to accept
cookies.</li>
</ul>
">
<!ENTITY unknownSocketType.title "Unexpected response from server">
<!ENTITY unknownSocketType.longDesc "
<ul>
<li>Check to make sure your system has the Personal Security Manager
installed.</li>
<li>This might be due to a non-standard configuration on the server.</li>
</ul>
">
<!ENTITY sharedLongDesc "
<ul>
<li>The site could be temporarily unavailable or too busy. Try again in a few
moments.</li>
<li>If you are unable to load any pages, check your computer's network
connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that &brandShortName; is permitted to access the Web.</li>
</ul>
">
<!ENTITY % globalDTD
SYSTEM "chrome://global/locale/global.dtd">
%globalDTD;
]>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
- The Original Code is mozilla.org code.
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 1998
- the Initial Developer. All Rights Reserved.
- Contributor(s):
- Adam Lock <[email protected]>
- William R. Price <[email protected]>
- Henrik Skupin <[email protected]>
- Jeff Walden <[email protected]>
- Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- in which case the provisions of the GPL or the LGPL are applicable instead
- of those above. If you wish to allow use of your version of this file only
- under the terms of either the GPL or the LGPL, and not to allow others to
- use your version of this file under the terms of the MPL, indicate your
- decision by deleting the provisions above and replace them with the notice
- and other provisions required by the LGPL or the GPL. If you do not delete
- the provisions above, a recipient may use your version of this file under
- the terms of any one of the MPL, the GPL or the LGPL.
- ***** END LICENSE BLOCK ***** -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Problem loading page</title>
<link rel="stylesheet" href="temp2_files/netError.css" type="text/css" media="all"/>
<!-- XXX this needs to be themeable -->
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAICSURBVHjaYvz//z8DJQAggJhwiDPvnmlzc2aR0O+JGezt+AwACCCsBhxfYhn59N41FWtXIxZOLu70niRGXVwGAAQQNgNYHj96O8HaWYdJW5ubwd4/mI2Ng7sblwEAAYRhwMm1URk/vn4SUNWVYGD8+YZBXZOZm5OLzRjoCmNsBgAEEKoBN82Y7l851GLrqMjM8Oc7A8O/3wwMP54wuAQFCXNycUzGZgBAAKEYcOaKZO2/f//5FbUVgBrfMoRVcgHpNwyKGjKMXDwCan0prFboBgAEELIBzDcvXyy2cVZhYPj9GWj7H4jo/38MDJ9OMDj7O/KzsjH3oxsAEEBwA/bNNipiZf7FI6cqwcDw8x2qqp8fGORUpVn4BEXlgGHhhCwFEEAwA9gfP3hdZ+Oizcjw+wvCdjgAuuLrFQbXIH9hTm7uqcgyAAEENuD4ctcebm5mbikFYRTbV7V/Q6j88Z5BSuY7q4CQgAjQFR4wYYAAAhtw89L5ZFsnRaDtn4CW/YXrAQcisit+PGVwDgrnZ2NnnwATBQggpsNLvGYLCAmxi8tLARWg+h3FBVBXSEj/ZZWQkRcCuiIQJAQQQCyvnj5KMDTkZ2JgYmRg4FchnHv+vmEwttLmeXT3VjKQtx4ggFgk5TXebV63UfT3ijOMxOZAVlZWdiB1EMQGCCBGSrMzQIABAFR3kRM3KggZAAAAAElFTkSuQmCC"/>
<script type="application/x-javascript"><![CDATA[
// Error url MUST be formatted like this:
// moz-neterror:page?e=error&u=url&d=desc
// Note that this file uses document.documentURI to get
// the URL (with the format from above). This is because
// document.location.href gets the current URI off the docshell,
// which is the URL displayed in the location bar, i.e.
// the URI that the user attempted to load.
function getErrorCode()
var url = document.documentURI;
var error = url.search(/e\=/);
var duffUrl = url.search(/\&u\=/);
return decodeURIComponent(url.slice(error + 2, duffUrl));
function getDescription()
var url = document.documentURI;
var desc = url.search(/d\=/);
// desc == -1 if not found; if so, return an empty string
// instead of what would turn out to be portions of the URI
if (desc == -1) return "";
return decodeURIComponent(url.slice(desc + 2));
function retryThis()
// Session history has the URL of the page that failed
// to load, not the one of the error page. So, just call
// reload(), which will also repost POST data correctly.
try {
location.reload();
} catch (e) {
// We probably tried to reload a URI that caused an exception to
// occur; e.g. a non-existent file.
function initPage()
var err = getErrorCode();
// if it's an unknown error or there's no title or description
// defined, get the generic message
var errTitle = document.getElementById("et_" + err);
var errDesc = document.getElementById("ed_" + err);
if (!errTitle || !errDesc)
errTitle = document.getElementById("et_generic");
errDesc = document.getElementById("ed_generic");
var title = document.getElementById("errorTitleText");
if (title)
title.parentNode.replaceChild(errTitle, title);
// change id to the replaced child's id so styling works
errTitle.id = "errorTitleText";
var sd = document.getElementById("errorShortDescText");
if (sd)
sd.textContent = getDescription();
var ld = document.getElementById("errorLongDesc");
if (ld)
ld.parentNode.replaceChild(errDesc, ld);
// change id to the replaced child's id so styling works
errDesc.id = "errorLongDesc";
// remove undisplayed errors to avoid bug 39098
var errContainer = document.getElementById("errorContainer");
errContainer.parentNode.removeChild(errContainer);
]]></script>
</head>
<body dir="ltr">
<!-- ERROR ITEM CONTAINER (removed during loading to avoid bug 39098) -->
<!-- PAGE CONTAINER (for styling purposes only) -->
<div id="errorPageContainer">
<!-- Error Title -->
<div id="errorTitle">
<h1 id="errorTitleText">The connection was reset</h1>
</div>
<!-- LONG CONTENT (the section most likely to require scrolling) -->
<div id="errorLongContent">
<!-- Short Description -->
<div id="errorShortDesc">
<p id="errorShortDescText">The connection to the server was reset while the page was loading.</p>
</div>
<!-- Long Description (Note: See netError.dtd for used XHTML tags) -->
<div id="errorLongDesc">
<ul>
<li>The site could be temporarily unavailable or too busy. Try again in a few
moments.</li>
<li>If you are unable to load any pages, check your computer's network
connection.</li>
<li>If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.</li>
</ul>
</div>
</div>
<!-- Retry Button -->
<xul:button xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="errorTryAgain" label="Try Again" oncommand="retryThis();"/>
</div>
<!--
- Note: It is important to run the script this way, instead of using
- an onload handler. This is because error pages are loaded as
- LOAD_BACKGROUND, which means that onload handlers will not be executed.
-->
<script type="application/x-javascript">initPage();</script>
</body>
</html>thank you for your prompt reply in advance,
Regards,
Mihir PandyaHi, thank you for your replies, I found out few things about my servlet, and its portability
and i have few questions, although i marked this topic as answered i guess its ok to post
I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
of the modified files to the user for them to download the modified files.
What i am using to get the tempdir i will paste
File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
System.out.println(baseurl);
baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
links to the user for download ?
and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
And i want to create unique directory for each request made to the servlet , so file names dont clash.
one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
Reply A.S.A.P. please..
Thanks and regards,
Mihir Pandya -
Absolute path to E:\Hudson in org.flexunit.assert() etc
Hi there,
I'm attempting to use flexrunner in a linux project. So far everything has been smoothly, thanks. Just pached my SDK vith linux air 2.6 runtimes and ran (a slightly modified) demo project. It seems like there is a build in path to E:\hudson .... in the flexunit-4.1.0.8-flex_4.1.0.16076.swc file is there a way to get the source for this project and build the libraries ensuring that I get the correct path set?
Platfrom: Ubuntu 10.04
ant: 1.8.x
flex sdk: 4.5.1 pached with linux air 2.6 runtimes
flexunit: 4.1.0-8
absolute path bolded below
Cheers,
John
jodi@ubuntu:~/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest$ ant -f build.air.xml
Buildfile: /home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/build.air.xml
init:
compile:
[mxmlc] Loading configuration file /home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/make3/flex/frameworks/air-config.xml
[mxmlc] /home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/bin/Main.swf (498693 bytes)
[mxmlc] Loading configuration file /home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/make3/flex/frameworks/air-config.xml
[mxmlc] /home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/bin/TestRunner.sw f (1011075 bytes)
test:
[flexunit] Validating task attributes ...
[flexunit] Generating default values ...
[flexunit] Using the following settings for the test run:
[flexunit] FLEX_HOME: [/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/make3/flex]
[flexunit] haltonfailure: [true]
[flexunit] headless: [false]
[flexunit] display: [99]
[flexunit] localTrusted: [true]
[flexunit] player: [air]
[flexunit] port: [1024]
[flexunit] swf: [/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/bin/TestRunner.s wf]
[flexunit] timeout: [60000ms]
[flexunit] toDir: [/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/report]
[flexunit] Setting up server process ...
[flexunit] Starting server ...
[flexunit] Opening server socket on port [1024].
[flexunit] Waiting for client connection ...
[flexunit] Found AIR version: 2.6
[flexunit] Created application descriptor at [/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/bin/flexUnitDesc riptor.xml]
[flexunit] Executing '/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/make3/flex/bin/adl' with arguments:
[flexunit] '/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/target/bin/flexUnitDesc riptor.xml'
[flexunit]
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit]
[flexunit] Client connected.
[flexunit] Setting inbound buffer size to [262144] bytes.
[flexunit] Receiving data ...
[flexunit] Sending acknowledgement to player to start sending test data ...
[flexunit]
[flexunit] 9/29/2011 23:42:11.580 [INFO] FlexUnit4 Running 3 Tests
[flexunit] <testcase classname="org.flexunit.demo::SampleTest" name="testSampleIgnore" time="0" status="ignore"><skipped /></testcase>
[flexunit] 9/29/2011 23:42:11.618 [INFO] FlexUnit4 org.flexunit.demo::SampleTest.testSampleIgnore I
[flexunit] 9/29/2011 23:42:11.621 [INFO] FlexUnit4 org.flexunit.demo::SampleTest.testSampleFailure .
[flexunit] <testcase classname="org.flexunit.demo::SampleTest" name="testSampleFailure" time="70" status="failure"><failure message="FAIL! - This is a sample test that will fail." type="org.flexunit.demo::SampleTest.testSampleFailure" ><![CDATA[FAIL! - This is a sample test that will fail.
[flexunit] at org.flexunit::Assert$/fail()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org \flexunit\Assert.as:294]
[flexunit] at org.flexunit.demo::SampleTest/testSampleFailure()[/home/jodi/ccm_wa/ME_ECS/BES3_devel~jod i1/BES3_devel/ui/unittest/src/test/flex/org/flexunit/demo/SampleTest.as:8]
[flexunit] at Function/http://adobe.com/AS3/2006/builtin::apply()
[flexunit] at flex.lang.reflect::Method/apply()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\sr c\flex\lang\reflect\Method.as:244]
[flexunit] at org.flexunit.runners.model::FrameworkMethod/invokeExplosively()[E:\hudson\jobs\FlexUnit4- Flex4.1\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:201]
[flexunit] at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:72]
[flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement/handleTimerComplete()[ E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\internals\runners\st atements\StackAndFrameManagement.as:138]
[flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
[flexunit] at flash.events::EventDispatcher/dispatchEvent()
[flexunit] at flash.utils::Timer/tick()]]></failure></testcase>
[flexunit] 9/29/2011 23:42:11.763 [WARN] FlexUnit4 org.flexunit.demo::SampleTest.testSampleFailure F
[flexunit] 9/29/2011 23:42:11.775 [INFO] FlexUnit4 org.flexunit.demo::SampleTest.testSampleError .
[flexunit] FlexUnit test testSampleIgnore in suite org.flexunit.demo.SampleTest was ignored.
[flexunit] <testcase classname="org.flexunit.demo::SampleTest" name="testSampleError" time="108" status="error"><error message="ERROR! - This is an error" type="org.flexunit.demo::SampleTest.testSampleError" ><![CDATA[Error: ERROR! - This is an error
[flexunit] at org.flexunit.demo::SampleTest/testSampleError()[/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1 /BES3_devel/ui/unittest/src/test/flex/org/flexunit/demo/SampleTest.as:13]
[flexunit] at Function/http://adobe.com/AS3/2006/builtin::apply()
[flexunit] at flex.lang.reflect::Method/apply()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\sr c\flex\lang\reflect\Method.as:244]
[flexunit] at org.flexunit.runners.model::FrameworkMethod/invokeExplosively()[E:\hudson\jobs\FlexUnit4- Flex4.1\workspace\FlexUnit4\src\org\flexunit\runners\model\FrameworkMethod.as:201]
[flexunit] at org.flexunit.internals.runners.statements::InvokeMethod/evaluate()[E:\hudson\jobs\FlexUni t4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\internals\runners\statements\InvokeMethod. as:72]
[flexunit] at org.flexunit.internals.runners.statements::StackAndFrameManagement/handleTimerComplete()[ E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\internals\runners\st atements\StackAndFrameManagement.as:138]
[flexunit] at flash.events::EventDispatcher/dispatchEventFunction()
[flexunit] at flash.events::EventDispatcher/dispatchEvent()
[flexunit] at flash.utils::Timer/tick()]]></error></testcase>
[flexunit] 9/29/2011 23:42:11.885 [ERROR] FlexUnit4 org.flexunit.demo::SampleTest.testSampleError E
[flexunit] <endOfTestRun/>
[flexunit] 9/29/2011 23:42:12.044 [INFO] FlexUnit4 Time: .314
[flexunit] 9/29/2011 23:42:12.045 [WARN] FlexUnit4 There were 2 failures:
[flexunit] 9/29/2011 23:42:12.046 [WARN] FlexUnit4 FAILURES!!! Tests run: 2, 2 Failures:
[flexunit] FlexUnit test testSampleFailure in suite org.flexunit.demo.SampleTest failed.
[flexunit] FlexUnit test testSampleError in suite org.flexunit.demo.SampleTest had errors.
[flexunit]
[flexunit] Stopping server ...
[flexunit] End of test data reached, sending acknowledgement to player ...
[flexunit] Closing client connection ...
[flexunit] Closing server on port [1024] ...
q [flexunit] Analyzing reports ...
[flexunit]
[flexunit] Suite: org.flexunit.demo.SampleTest
[flexunit] Tests run: 3, Failures: 1, Errors: 1, Skipped: 1, Time elapsed: 0.178 sec
[flexunit]
[flexunit] Results :
[flexunit]
[flexunit] Tests run: 3, Failures: 1, Errors: 1, Skipped: 1, Time elapsed: 0.178 sec
[flexunit]
BUILD FAILED
/home/jodi/ccm_wa/ME_ECS/BES3_devel~jodi1/BES3_devel/ui/unittest/build.air.xml:81: FlexUnit tests failed during the test run.
Total time: 3 minutes 11 secondsRupert:
I think all of the AIR/SDK changes, etc. are red herrings. I think you have a relatively simple problem. The key is in the first error you posted.
"method not implemented org.flexunit.internals.runners.statements::IAsyncHandlingStatement/org.flexunit.internals .runners.statements:IAsyncHandlingStatement::handleBindableNextSequence()
over-binding 0 in org.flexunit.internals.runners.statements::ExpectAsyn"
This is telling you that something you claim implements IAsyncHandlingStatement doesn't have a required method, named handleBindableNextSequence. This is a big clue. handleBindableNextSequence is a required method of this interface if you are building the library with the Flex extensions. This method is not required if you build the library without these extensions (ActionScript only)
So, I would wager you have one of two things happening.
Scenario A, you have two copies of FlexUnit4 in different projects or libraries. One of them is a Flex4 ActionScript Only version, and one is a Flex version and the linker is confused as well causing these errors to occur at runtime.
Scenario B, one your libraries is referencing and/or building FlexUnit 4 classes into it. Then in your test project you are using a different copy of FlexUnit 4 during test and again, you have a mistmatch of AS-only versions and Flex versions.
Unless you are using a beta version of FlexUnit, which you didn't mention, the core libraries have not changed since last december and this particular class hasn't changes since nearly a year before that.
I can replicate that error if I setup two projects on my machine and mix the versions of the FlexUnit4.swc as I mention above.
Mike -
AIP-50077: Cannot Initialize Transport
Hi,
I configured custom document over Generic Exchange using JMS tranport. I configured JMS queue in SOA. I am getting the following errors in b2b.log
2008.11.24 at 16:00:56:103: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:initialize add JMS transport Endpoint: jms://opnm:ormi://10.232.65.81:6005:home {Destination Provider Properties=java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/, PROTOCOL_ENDPOINT=ProtocolEndpoint_15D9, Connection Factory Location=jms/QueueConnectionFactory, jms.receiver.jndi_connection_factory_location=jms/QueueConnectionFactory, Message Type=bytes, jms.receiver.factory_provider_properties=java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/, transport_callout_waittime=30, jms.receiver.jndi_destination_provider_properties=java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/, jms.receiver.polling_interval=300, polling_interval=300, Factory Provider Properties=java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/, jms.receiver.jndi_destination_location=opnm:ormi://10.232.65.81:6005:home}
2008.11.24 at 16:00:56:119: B2BStarter thread: B2B - (INFORMATION) oracle.tip.adapter.b2b.transport.TransportInterface:initialize: Props: jms://opnm:ormi://10.232.65.81:6005:home Destination Provider Properties = java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/
PROTOCOL_ENDPOINT = null
Connection Factory Location = jms/QueueConnectionFactory
jms.receiver.jndi_connection_factory_location = jms/QueueConnectionFactory
Message Type = bytes
jms.receiver.factory_provider_properties = java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/
transport_callout_waittime = 30
jms.receiver.jndi_destination_provider_properties = java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/
polling_interval = 300
jms.receiver.polling_interval = 300
Factory Provider Properties = java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/
jms.receiver.jndi_destination_location = opnm:ormi://10.232.65.81:6005:home
2008.11.24 at 16:00:56:119: B2BStarter thread: B2B - (INFORMATION) oracle.tip.adapter.b2b.transport.TransportInterface:initialize: Props: ftp://10.232.65.106/FTP/Acme PROTOCOL_ENDPOINT = null
file.receiver.password = *****
file.receiver.wallet_location = D:\OraHome_2\ip\ewallet.p12
file.receiver.wallet_password = *****
file.receiver.user = sss
transport_callout_waittime = 30
file.receiver.polling_interval = 60
polling_interval = 60
file.receiver.channel_mask = None
file.receiver.minimum_age = 0
filename_format = %FROM_PARTY%_%TIMESTAMP%.dat
file.sender.channel_mask = None
2008.11.24 at 16:00:56:119: B2BStarter thread: B2B - (INFORMATION) oracle.tip.adapter.b2b.transport.TransportInterface:initialize: Props: http://localhost transport_callout_waittime = 30
port = 7778
PROTOCOL_ENDPOINT = null
2008.11.24 at 16:00:57:869: B2BStarter thread: B2B - (ERROR) oracle.tip.transport.TransportException: Error: "jms.receiver.is_topic" header is not set.
at oracle.tip.transport.basic.TransportProperties.analyze(TransportProperties.java:217)
at oracle.tip.transport.basic.JMSReceiverProperties.<init>(JMSReceiverProperties.java:155)
at oracle.tip.transport.basic.JMSReceiver.<init>(JMSReceiver.java:113)
at oracle.tip.transport.basic.TransportReceiverFactory.createTransportReceiver(TransportReceiverFactory.java:97)
at oracle.tip.transport.b2b.B2BTransport.<init>(B2BTransport.java:147)
at oracle.tip.adapter.b2b.transport.TransportInterface.initialize(TransportInterface.java:458)
at oracle.tip.adapter.b2b.engine.Engine.initialize(Engine.java:510)
at oracle.tip.adapter.b2b.init.B2BServer.initialize(B2BServer.java:280)
at oracle.tip.adapter.b2b.init.B2BStarter.startB2B(B2BStarter.java:297)
at oracle.tip.adapter.b2b.init.B2BStarter.run(B2BStarter.java:143)
at java.lang.Thread.run(Thread.java:534)
2008.11.24 at 16:00:57:869: B2BStarter thread: B2B - (ERROR) Error -: AIP-50077: Cannot Initialize Transport: oracle.tip.transport.TransportException: Error: "jms.receiver.is_topic" header is not set.
at oracle.tip.adapter.b2b.transport.TransportInterface.initialize(TransportInterface.java:475)
at oracle.tip.adapter.b2b.engine.Engine.initialize(Engine.java:510)
at oracle.tip.adapter.b2b.init.B2BServer.initialize(B2BServer.java:280)
at oracle.tip.adapter.b2b.init.B2BStarter.startB2B(B2BStarter.java:297)
at oracle.tip.adapter.b2b.init.B2BStarter.run(B2BStarter.java:143)
at java.lang.Thread.run(Thread.java:534)
Caused by: oracle.tip.transport.TransportException: Error: "jms.receiver.is_topic" header is not set.
at oracle.tip.transport.basic.TransportProperties.analyze(TransportProperties.java:217)
at oracle.tip.transport.basic.JMSReceiverProperties.<init>(JMSReceiverProperties.java:155)
at oracle.tip.transport.basic.JMSReceiver.<init>(JMSReceiver.java:113)
at oracle.tip.transport.basic.TransportReceiverFactory.createTransportReceiver(TransportReceiverFactory.java:97)
at oracle.tip.transport.b2b.B2BTransport.<init>(B2BTransport.java:147)
at oracle.tip.adapter.b2b.transport.TransportInterface.initialize(TransportInterface.java:458)
... 5 more
2008.11.24 at 16:00:57:869: B2BStarter thread: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:initialize ERROR in Engine Initialization
2008.11.24 at 16:00:57:884: B2BStarter thread: B2B - (ERROR) oracle.tip.adapter.b2b.engine.Engine:initialize oracle.tip.transport.TransportException: Error: "jms.receiver.is_topic" header is not set.
at oracle.tip.transport.basic.TransportProperties.analyze(TransportProperties.java:217)
at oracle.tip.transport.basic.JMSReceiverProperties.<init>(JMSReceiverProperties.java:155)
at oracle.tip.transport.basic.JMSReceiver.<init>(JMSReceiver.java:113)
at oracle.tip.transport.basic.TransportReceiverFactory.createTransportReceiver(TransportReceiverFactory.java:97)
at oracle.tip.transport.b2b.B2BTransport.<init>(B2BTransport.java:147)
at oracle.tip.adapter.b2b.transport.TransportInterface.initialize(TransportInterface.java:458)
at oracle.tip.adapter.b2b.engine.Engine.initialize(Engine.java:510)
at oracle.tip.adapter.b2b.init.B2BServer.initialize(B2BServer.java:280)
at oracle.tip.adapter.b2b.init.B2BStarter.startB2B(B2BStarter.java:297)
at oracle.tip.adapter.b2b.init.B2BStarter.run(B2BStarter.java:143)
at java.lang.Thread.run(Thread.java:534)
2008.11.24 at 16:00:58:369: B2BStarter thread: B2B - (DEBUG) Engine:notifyAppInitError Enter
2008.11.24 at 16:00:58:369: B2BStarter thread: B2B - (DEBUG) DBContext beginTransaction: Enter
2008.11.24 at 16:00:58:384: B2BStarter thread: B2B - (DEBUG) DBContext beginTransaction: Transaction.begin()
2008.11.24 at 16:00:58:384: B2BStarter thread: B2B - (DEBUG) DBContext beginTransaction: Leave
2008.11.24 at 16:00:58:400: B2BStarter thread: B2B - (DEBUG) Engine:notifyAppInitError Enqueue the ip exception message:
<Exception xmlns="http://integration.oracle.com/B2B/Exception" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<correlationId></correlationId>
<b2bMessageId></b2bMessageId>
<errorCode>AIP-50077</errorCode>
<errorText>Error starting B2B engine</errorText>
<errorDescription>
<![CDATA[Error starting B2B engine. Cannot Initialize Transport ]]>
</errorDescription>
<errorSeverity>Error</errorSeverity>
</Exception>
2008.11.24 at 16:00:59:197: B2BStarter thread: B2B - (DEBUG) DBContext commit: Enter
2008.11.24 at 16:00:59:213: B2BStarter thread: B2B - (DEBUG) DBContext commit: Transaction.commit()
2008.11.24 at 16:00:59:213: B2BStarter thread: B2B - (DEBUG) DBContext commit: Leave
2008.11.24 at 16:00:59:213: B2BStarter thread: B2B - (DEBUG) Engine:notifyAppInitError Exit
2008.11.24 at 16:00:59:213: B2BStarter thread: B2B - (DEBUG) B2BStarter - Exception Error -: AIP-50077: Cannot Initialize Transport
2008.11.24 at 16:00:59:213: B2BStarter thread: B2B - (DEBUG) B2BStarter - B2B Database might be down, so stop B2B Server!
2008.11.24 at 16:00:59:213: B2BStarter thread: B2B - (DEBUG) B2BStarter - Stop B2B Server...begin
2008.11.24 at 16:00:59:213: B2BStarter thread: B2B - (DEBUG) B2BStarter - Shutdown B2B
2008.11.24 at 16:00:59:213: B2BStarter thread: B2B - (DEBUG) B2BStarter - B2B Server shutdown
2008.11.24 at 16:00:59:213: B2BStarter thread: B2B - (DEBUG) B2BStarter - Stop B2B Server...end
2008.11.24 at 16:00:59:228: B2BStarter thread: B2B - (DEBUG) B2BStarter - Sleeping for 30000
How/where to set "jms.receiver.is_topic" header. please someone help me regarding this.I set the istopic is 'false" in the tranport parameter and redeployed the configuration.
I' m getting following logs in b2.log file
oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:createMessage Enter
2008.11.24 at 17:21:40:118: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:createMessage Map To Party : {transport_callout_properties=null, polling_interval=30000, transport_callout_waittime=30, Destination Provider Properties=java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/, transport_callout_library=null, Connection Factory Location=jms/QueueConnectionFactory, transport_callout_classname=null, Message Type=bytes, Subscriber ID=null, Factory Provider Properties=java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/, isTopic=false}
2008.11.24 at 17:21:40:118: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:createMessage Map mmm : null
2008.11.24 at 17:21:40:165: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:createMessage message type 1
2008.11.24 at 17:21:40:165: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:createMessage creating request message
2008.11.24 at 17:21:40:165: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:createMessage setting payload and pc
2008.11.24 at 17:21:40:165: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:createMessage final encryption step
2008.11.24 at 17:21:40:165: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:createMessage Exit
2008.11.24 at 17:21:40:165: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab Invoking PackMessage
2008.11.24 at 17:21:40:165: Thread-10: B2B - (DEBUG) MimePackaging:pack:Enter
2008.11.24 at 17:21:40:165: Thread-10: B2B - (DEBUG) MimePackaging:createMimeMessage:Enter
2008.11.24 at 17:21:40:243: Thread-10: B2B - (DEBUG) MimePackaging:createMimeMessage:number of pc components: 1
2008.11.24 at 17:21:40:243: Thread-10: B2B - (DEBUG) MimePackaging:createMimeBodyPart:Enter
2008.11.24 at 17:21:40:524: Thread-10: B2B - (DEBUG) MimePackaging:applySecurity:Enter
2008.11.24 at 17:21:40:524: Thread-10: B2B - (DEBUG) MimePackaging:applySecurity:Exit
2008.11.24 at 17:21:40:524: Thread-10: B2B - (DEBUG) MimePackaging:createMimeBodyPart:Exit
2008.11.24 at 17:21:40:540: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: setDigestAlgorithm using algorithm name Entering...
2008.11.24 at 17:21:40:540: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: setDigestAlgorithm using algorithm name Leaving...
2008.11.24 at 17:21:41:258: Thread-10: B2B - (DEBUG) MimePackaging:applySecurity:Enter
2008.11.24 at 17:21:41:258: Thread-10: B2B - (DEBUG) MimePackaging:applySecurity:Exit
2008.11.24 at 17:21:41:258: Thread-10: B2B - (DEBUG) MimePackaging:createMimeMessage:Exit
2008.11.24 at 17:21:41:258: Thread-10: B2B - (DEBUG) MimePackaging:getMimeContent:Enter
2008.11.24 at 17:21:41:258: Thread-10: B2B - (DEBUG) MimePackaging:getMimeContent:Exit
2008.11.24 at 17:21:41:258: Thread-10: B2B - (DEBUG) MimePackaging:pack:Exit
2008.11.24 at 17:21:41:274: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab Invoking Pre-Transmit
2008.11.24 at 17:21:41:274: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:preTransmit Enter
2008.11.24 at 17:21:41:274: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:preTransmit Log & Update Database Tables
2008.11.24 at 17:21:41:274: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:preTransmit Update the Message Table Row with message state Wait for Incoming Acknowledgment
2008.11.24 at 17:21:41:274: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:preTransmit Create a Native Event Table row for outgoing Request Message
2008.11.24 at 17:21:41:274: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertNativeEvtTblRow(3 params) Enter
2008.11.24 at 17:21:41:274: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:insertNativeEvtTblRow msgInfo.id = 29675379
2008.11.24 at 17:21:41:274: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:protocl id set A
2008.11.24 at 17:21:41:274: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:
** DbAccess:insertNativeEvtTblRow protocolCollabId = null
2008.11.24 at 17:21:41:977: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertNativeEvtTblRow(3 params) Exit
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:preTransmit Create Event Table row for Message Retries
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:preTransmit timeToAck = Thu Jan 01 05:30:00 GMT+05:30 1970
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:preTransmit business transaction info name null revision null
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:preTransmit Exit
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) DBContext commit: Enter
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) DBContext commit: Transaction.commit()
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) DBContext commit: Leave
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab Calling Send to transmit the message
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) Protocol Name: JMS
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) Version Name: 1.0
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) Endpoint: jms://opnm:ormi://10.232.65.81:6005:home
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:send URL: JMS://OPNM:ORMI://10.232.65.81:6005:HOME
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:send TO Endpoint: 511 jms://opnm:ormi://10.232.65.81:6005:home
2008.11.24 at 17:21:42:149: Thread-10: B2B - (DEBUG)
Protocol = JMS
Version = 1.0
Transport Header
TO_PARTY:Acme
MSG_ID:29675379
FROM:GlobalChips
DOCTYPE_NAME:shiporderjms
jms.sender.jndi_destination_provider_properties:java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/
DOCTYPE_REVISION:1.0
jms.sender.jndi_destination_location:opnm:ormi://10.232.65.81:6005:home
jms.sender.type:bytes
DATE:Mon, 24 Nov 2008 11:51:39 GMT
Content-Transfer-Encoding:binary
MSG_TYPE:1
jms.sender.factory_provider_properties:java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory;java.naming.security.credentials=welcome1;java.naming.security.principal=oc4jadmin;java.naming.provider.url=ormi://10.232.65.81:12603/
ACTION_NAME:BS_JMS
Content-Type:text/plain; charset=us-ascii
FROM_PARTY:GlobalChips
Connection:close
TO:Acme
MESSAGE-ID:29675379
jms.sender.jndi_connection_factory_location:jms/QueueConnectionFactory
jms.sender.is_topic:false
Parameters
-- listing properties --
http.sender.timeout=0
2008.11.24 at 17:21:42:211: Thread-10: B2B - (WARNING)
Message Transmission Exception
StackTrace java.util.MissingResourceException: Can't find resource for bundle oracle.tip.transport.IPTResource, key JMSConnectionFactoryFactory_getConnectionFactory: JNDI Naming exception when looking up jms/QueueConnectionFactory: jms/QueueConnectionFactory not found
at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
at java.util.ResourceBundle.getObject(ResourceBundle.java:322)
at java.util.ResourceBundle.getString(ResourceBundle.java:285)
at oracle.tip.transport.IPTTransport.formMsg(IPTTransport.java:240)
at oracle.tip.transport.IPTTransport.log(IPTTransport.java:270)
at oracle.tip.transport.basic.jms.JMSConnectionFactoryFactory.getConnectionFactory(JMSConnectionFactoryFactory.java:138)
at oracle.tip.transport.basic.jms.JMSConnectionFactoryFactory.getQueueConnectionFactory(JMSConnectionFactoryFactory.java:83)
at oracle.tip.transport.basic.jms.JMSConnection.<init>(JMSConnection.java:124)
at oracle.tip.transport.basic.JMSSender.send(JMSSender.java:164)
at oracle.tip.transport.b2b.B2BTransport.send(B2BTransport.java:301)
at oracle.tip.adapter.b2b.transport.TransportInterface.send(TransportInterface.java:976)
at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1744)
at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:968)
at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1131)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:833)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
at java.lang.Thread.run(Thread.java:534)
2008.11.24 at 17:21:42:211: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.TransportInterface:send Error in sending message
2008.11.24 at 17:21:42:211: Thread-10: B2B - (INFORMATION) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab Request Message Transmission failed
2008.11.24 at 17:21:42:211: Thread-10: B2B - (DEBUG) DBContext beginTransaction: Enter
2008.11.24 at 17:21:42:211: Thread-10: B2B - (DEBUG) DBContext beginTransaction: Transaction.begin()
2008.11.24 at 17:21:42:211: Thread-10: B2B - (DEBUG) DBContext beginTransaction: Leave
2008.11.24 at 17:21:42:211: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequestPostColab Can't find resource for bundle oracle.tip.transport.IPTResource, key JMSConnectionFactoryFactory_getConnectionFactory: JNDI Naming exception when looking up jms/QueueConnectionFactory: jms/QueueConnectionFactory not found
Can't find resource for bundle oracle.tip.transport.IPTResource, key JMSConnectionFactoryFactory_getConnectionFactory: JNDI Naming exception when looking up jms/QueueConnectionFactory: jms/QueueConnectionFactory not found
2008.11.24 at 17:21:42:227: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:notifyApp retry value <= 0, so sending exception to IP_IN_QUEUE
2008.11.24 at 17:21:42:290: Thread-10: B2B - (DEBUG) Engine:notifyApp Enter
2008.11.24 at 17:21:42:305: Thread-10: B2B - (DEBUG) Enqueue Engine AQJMSCorrelationID = 9EBC96CB13E94D2193A63DBD20D00933
2008.11.24 at 17:21:42:305: Thread-10: B2B - (DEBUG) notifyApp:notifyApp Enqueue the ip exception message:
<Exception xmlns="http://integration.oracle.com/B2B/Exception" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<correlationId>29675379</correlationId>
<b2bMessageId>29675379</b2bMessageId>
<errorCode>AIP-50079</errorCode>
<errorText>Transport error: Can't find resource for bundle oracle.tip.transport.IPTResource, key JMSConnectionFactoryFactory_getConnectionFactory: JNDI Naming exception when looking up jms/QueueConnectionFactory: jms/QueueConnectionFactory not found
Can't find resource for bundle oracle.tip.transport.IPTResource, key JMSConnectionFactoryFactory_getConnectionFactory: JNDI Naming exception when looking up jms/QueueConnectionFactory: jms/QueueConnectionFactory not found</errorText>
<errorDescription>
<![CDATA[Machine Info: (pc022351)
Transport error: Can't find resource for bundle oracle.tip.transport.IPTResource, key JMSConnectionFactoryFactory_getConnectionFactory: JNDI Naming exception when looking up jms/QueueConnectionFactory: jms/QueueConnectionFactory not found
Can't find resource for bundle oracle.tip.transport.IPTResource, key JMSConnectionFactoryFactory_getConnectionFactory: JNDI Naming exception when looking up jms/QueueConnectionFactory: jms/QueueConnectionFactory not found ]]>
</errorDescription>
<errorSeverity>2</errorSeverity>
</Exception>
2008.11.24 at 17:21:42:305: Thread-10: B2B - (DEBUG) AQJMSCorrelationID = 9EBC96CB13E94D2193A63DBD20D00933
2008.11.24 at 17:21:42:321: Thread-10: B2B - (DEBUG) Engine:notifyApp Exit
2008.11.24 at 17:21:42:321: Thread-10: B2B - (DEBUG) DBContext commit: Enter
2008.11.24 at 17:21:42:321: Thread-10: B2B - (DEBUG) DBContext commit: Transaction.commit()
2008.11.24 at 17:21:42:321: Thread-10: B2B - (DEBUG) DBContext commit: Leave
2008.11.24 at 17:21:42:321: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.Request:outgoingRequest Exit
2008.11.24 at 17:21:42:321: Thread-10: B2B - (INFORMATION) oracle.tip.adapter.b2b.engine.Engine:processOutgoingMessage:
***** REQUEST MESSAGE *****
Exchange Protocol: Generic Version 1.0
Transport Protocol: JMS
Unique Message ID: 29675379
Trading Partner: Acme
Message Signed: No
Payload encrypted: No
Information incomplete
2008.11.24 at 17:21:42:321: Thread-10: B2B - (INFORMATION) oracle.tip.adapter.b2b.engine.Engine:processOutgoingMessage Exit
2008.11.24 at 17:21:42:321: Thread-10: B2B - (DEBUG) DBContext commit: Enter
2008.11.24 at 17:21:42:321: Thread-10: B2B - (DEBUG) DBContext commit: Leave
2008.11.24 at 17:21:42:321: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:onMessage Exit
Edited by: user652656 on Nov 24, 2008 3:53 AM
Maybe you are looking for
-
Dynamic Tree Creation using JSP, Struts framework
I urgently require tips/information/code snippet for creating a Dynamic Tree structure. Tree is the hierarchical folder structure that we see in windows operating system. Dynamic tree in the sense that all nodes shall be populated from database & a r
-
help me plzz
-
Apple USB to Ethernet Adapter??
Can you use the Apple " usb to ethernet " adapter with the airport express?
-
How to collect variant in transport request.
Hi all, I have created variants using table TVARVC which I will use to populate values for variables in Information Broadcasting. But I dn't know how to transport variants. Please provide step by step to collect variants in a transport request. Thank
-
Can anyone please help? Every time I start up my imac OSX 10.6 desktop my Aperture 3 programme opens up without being requested. Is it possible to stop this happening and only allow Aperture to open by using the desktop icon? Thank you for any assist