Understanding errors on LCR

Hello all. Please, bear with me:
I have a doubt about how LCRs are created when an error has occurred. For example, when I see the errors I get through enterprise manager on the apply process, I see an LCR created with a message count of two, caught error 1403. But when I see the content of this LCR, I see 1403 happened on UPDATE (expected) but it DOES ALSO happened on an INSERT statement. Therefore, I wonder, how can a 1403 happened on an insert.
I wonder how can I avoid this? I mean, I cannot apply the insert (in this case) because of the LCR containing an UPDATE statement that is failing. Can I somehow reduce the number for message within an LCR? Or how can I do this to avoid getting into this..
Thanks for everything!
For you to see, this is the content of the transaction (sorry for the long post):
SQL> set serveroutput on
SQL> exec print_transaction( '25.5.10498' );
----- Local Transaction ID: 25.5.10498
----- Source Database: DBSFB
----Error in Message: 1
----Error Number: 1403
----Message Text: ORA-01403: no data found
--message: 1
type name: SYS.LCR$_ROW_RECORD
source database: DBSFB
owner: SFB
object: AHMAH
is tag null: Y
command_type: UPDATE
old(1): CCU_MONED
0
old(2): CCU_OFICI
0
old(3): CCU_PRODU
0
old(4): CCUDIGVER
0
old(5): CCUNUMCUE
0
old(6): DCO_CONTA
0
old(7): DCO_MERCA
0
old(8): ESTADO
A
old(9): HCN_TRANS
0
old(10): HCNLINDSI
0
old(11): HCNLINHOY
13
old(12): HCNSINPOS
0
old(13): HCNTRAMAN
0
old(14): HCO_CAUSA
0
old(15): HCO_FICHA
SIN MICROFICHA
old(16): HCO_PODER
2
old(17): HCO_VINCU
0
old(18): HCOCAMTAR
1
old(19): HCOCIECUE
1
old(20): HCOCIRRET
1
old(21): HCOCKDEPDV
1
old(22): HCOCKGIRDV
1
old(23): HCOCUECAT
34
old(24): HCOCUEINA
1
old(25): HCODEPCHE
0
old(26): HCODEPEFE
0
old(27): HCODEPINC
1
old(28): HCOEJECUE
EJ-1
old(29): HCOENTEST
0
old(30): HCOESTADI
1
old(31): HCOESTCUE
1
old(32): HCOEXOATM
2
old(33): HCOPEREST
3
old(34): HCOREPLIB
1
old(35): HCORESCRE
1
old(36): HCORESCUE
1
old(37): HCORESDEB
1
old(38): HCORESDEP
1
old(39): HCORESRET
1
old(40): HCORETDEP
0
old(41): HCORETIRO
1
old(42): HCOSUCCUE
580
old(43): HCOTIPCUE
2
old(44): HCOTIPINA
0
old(45): HCOTRANFD
1
old(46): HCOUSOATM
0
old(47): HCOUSOFTRA
0
old(48): HCU_MONED
1
old(49): HCU_OFICI
580
old(50): HCU_PRODU
200
old(51): HCUDIGVER
7
old(52): HCUNUMCUE
3426
old(53): HFE_ACTIV8
0
old(54): HFE_INACT8
0
old(55): HFEAPECUE8
3032006
old(56): HFEBLOQUE8
0
old(57): HFECANCUE8
0
old(58): HFEEMBFIA8
0
old(59): HFEEMBNOR8
0
old(60): HFEESTPER8
15082008
old(61): HFEMINPER8
0
old(62): HFEPROMIN
20102008
old(63): HFEREAPER8
0
old(64): HFEULTACT8
0
old(65): HFEULTCAP8
6062008
old(66): HFEULTCIE8
20102008
old(67): HFEULTEST8
16082008
old(68): HFEULTPER8
3102008
old(69): HFEULTPOS8
20102008
old(70): HFEULTRET8
20102008
old(71): HFEULTTRA8
20102008
old(72): HINDEVMES
.14
old(73): HINDEVPAN
0
old(74): HINDEVPER
0
old(75): HINPAGCAP
0
old(76): HINPROPAN
11.73
old(77): HINPROPER
122.47
old(78): HMO_APERT
0
old(79): HMOATMDSI
0
old(80): HMOCOCKDV
0
old(81): HMOCREMES
0
old(82): HMOEFEDSI
0
old(83): HMOTOTDSI
0
old(84): HMOULTDEP
6000
old(85): HNO_CUENT
CORTORREAL PAULINO, RAMON
old(86): HNOSUBTIT
PN
old(87): HNULIBRET
0
old(88): HNULINPOS
0
old(89): HNUULTEST
2
old(90): HSA_AUTOR
0
old(91): HSA_PROTE
0
old(92): HSAATMHOY
0
old(93): HSACHEDSI
0
old(94): HSACHEHOY
0
old(95): HSACIERRE
0
old(96): HSADEPDSI
0
old(97): HSADEPHOY
0
old(98): HSAEFEHOY
1183.73
old(99): HSAEFEPER
104194.26
old(100): HSAEMBFIA
0
old(101): HSAEMBNOR
0
old(102): HSAFLOH1
0
old(103): HSAFLOH2
0
old(104): HSAFLOH3
0
old(105): HSAFLOH4
0
old(106): HSAFLOH5
0
old(107): HSAMINPAN
111.02
old(108): HSAMINPER
7044.2
old(109): HSANUMPER
75440.76
old(110): HSAPROANT
1123.68
old(111): HSAPROM01
3148.98
old(112): HSAPROM02
1332.21
old(113): HSAPROM03
486.42
old(114): HSAPROM04
1067.55
old(115): HSAPROM05
2400.85
old(116): HSAPROM06
892.54
old(117): HSAPROM07
9636.12
old(118): HSAPROM08
2133.02
old(119): HSAPROM09
2493.73
old(120): HSAPROM10
7591.08
old(121): HSAPROM11
1551.62
old(122): HSAPROM12
1072.84
old(123): HSAPROMIN
1183.73
old(124): HSAPROPAN
25147.34
old(125): HSAPROPER
6035.16
old(126): HSAREMCOB
0
old(127): HSARETH1
0
old(128): HSARETH2
0
old(129): HSARETH3
0
old(130): HSARETH4
0
old(131): HSARETH5
0
old(132): HSATOTAAY
0
old(133): HSATOTAYE
1183.73
old(134): HSATOTHOY
1183.73
old(135): HSATOTPAN
7044.2
old(136): HSATOTPER
25838.32
old(137): HSATOTRET
0
old(138): HSAULTEST
173.63
old(139): HSAULTPOS
1183.73
old(140): HSE_CLASE
1
old(141): HSE_IBANK
1
old(142): HSE_LIBTA
2
old(143): HSE_MENOR
0
old(144): HSE_TARJE
1
old(145): HSECERRAR
2
old(146): HSEMOVHOY
0
old(147): HSEPETEST
0
old(148): HSEPLANSO
2
old(149): HSEREPORT
1
old(150): HSETRANTO
2
old(151): HTO_COMIS
0
old(152): HTO_CRE01
24067.45
old(153): HTO_CRE02
23767.45
old(154): HTO_CRE03
22173.82
old(155): HTO_CRE04
24673.82
old(156): HTO_CRE05
22088.32
old(157): HTO_CRE06
22273.82
old(158): HTO_ULT01
0
old(159): HTO_ULT02
0
old(160): HTO_ULT03
0
old(161): HTO_ULT04
0
old(162): HTO_ULT05
0
old(163): HTO_ULT06
0
old(164): HTOPROMES
0
old(165): HVARETCAP
0
old(166): HVARETPAN
0
old(167): HVARETPER
0
old(168): SCO_IDENT
00111881652
old(169): SCOTIPIDE
6
old(170): SNU_DIREC
1
old(171): TSE_CLICO
2
new(1): CCUDIGVER
0
new(2): HCNLINHOY
13
new(3): HCNSINPOS
0
new(4): HCOESTCUE
1
new(5): HCORESCRE
1
new(6): HCORESDEB
1
new(7): HCORESRET
1
new(8): HCU_MONED
1
new(9): HCU_OFICI
580
new(10): HCU_PRODU
200
new(11): HCUDIGVER
7
new(12): HCUNUMCUE
3426
new(13): HFEBLOQUE8
0
new(14): HFEULTACT8
0
new(15): HFEULTPOS8
20102008
new(16): HFEULTTRA8
20102008
new(17): HMOCREMES
0
new(18): HMOEFEDSI
0
new(19): HNO_CUENT
CORTORREAL PAULINO, RAMON
new(20): HSA_AUTOR
0
new(21): HSA_PROTE
0
new(22): HSACHEHOY
0
new(23): HSAEFEHOY
1183.73
new(24): HSAEMBFIA
0
new(25): HSAEMBNOR
0
new(26): HSAFLOH1
0
new(27): HSAFLOH2
0
new(28): HSAFLOH3
0
new(29): HSAFLOH4
0
new(30): HSAFLOH5
0
new(31): HSATOTHOY
1183.73
new(32): HSAULTPOS
1183.73
new(33): HSE_LIBTA
2
new(34): HSE_TARJE
1
new(35): HSECERRAR
2
new(36): HSEMOVHOY
1
new(37): HSEREPORT
1
new(38): SCO_IDENT
00111881652
new(39): SCOTIPIDE
6
--message: 2
type name: SYS.LCR$_ROW_RECORD
source database: DBSFB
owner: SFB
object: AAATR
is tag null: Y
command_type: INSERT
new(1): ACO_CAUSA
167
new(2): ACO_CONCE
2
new(3): ACU_MONED
1
new(4): ACU_OFICI
580
new(5): ACU_PRODU
200
new(6): ACUDIGVER
7
new(7): ACUNUMCUE
3426
new(8): ANU_TARJE
new(9): ANUBONCHE
0
new(10): DCO_OFICI
220
new(11): DCO_TERMI
0
new(12): DCO_TRANS
23
new(13): DCO_USUARI
REPACA0763
new(14): DCODEBCRE
2
new(15): ESTADO
A
new(16): TCO_FLOTA
0
new(17): TDIAPLANT
0
new(18): TFE_REAL8
21102008
new(19): TFE_TRANS8
21102008
new(20): TFETRAREL
18921
new(21): THO_TRANS
18254913
new(22): TNU_REVER
0
new(23): TNU_TRANS
4211
new(24): TNUDOCTRA
4211
new(25): TSE_AUTOR
0
new(26): TSE_REVER
2
new(27): TSE_SUPER
2
new(28): TSEDIAANT
2
new(29): TSEPOSTEO
1
new(30): TVA_MOVIM
10673.82
new(31): TVACHEHOY
0
PL/SQL procedure successfully completed.
SQL>

Hello
Usually when a transaction happens on the source database, all the required LCRs (for tables which has rules configured) will be captured as part of the same transaction. Each LCR has to be executed in the same order within a transaction. Now if an INSERT happens first followed by an UPDATE on the source, when it gets applied on the target, it would be applied only if the INSERT and UPDATE are successful. If INSERT fails with an ORA-00001 eventhough the UPDATE works or if the INSERT works fine and the UPDATE fails with ORA-01403 then the entire transaction would be moved to the apply error queue. None of the LCRs in this transaction will be applied until we correct the problem that happened in one of the LCR.
You can find out which statement has failed in a transaction from the MESSAGE_NUMBER column in DBA_APPLY_ERROR:
SELECT APPLY_NAME,LOCAL_TRANSACTION_ID,SOURCE_DATABASE,MESSAGE_NUMBER,MESSAGE_COUNT,ERROR_NUMBER
FROM DBA_APPLY_ERROR;
How can we apply the non-failing LCRs:
You need to manually execute the LCRs which are not failing. This can be done using a PL/SQL Block which will traverse through the error queue. A sample procedure is below:
declare
     txnid varchar2(80);
     lcr sys.lcr$_row_record;
     msgno number;
begin     
     --for message 2
     msgno:=2;
     txnid:='25.5.10498';
     lcr:=dbms_apply_adm.get_error_message(msgno, txnid);
     --to apply the message 2
     lcr.execute();
     commit;
end;
The script can be modified and customized to get all the non-failing LCRs by combining DBA_APPLY_ERROR view in the above. Once all the non-failing messages are applied, if you want, you can purge the transaction from the error queue using:
EXECUTE DBMS_APPLY_ADM.DELETE_ERROR('25.5.10498');
Hope this helps.
Thanks,
Rijesh

Similar Messages

  • OWSM SAML verification and Must Understand error

    Has anyone verified SAML tokens generated by JDev proxies by OWSM?
    I tried to use the simplest scenario (similar to what I had tested when verifying SAML with Application Server) with OWSM. I don't use signature and just sender vouches at the proxy side. On the other side, OWSM, I have a gateway which has one step in the request pipeline which verifies SAML.
    I get this response message:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://project1/types/">
    <env:Body>
    <env:Fault>
    <faultcode>env:MustUnderstand</faultcode>
    <faultstring>*SOAP must understand error: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security*</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Regards
    Farbod
    P.S. this is my request message:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://project1/">
    <env:Header>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:mustUnderstand="1">
    <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" wsu:Id="B1tdL86gkmAN00oYpfTmOw22" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsse:KeyIdentifier xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" ValueType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID">lrLlLdbWLda851vHdngAEA22</wsse:KeyIdentifier>
    </wsse:SecurityTokenReference>
    <saml:Assertion MajorVersion="1" MinorVersion="1" xmlns="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" AssertionID="lrLlLdbWLda851vHdngAEA22" IssueInstant="2008-10-11T08:46:36Z" Issuer="www.oracle.com">
    <saml:Conditions NotBefore="2008-10-11T08:46:36Z" NotOnOrAfter="2008-10-12T08:46:36Z"/>
    <saml:AuthenticationStatement AuthenticationInstant="2008-10-11T08:46:36Z" AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:password">
    <saml:Subject>
    <saml:NameIdentifier Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">www.oracle.com</saml:NameIdentifier>
    <saml:SubjectConfirmation>
    <saml:ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:sender-vouches</saml:ConfirmationMethod>
    </saml:SubjectConfirmation>
    </saml:Subject>
    </saml:AuthenticationStatement>
    </saml:Assertion>
    </wsse:Security>
    </env:Header>
    <env:Body>
    <ns0:jamshidElement/>
    </env:Body>
    </env:Envelope>

    Without more specific about the SOAP Fault you are getting, the version and the type of client you built, it will be hard to give you specifics.
    You may want to verify that the policy used to configure the client proxy does match with the server-side.
    Usually, this error is generated during deserialization of a SOAP envelope when some SOAP header contains the mustUnderstand attribute with the value set to true and are not ready (configured) to process this specific header.
    It could be just a version mismatch; I process header in the foo namespace, but this one was in the bar namespace.
    Hope it helps,
    -Eric

  • SOAP must understand error error when calling composite

    Hi,
    I am trying to invoke composite application in soa suite 11g from soapui. In soapui my soap request contains following part of security info under header part.
    <wsse:Security soap:mustUnderstand="1" xsi:schemaLocation="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
    ..\Schemas\oasis-200401-wss-wssecurity-secext-1.0.xsd http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd ..\Schemas\oasis-wss-wssecurity-secext-1.1.xsd http://www.w3.org/2001/10/xml-exc-c14n# ..\Schemas\xml-exc-c14n.xsd">
    But when I try to execute in soapui I am getting following error
    <env:Fault>
    <faultcode>env:MustUnderstand</faultcode>
    <faultstring>SOAP must understand error:{http://docs.oasis-open.org/wss/2004  /01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security, {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security.
    </faultstring>
    </env:Fault>
    I think I need to copy these xsd files in my composite application? if yes where should I and how to refer those in soap request?
    Appreciate your quick help.
    Thanks,
    Sri

    Without attaching policy can't I execute?No. You have to attach policy. If none of the pre-seeded policies fulfill your requirement then you may always create your won custom policy. Please refer -
    http://technology.amis.nl/blog/11138/owsm-custom-policies-still-some-sharp-edges-so-beware-dont-cut-yourself
    http://ws-security.blogspot.com/2010/01/howto-owsm-11g-creating-custom-policy.html
    Regards,
    Anuj

  • BPEL - SOAP must understand error - Partner Link Reply Contains WSSE in Soa

    Hello,
    I'm trying to call a WS-Secured partner link from a BPEL process. The SOAP request looks perfect, however the partner link's reply contains a WSSE security element in the SOAP header. Is there a way to configure the BPEL process to expect this and not throw a 'SOAP must understand error'. Both Request and reply SOAP envelopes are below.
    Any help would be much appreciated - thanks.
    Request:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Header><wsse:Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:Username>username</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password></wsse:UsernameToken></wsse:Security></env:Header><env:Body>soapBody</env:Body></env:Envelope>
    Response:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://xmlns.domain.com/service/soa/ServiceEntitlementWS" xmlns:ns1="http://xmlns.domain.com/services" xmlns:ns2="http://xmlns.domain.com/service/contract" xmlns:ns3="http://xmlns.ni.com/support/customer/serviceLevel" xmlns:ns4="http://xmlns.ni.com/support/customer/linkageSet"><env:Header> *<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:mustUnderstand="1"/>* </env:Header><env:Body>soapBody</env:Body></env:Envelope>
    Edited by: user639053 on Oct 6, 2009 2:33 PM

    Without attaching policy can't I execute?No. You have to attach policy. If none of the pre-seeded policies fulfill your requirement then you may always create your won custom policy. Please refer -
    http://technology.amis.nl/blog/11138/owsm-custom-policies-still-some-sharp-edges-so-beware-dont-cut-yourself
    http://ws-security.blogspot.com/2010/01/howto-owsm-11g-creating-custom-policy.html
    Regards,
    Anuj

  • Publish fails in Frame 12. Where do I go to understand error messages?

    Using Publish pad in Frame 12, I get an error message:
    MIF: "C:\Users\...\AppData\Local\Temp\TPUBTMP\FileName_A01.mif" (5239): Value of Separation out of range (10)
    Is there somewhere where these issues are listed?
    Thanks in advance.

    Hi Jeff,
    I'm not sure if that link shows the cause or not. So far in the Settings file I have mapped:
    HeadingBook to h1 (Heading 1)
    HeadingVolume to h2 (Heading 2)
    Heading0 to h3 (Heading 3)
    Heading1 to h3 (Heading 3)
    Heading2 to h4 (Heading 4)
    Heading3 to h5 (Heading 5)
    all the Heading...TOC files to h6 (Heading 6)
    and
    BodyBegin to p.BodyLevel1
    BodyContent to p.BodyLevel2
    I haven’t mapped any other paragraph tags or character tags because I’m trying to see if I’m understanding this process correctly.
    Since I still don’t understand most of this, in ALL of the Style Mappings of paratags, NONE of the other tickboxes have been selected.
    Advice, oh Great Wizard?
    Thanks,
    Theresa

  • Don't understand error message from HTML parser?

    I've written a simple test program to parse a simple html file.
    Everything works fine accept for the <img src="test.gif"> tag.
    It understands the img tag and the handleSimpleTag gets called.
    I can even pick out the src attribute. But I get a very strange error message.
    When I run the test program below on the test.html file (also below) I get the following output:
    handleError(134) = req.att srcimg?
    What does "req.att srcimg?" mean?!?!?
    /John
    This is my test program:
    import javax.swing.text.html.*;
    import javax.swing.text.*;
    import javax.swing.text.html.parser.*;
    import java.io.*;
    public class htmltest extends HTMLEditorKit.ParserCallback
    public htmltest()
       super();
    public void handleError(String errorMsg, int pos)
       System.err.println("handleError("+pos+") = " + errorMsg);
    static public void main (String[] argv) throws Exception
        Reader reader = new FileReader("test.html");
        new ParserDelegator().parse(reader, new htmltest(), false);
    This is the "test.html" file
    <html>
    <head>
    </head>
    <body>
    This is a plain text.<br>
    This is <b>bold</b> and this is <i>itallic</i>!<br>
    <img src="test.gif">
    "This >is also a plain test text."<br>
    </body>
    </html>
    ----------------------------------------------------------------------

    The handleError() method is not well documented any more than whole javax.swing.text.html package and its design structure. You can ignore the behavior of the method if other result of the parser and your HTML file are proper.

  • Can't understand Error Activation

    I downloaded Adobe Digital edition 3.0 at first i can authorize my computer but i cant add the ebook that i purchased. So what i did I changed my Adobe Id and entered it again to authorize my computer It did authorize my computer but when i am adding my ebook there is an Error ! Check activation. i can't understand this.
    What happen next was I can't authorize my computer anymore.. Any solutions for this? Thank you.

    I revised my code to
    File source = new File("C:\\"+file);
                   URL url = new URL("ftp://"+user+":"+password+"@"+host+"/%2F"+path+"/"+file);
                   URLConnection connection = url.openConnection();
                   connection.setDoOutput(true);
                   connection.connect();
                   BufferedOutputStream bos = new BufferedOutputStream(connection.getOutputStream());
                   BufferedInputStream bis = new BufferedInputStream(new FileInputStream(source.getName()));
                   int i;
                   while ((i = bis.read()) != -1){
                        bos.write(i);
    I still the get the same error posted earlier. Anybody have any other ideas?

  • Understanding error messages from console...help please

    Hi,
    I am getting there...almost...my classes compiled...so far so good...
    However, when I hit the "Submit" button (class Booking) the program seems to get stuck on something ...and I don't how to understand the error message:
    Here is the error message, underneath are the two classes involved (code):
    D:\JBuilder8\jdk1.4\bin\appletviewer.exe Booking.html
    java.lang.NumberFormatException: null
         at java.lang.Integer.parseInt(Integer.java:394)
         at java.lang.Integer.parseInt(Integer.java:476)
         at Order.getPeople(Order.java:57)
         at ConfirmationPopup.<init>(ConfirmationPopup.java:72)
         at DetailsPopup.actionPerformed(DetailsPopup.java:152)
         at java.awt.Button.processActionEvent(Button.java:381)
         at java.awt.Button.processEvent(Button.java:350)
         at java.awt.Component.dispatchEventImpl(Component.java:3598)
         at java.awt.Component.dispatchEvent(Component.java:3439)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    import java.awt.*;
    import java.awt.event.*;
    import java.util.StringTokenizer;
    public class DetailsPopup extends Frame implements ActionListener,ItemListener
      TextField SName;
      TextField FName;
      TextField Email;
      TextField CCard;
      Choice ChoiceExpMonth;
      Choice ChoiceExpYear;
      Color LightBlue = new Color(180,180,255);
      String a6;
      String a7;
      String a8;
      String a4 = "1";
      String a5 = "2003";
      public DetailsPopup(String f,String co,String pr,String pe)
        super(f);
        a6 = co;
        a7 = pr;
        a8 = pe;
        Button b3 = new Button ("Submit");
        b3.addActionListener(this);
        Panel panel = new Panel();
        panel.setBackground(Color.yellow);
        panel.add(b3);
        add("South", panel);
        Panel fieldPanel = new Panel();
        fieldPanel.setBackground(LightBlue);
        fieldPanel.setLayout(new GridLayout(0,1));
        panel = new Panel();
        panel.add(new Label("Surname"));
        SName = new TextField(15);
        panel.add(SName);
        fieldPanel.add(panel);
        panel = new Panel();
        panel.add( new Label("First Name"));
        FName = new TextField(15);
        panel.add(FName);
        fieldPanel.add(panel);
        panel = new Panel();
        panel.add( new Label("E-mail"));
        Email = new TextField(15);
        panel.add(Email);
        fieldPanel.add(panel);
        panel = new Panel();
        panel.add( new Label("Credit/Debit Card"));
        CCard = new TextField(16);
        panel.add(CCard);
        fieldPanel.add(panel);
        panel = new Panel();
        panel.add( new Label("Expiry Date"));
        panel.add( new Label("Month"));
        ChoiceExpMonth = new Choice();
        ChoiceExpMonth.addItemListener(this);
        panel.add(ChoiceExpMonth);
        fieldPanel.add(panel);
        int i = 1;
        while (i < 13)
          ChoiceExpMonth.addItem(new Integer(i).toString());
          i++;
        panel = new Panel();
        panel.add(new Label("Year"));
        ChoiceExpYear = new Choice();
        ChoiceExpYear.addItemListener(this);
        panel.add(ChoiceExpYear);
        fieldPanel.add(panel);
        int j = 2003;
        while (j < 2008)
          ChoiceExpYear.addItem(new Integer(j).toString());
          j++;
        add(fieldPanel, "Center");
        setSize(400, 300);
        setLocation(320,240);
        setVisible(true);
        //addWindowListener(new WindowAdapter() {
          //public void windowClosing(WindowEvent e) {
            //System.exit(0);
      public void itemStateChanged(ItemEvent e) //read choice from ChoiceExpMonth and/or ChoiceExpYear DropDowns
       if (e.getSource().equals (ChoiceExpMonth))
         a4 = (String) e.getItem();  // When ChoiceExpMonth is modified
       if (e.getSource().equals (ChoiceExpYear))
         a5 = (String) e.getItem();  // When ChoiceExpYear is modified
      public void actionPerformed( ActionEvent e)
        String Name = "";
        String First = "";
        String Card = "";
        String Mail = "";
        String TestEmail = Email.getText();
        StringTokenizer st = new StringTokenizer(TestEmail,"@");
        if (SName.getText().length() == 0)
          Name = "bad";
        if (FName.getText().length() == 0)
          First = "bad";
        if (CCard.getText().length() != 16)
          Card = "bad";
        if(TestEmail.indexOf("@") == -1)
          System.out.println("TestEmail has no '@' symbol");
        if (st.countTokens() != 2)
          Mail = "bad";
        if (Name.equals("bad") || First.equals("bad") || Card.equals("bad") || Mail.equals("bad"))
         Dialog Err = new Erratum (new Frame (),Name,First,Card,Mail);
        else
         dispose();
         String a0 = SName.getText();
         String a1 = FName.getText();
         String a2 = Email.getText();
         String a3 = CCard.getText();
         ConfirmationPopup Conf = new ConfirmationPopup(new Frame(),a0,a1,a2,a3,a4,a5,a6,a7,a8);
        //System.out.println("Name = " + Name + "\n" +
                           //"First = " + First + "\n" +
                           //"Card = " + Card + "\n" +
                           //"Mail = " + Mail);
      //public static void main(String[] args) {
        //new DetailsPopup("Chaos!");
    class ConfirmationPopup
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.awt.Dialog.*;
    class ConfirmationPopup extends Dialog implements ActionListener
    Dialog Confirmation;
    Color LightBlue = new Color(180,180,255);
    ConfirmationPopup(Frame f,String a0,String a1,String a2,String a3,String a4,String a5,String a6,String a7,String a8)
       super(f);
       String SName = a0;
       String FName = a1;
       String Email = a2;
       String CCard = a3;
       String ExpMonth = a4;
       String ExpYear = a5;
       String Course = a6;
       String Price = a7;
       String People = a8;
       String[] c = {SName,FName,Email,CCard,ExpMonth,ExpYear,Course,Price,People};
       Order order1 = new Order(c);  
       Button b6 = new Button ("OK"); //OK
       b6.addActionListener(this);
       Panel panel = new Panel();
       panel.setBackground(LightBlue);
       panel.add(b6);
       add("South", panel);
       Panel Datapanel = new Panel();
       Datapanel.setBackground(LightBlue);
       Datapanel.setLayout(new GridLayout(0,1));
       panel = new Panel();
       panel.add( new Label("Surname:"));
       panel.add( new Label(order1.getSName()));
       Datapanel.add(panel);
       panel = new Panel();
       panel.add( new Label("First Name:"));
       panel.add( new Label(order1.getFName()));
       Datapanel.add(panel);  
       panel = new Panel();
       panel.add( new Label("E-mail:"));
       panel.add( new Label(order1.getEmail()));
       Datapanel.add(panel);
       panel = new Panel();
       panel.add( new Label("Credit/Debit Card:"));
       panel.add( new Label(order1.getCCard()));
       Datapanel.add(panel);
       panel = new Panel();
       panel.add( new Label("Expiry Date:"));
       panel.add( new Label(order1.getExpMonth() +"/" +order1.getExpYear()));
       Datapanel.add(panel);
       panel = new Panel();
       panel.add( new Label("Course booked:"));
       panel.add( new Label(order1.getCourse()));
       Datapanel.add(panel);
       panel = new Panel();
       panel.add( new Label("Number of persons:"));
       panel.add( new Label(new Integer(order1.getPeople()).toString()));
       Datapanel.add(panel);
       panel = new Panel();
       panel.add( new Label("Total Cost of your order"));
       panel.add( new Label(new Integer(order1.getTotal()).toString()));
       Datapanel.add(panel);
       add(Datapanel, "Center");
       setSize(400,300);
       setLocation(320,240);
       setTitle("Order Confirmation");
       pack();
    public void actionPerformed( ActionEvent e)
       dispose();

    here is also the class Order
    import java.util.*;
    public class Order
    private String[] OrderDetails = new String[9]; //create array 9 elements
    Order(String[] c)
       this.OrderDetails = c;
    String getSName()  //return Surname
       String s = OrderDetails[0];
       return s;
    String getFName()  //return First Name
       String f = OrderDetails[1];
       return f;
    String getEmail() //return E-mail
       String email = OrderDetails[2];
       return email;
    String getCCard() //return CCard number
       String cc = OrderDetails[3];
       return cc;
    String getExpMonth() //return CCard Expiry Month
       String expm = OrderDetails[4];
       return expm;
    String getExpYear() //return CCard Expiry Year
       String expy = OrderDetails[5];
       return expy;
    String getCourse() //return Course's name
       String course = OrderDetails[6];
       return course;
    int getPrice() //return Price (Full-Time, Part-Time, Concessions)
       String price1 = OrderDetails[7];
       int price = Integer.parseInt(price1);  
       return price;
    int getPeople() //return number of participants
       String people1 = OrderDetails[8];
       int people = Integer.parseInt(people1);
       return people;
    int getTotal() //return total cost of booking
       int Total = getPrice()*getPeople();
       return Total;
    }

  • Xhtml validation - i dont understand error

    Hi All
    I have created a site called www.monicawellsphotography.net
    I have been following the flash satay method for the flash
    movies, along with dreameavers active content script - i tested my
    page including the validation and everything checked out
    I also used the validation tool on dreamweaver for my pages
    and everything seems to be ok on this. HOWEVER the w3c validation
    tool is giving me an error message to which I am not sure what to
    do about -
    It says
    1. Error Line 75 column 18: document type does not allow
    element "noscript" here; missing one of "object", "applet", "map",
    "iframe", "button", "ins", "del" start-tag.
    </script><noscript><object
    type="application/x-shockwave-flash" data="gallerycom
    The mentioned element is not allowed to appear in the context
    in which you've placed it; the other mentioned elements are the
    only ones that are both allowed there and can contain the element
    mentioned. This might mean that you need a containing element, or
    possibly that you've forgotten to close a previous element.
    One possible cause for this message is that you have
    attempted to put a block-level element (such as "<p>" or
    "<table>") inside an inline element (such as "<a>",
    "<span>", or "<font>").
    Although I understand the words I dont understand how to fix
    it,
    Can anyone help with this?
    Best Regards
    Lorna17

    Me again
    Just found out what the problem was - I had a <p> tag
    at the beginning and end of it
    so please ignore this post
    Regards
    Lorna17

  • Don't understand error messages and how to resolve them

    I am having error messages that are confusing. I thought any fonts I used that were not web safe or in Typekit would turn to images, and there would be no problem. What are these errors about? When I view the site in Safari everything looks the way it should.
    Thanks for your help.
    Here is the site:
    http://marystephens.businesscatalyst.com/index.html

    Hi
    As you guess i 'am a newbie!
    I don't understand Inner Classes, particulary
    members(methods & fields) that an Inner method is
    able to manipulate.
    So I know that the methods of an Inner class
    (respectively Outer Class) instance can access
    members (private or public) of an instance of the
    Outer Class (respectively Inner Class).
    I tried to answer to a quizz :
    http://java.sun.com/developer/onlineTraining/new2java/
    supplements/quizzes/January03.html
    In the following class definition, which variables
    are inaccessible within the method of the inner
    class?
    class Test1 {
    public static int a = 1;
    private static int b = 2;
    public int c = 3;
    private int d = 4;
    public static class Inner {
    int e = 5;
    public void aMethod(int f) {
    int g = 6;
    // What can't be accessed here?
    }A.      b, c, d
    B.      c, d
    C.      b, c, d, f
    D.      None of them
    In my opinion members (public or private) of the
    Outer Class can be accessed by methods of the Inner
    Class; e.g: a, b, c,d thus for me the answer is
    D.
    Obviously i'm wrong, but why?Inner class method can access all the private members of the class. But the inner class is static. So the non-static members cannot be accessed directly (i.e. c and d).
    ***Annie***

  • Don't understand error message.

    Update: I'm looking for any ideas on this. I know it's hard without the full script. I'm more than happy to send it to you, but it is over 450 lines. All of the database functions work fine, as does an earlier version of this script from which there are only small changes to this version. I have searched through the the changes for several days.
    I'm getting the following error message on a script that I briefly changed from one that worked fine. All the database manipulations work fine. This exists only on my computer right now. The messages are:
    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\lorianorg01\ssregister\ss07-finalregis.php:4) in C:\xampp\htdocs\lorianorg01\ssregister\ss07-finalregis.php on line 76
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\lorianorg01\ssregister\ss07-finalregis.php:4) in C:\xampp\htdocs\lorianorg01\ssregister\ss07-finalregis.php on line 76
    Here is the code, beginning at line 75:
    //Establish session variables
    session_start();
    $_SESSION['ss_id'] = $regis_ss_id;
    $_SESSION['ss_name'] = $regis_ss_name;
    $_SESSION['ss_nomonths'] = $regis_ss_nomonths;
    $_SESSION['ss_cost'] = $regis_ss_cost;
    $_SESSION['ss_homelink'] = $regis_ss_link;
    $_SESSION['email_address'] = $regis_email_address;
    $_SESSION['first_name'] = $regis_first_name;
    $_SESSION['last_name'] = $regis_last_name;

    Thanks for the reply!
    What follows is first 135 lines of code.  As I mentioned, this code in another script, works fine. I copied that code and pasted it into a new folder. I have made sure the links are still good and the database manipulations are all good using a new table. I believe that the problem is in the combination of copying the code and the changes I made. I have done a compare of the original and the changed scripts and studied it for hours to see if I can find an error. I've also put the code in Aptana to see if it picks anything up. Nothing.
    <?php  require_once('../Connections/classlist.php'); ?>
    <?php require_once('../Connections/ssrecords.php'); ?>
    <?php
    // [07] This script finalizes the registration and produces letters to Lorian and the registrant.
    //The above connections provide links to the LorianSchool database for classlist and ssrecords.
    //This function, generated by Dreamweaver, determines the type of information being retrieved from the database.
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    <?php
    //Pick up the "record ID" (SS ID)
    $colname_DetailRS1 = "-1";
    if (isset($_GET['recordID'])) {
      $colname_DetailRS1 = $_GET['recordID'];
    //Get SS info from ssrecords table
    mysql_select_db($database_classlist, $classlist);
    $query_DetailRS1 = sprintf("SELECT * FROM ssrecords WHERE ssrecords.ss_id = %s", GetSQLValueString($colname_DetailRS1, "text"));
    $DetailRS1 = mysql_query($query_DetailRS1, $classlist) or die(mysql_error());
    $row_DetailRS1 = mysql_fetch_assoc($DetailRS1);
    $totalRows_DetailRS1 = mysql_num_rows($DetailRS1);
    $regis_ss_id = $row_DetailRS1['ss_id'];
    $regis_ss_name = $row_DetailRS1['ss_name'];
    $regis_ss_nomonths = $row_DetailRS1['ss_nomonths'];
    $regis_ss_cost = $row_DetailRS1['ss_cost'];
    $regis_ss_link = $row_DetailRS1['ss_homelink'];
    // Pick up the email address
    $colname_classentry = "-1";
    if (isset($_GET['email_address'])) {
      $colname_classentry = $_GET['email_address'];
    //Get the registrant information from the nameregistration table
    mysql_select_db($database_classlist, $classlist);
    $query_classentry = sprintf("SELECT * FROM nameregistration WHERE nameregistration.email_address = %s", GetSQLValueString($colname_classentry, "text"));
    $classentry = mysql_query($query_classentry, $classlist) or die(mysql_error());
    $row_classentry = mysql_fetch_assoc($classentry);
    $totalRows_classentry = mysql_num_rows($classentry);
    $regis_email_address = $row_classentry['email_address'];
    $regis_first_name = $row_classentry['first_name'];
    $regis_last_name = $row_classentry['last_name'];
    //Establish session variables
    session_start();
    $_SESSION['ss_id'] = $regis_ss_id;
    $_SESSION['ss_name'] = $regis_ss_name;
    $_SESSION['ss_nomonths'] = $regis_ss_nomonths;
    $_SESSION['ss_cost'] = $regis_ss_cost;
    $_SESSION['ss_homelink'] = $regis_ss_link;
    $_SESSION['email_address'] = $regis_email_address;
    $_SESSION['first_name'] = $regis_first_name;
    $_SESSION['last_name'] = $regis_last_name;
    //Prepare to write the class registration record in SSregis table
    mysql_select_db($database_ssrecords, $ssrecords);
    $query_registration = "SELECT * FROM ssregis";
    $registration = mysql_query($query_registration, $ssrecords) or die(mysql_error());
    $row_registration = mysql_fetch_assoc($registration);
    $totalRows_registration = mysql_num_rows($registration);
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    //On clicking Submit, insert a new record in the ssregis table   
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $regis_paid_code = $_POST["submit"];
      $insertSQL = sprintf("INSERT INTO ssregis (email_address, ss_id, ss_cost, reg_date, paid_code) VALUES (%s, %s, %s, %s, %s)",
            GetSQLValueString($regis_email_address, "text"),
                           GetSQLValueString($regis_ss_id, "text"),
                           GetSQLValueString($regis_ss_cost, "double"),
            GetSQLValueString($regis_reg_date, "date"),
            GetSQLValueString($regis_paid_code, "text"));                   
      mysql_select_db($database_ssrecords, $ssrecords);
      $Result1 = mysql_query($insertSQL, $ssrecords) or die(mysql_error());
      $regis_regid = mysql_insert_id();
      //Get ID of registration record just written in ssregis
      mysql_select_db($database_ssrecords, $ssrecords);
      $query_registration = "SELECT * FROM ssregis WHERE reg_id = '$regis_regid'";
      $registration = mysql_query($query_registration, $classlist) or die(mysql_error());
      $new_row = mysql_fetch_assoc($registration);
      //If using PayPal go to Paypalregis.php
      if ($regis_paid_code == "PayPal")  {
      $insertGoTo = "\ssregister\ss08-ppregis.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
    $insertGoTo .= "&reg_id=".$new_row['reg_id'];
      else  {
      //If not using PayPal go to Lorian Home page.
      $insertGoTo = "lorianorg01/index.html";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
    $insertGoTo .= "&reg_id=".$new_row['reg_id'];
    header(sprintf("Location: %s", $insertGoTo));

  • Question on EJB 2.1 using Netbeans 5.5 Beta 2. Cant understand error msg

    "IOP00100006: (BAD_PARAM) Class com.sun.ejb.containers.EJBLocalObjectInvocationHandler is not Serializable"
    org.omg.CORBA.BAD_PARAM:   vmcid: OMG  minor code: 6 completed: Maybe
            at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:996)
            at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:1011)
            at com.sun.corba.ee.impl.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:730)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:636)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:721)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:787)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:201)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:570)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:631)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectOverride(IIOPOutputStream.java:135)
            at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
            at java.util.ArrayList.writeObject(ArrayList.java:569)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.invokeObjectWriter(IIOPOutputStream.java:602)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:568)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:243)
            at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:43)
            at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:32)
            at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:39)
            at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:30)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.copyObject(Util.java:745)
            at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.copyResult(DynamicMethodMarshallerImpl.java:414)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:202)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
            at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
            at ejb._CustomerFacadeRemote_DynamicStub.getAllCustomers(_CustomerFacadeRemote_DynamicStub.java)
            at web.customerList.processRequest(customerList.java:39)
            at web.customerList.doGet(customerList.java:72)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    |#]
    java.rmi.MarshalException: CORBA BAD_PARAM 1330446342 Maybe; nested exception is:
            java.io.NotSerializableException:
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:257)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.wrapException(Util.java:678)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:218)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
            at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
            at ejb._CustomerFacadeRemote_DynamicStub.getAllCustomers(_CustomerFacadeRemote_DynamicStub.java)
            at web.customerList.processRequest(customerList.java:39)
            at web.customerList.doGet(customerList.java:72)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: java.io.NotSerializableException:
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:250)
            ... 33 more
    Caused by: org.omg.CORBA.BAD_PARAM:   vmcid: OMG  minor code: 6 completed: Maybe
            at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:996)
            at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:1011)
            at com.sun.corba.ee.impl.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:730)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:636)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:721)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:787)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:201)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:570)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:631)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectOverride(IIOPOutputStream.java:135)
            at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
            at java.util.ArrayList.writeObject(ArrayList.java:569)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.invokeObjectWriter(IIOPOutputStream.java:602)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:568)
            at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
            at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
            at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
            at com.sun.corba.ee.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:243)
            at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:43)
            at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:32)
            at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:39)
            at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:30)
            at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.copyObject(Util.java:745)
            at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.copyResult(DynamicMethodMarshallerImpl.java:414)
            at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:202)
            ... 31 moreTo start off, that is my error. I am following this http://www.netbeans.org/kb/50/quickstart-j2ee.html article and so far I can get the entire code working. Netbeans truly makes it easy!
    Now I decided to expand on the example and so I used a caching service locator and added one more finder method to the Customer entity bean (CMP). It is a findAllCustomers method that returns a collection and the EJB QL I entered was as follows:
    SELECT OBJECT(o) FROM Customer oI correspondingly added another business method to the session facade bean and I wrote a servlet that calls upon the caching service locator class and gets a reference to the session facade bean and calls the findAllCustomer method and gets back a List of all Customers. Then it takes the List, sticks it into the HttpServletRequest object and calls sendredirect to a JSP that is the view.
    The JSP is straightforward in that I have a foreach jstl tag that is going to display the customers in a table format. So when I run the code the way it is, what happens when I access that servlet is that the it gets rerouted to the jsp page, but the table does not get displayed...but the above error gets posted in the Netbeans SJSAS console. I have never encountered that kind of error before so i am a bit stumped and don't know how to go about decoding that stacktrace.
    Any pointers or suggestions or solutions (much prefer this one) would be great!
    Thanks a lot. Sorry for the rather long post. If needed I can package up the entire project and send it to you.
    Cheers,
    Surya

    It sounds like you're attempting to pass Local EJB objects over a Remote interface, which is not permitted. EJBLocalObjects can not be passed outside the ejb tier. You'll need to either pull their data out into data access object classes (basically structs) or return EJBObjects.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Trying to create package and do not understand error message

    What is wrong with this statement. Its say ASH411APPROVALEMAIL_PKG is not declared. I am trying to create it. Whats wrong?
    ERROR MESSAGE
    I get the following error.
    Error at line 1: PLS-00201: IDENTIFIER 'ASH411APPROVALEMAIL_PKG' must be declared1. CREATE OR REPLACE PACKAGE BODY ASH411APPROVALEMAIL_PKG
    2. AS
    3. PROCEDURE ASH411APPROVALEMAIL_async (P_ATS_NO NUMBER
    CODE
    CREATE OR REPLACE PACKAGE BODY ASH411APPROVALEMAIL_PKG
    AS
    PROCEDURE ASH411APPROVALEMAIL_async (P_ATS_NO NUMBER)
    AS
    BEGIN
    DBMS_SCHEDULER.define_program_argument (program_name => 'ASH411APPROVALEMAIL',
    argument_position => 1,
    argument_name => 'P_ATS_NO',
    argument_type => 'NUMBER'
    --,DEFAULT_VALUE => whatever_value
    DBMS_SCHEDULER.ENABLE (NAME => 'ASH411APPROVALEMAIL');
    DBMS_SCHEDULER.create_job (job_name => 'ASH411APPROVALEMAIL_JOBNAME'
    || P_ATS_NO,
    program_name => 'ASH411APPROVALEMAIL',
    enabled => TRUE,
    comments => 'Comments'
    EXCEPTION
         WHEN NO_DATA_FOUND THEN
         null;
    END ASH411APPROVALEMAIL_async;
    end ASH411APPROVALEMAIL_PKG;

    Hi, Howard,
    csphard wrote:
    Now when I go back and create the package again with the procedures it say package body created but does not
    display anything."Package body created" is all it ever says (unless there's an error message).
    How do I see the procedures I just created when I ran the package again with the procedures?If you want to see the source code, look at the CREATE PACKAGE BODY command in the script you just ran, or query the data dictionary view user_source:
    SELECT       text
    FROM       user_source
    WHERE       name     = 'ASH411APPROVALEMAIL_PKG'
    AND       type     = 'PACKAGE BODY'
    ORDER BY  line
    ;

  • SQL query throws not understandable error

    Hi everybody,
    I am suffering from an issue where I query Oracle database 11g with this query:
    SELECT AUDIT_EVENT.EVENT_ID, USER_NAME, START_TIMESTAMP, AUDIT_EVENT.DURATION, AUDIT_EVENT.EVENT_TYPE_ID, AUDIT_EVENT.SERVER_CUID, OBJECT_CUID, OBJECT_TYPE, ERROR_CODE, OBJECT_ID, DETAIL_ID, AUDIT_DETAIL.SERVER_CUID, AUDIT_DETAIL.DETAIL_TYPE_ID, DETAIL_TYPE_DESCRIPTION, EVENT_TYPE.EVENT_TYPE_DESCRIPTION, SUBSTR(DETAIL_TEXT,0,200) as DETAIL_TEXT FROM (audit_detail join detail_type on audit_detail.detail_type_id=detail_type.detail_type_id) join (audit_event join event_type on audit_event.event_type_id=event_type.event_type_id) on audit_event.event_id=audit_detail.event_id WHERE to_char(START_TIMESTAMP,'YYYYMMDD') > '20110307' AND to_char(START_TIMESTAMP,'YYYYMMDD')<='20110309' ORDER BY START_TIMESTAMP
    which throws this error:
    ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
    01652. 00000 - "unable to extend temp segment by %s in tablespace %s"
    *Cause:    Failed to allocate an extent of the required number of blocks for
    a temporary segment in the tablespace indicated.
    *Action:   Use ALTER TABLESPACE ADD DATAFILE statement to add one or more
    files to the tablespace indicated.
    Can anybody explain why this can happen? Are we somehow limited with temporary space or whatever? Because when I put the same query withou condition placed after WHERE clause it seems to work correctly...
    Appreciate any help..
    Thank You
    Miro

    Temp space can be used for SORTS and HASH joins, for example.
    See documentation for further details:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/tspaces002.htm#i1013552
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/memory.htm#PFGRF01401
    Please review the execution plans for both queries that you mention.
    e.g.
    explain plan for...
    select * from table(dbms_xplan.display);The output of dbms_xplan should display expected/estimated temp space usage.
    Please see the following thread for more detail:
    How to post a SQL tuning request - HOW TO: Post a SQL statement tuning request - template posting
    I see that you using a TO_CHAR on your START_TIMESTAMP column.
    This is a classic way of preventing index usage which may lead to inefficient plans which might cause unexpected temp space usage.
    See execution plans for further detail.
    If START_TIMESTAMP is indexed, then doing the following may result in a more efficient plan which might lead to reduced temp space usage, any sort operation ing might even be eliminated:
    WHERE START_TIMESTAMP >= TO_DATE('20110307','YYYYMMDD')
    AND    START_TIMESTAMP < TO_DATE('20110309' ,'YYYYMMDD') + 1

  • Manged to get separate test ant - can't understand error log

    Hi,
    I managed to get a simple example of Junit running through ANT building but not testing correctly.
    my example test class looks like:
    package com.sims.test;
    public class HelloWorldTest extends junit.framework.TestCase {
        public void testNothing() {
        public void testWillAlwaysFail() {
            assertEquals("", "");
    }this runs fine through eclipse with as a JUnit application.
    my buildfile looks like:
    <project name="TestHelloWorld" default="test" basedir=".">
         <property name="test" location="C:/myProjects/runway_core/guitools/sims/build/classes/com/sims/test"/>
         <property name="tests.src" location="${basedir}"/>
         <path id="test.class.path">
         <pathelement path="C:/eclipse-SDK-3.2.1-win32/eclipse/plugins/org.junit_3.8.1/junit.jar"/>                   
         <!-- the test classes are all in here -->
         <pathelement location="${test}"/>
         </path>
         <!-- Build of the Junit test -->
         <target name="build-tests" description="Build the Junit test">
           <javac srcdir="${tests.src}" destdir="${test}">
             <classpath refid="test.class.path"/>
           </javac>
         </target>
         <!-- Run of the Junit test -->
         <target name="test" description="Run the Junit test"
                    depends="build-tests">
           <junit printsummary="yes" haltonfailure="no">
             <classpath refid="test.class.path"/>
               <formatter type="plain"/>
               <test name="com.sims.test.HelloWorldTest" outfile="result"
                        todir="${test}"/>
           </junit>
         </target> 
         </project>Now it build fine, but when I click on 'test' in the Ant perspective of Eclipse it returns:
    Buildfile: C:\myProjects\runway_core\guitools\sims\src\com\sims\test\fileListingbuild.xml
    build-tests:
    test:
    [junit] Running com.sims.test.HelloWorldTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Test com.sims.test.HelloWorldTest FAILED
    BUILD SUCCESSFUL
    Total time: 1 second
    to the console.
    and there is a log file with:
    Testsuite: com.sims.test.HelloWorldTest
    Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
         Caused an ERROR
    com.sims.test.HelloWorldTest
    java.lang.ClassNotFoundException: com.sims.test.HelloWorldTest
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
         at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
         at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    I know I probably am doing something simple wrong but can't figure it out.
    Thanks,
    Tri

    java.lang.ClassNotFoundException: com.sims.test.HelloWorldTestThat's about as clear as they get right there.
    Check your CLASSPATH and make sure that your "[subfolders]/com/sims/test" directory is included there.

Maybe you are looking for