One-way soap call do not throw exception

Hello,
I prepared a client for web service with JWSDP-2.0. wscompile generated proxy classes. The web service uses "basic authentication". Now comes my problem. wscompile generated stub which calls
_sendOneWay((java.lang.String) _getProperty(ENDPOINT_ADDRESS_PROPERTY), _state);Because the web service is defined as: void ENCRYPTED_MESSAGE(SOAPElement)
When basic authentication fails (I get HTTP 401 code - which I can see in debug created by JVM parameter -Djavax.net.debug=all ) then NO EXCEPTION is fired!!!
When I change the wsdl and add dummy output parameter, then send((java.lang.String) getProperty(EN... is generated and authentication fires exception. But this is not the right way to do it.
My question is - can I make wscompile to generate Stub without _sendOneWay?
Thanks for yout time and attention!
Honza

I forgot to say that I am using JDeveloper 9.0.5.2 and that I have built an ADF application with Struts + ADF Business Components (bc4j)
Thanks

Similar Messages

  • EJB is not throwing exception to calling Action class in Unix environment

    Hi
    We are using Weblogic Server 9.2.3.0.
    One of our EJB is not throwing exception to calling Action class in Unix environment. Its working fine in Windows.
    Somehow the EJB is swallowing the exception.
    any idea? I suspect it may be environmental issue?
    thank you

    Hi
    We are using Weblogic Server 9.2.3.0.
    One of our EJB is not throwing exception to calling Action class in Unix environment. Its working fine in Windows.
    Somehow the EJB is swallowing the exception.
    any idea? I suspect it may be environmental issue?
    thank you

  • Which messages of soap call processes the block exception branch?

    Hi guys!
    I'm testing a scenario, where I use BPM, have a block, sync web service call inside and have exception branch, which sends original message to the dest system. I'm a little bit confused, cos' I'm not sure, which error messages does exception branch process. Is it only system error? Or is it also application error - means: fault message is returned..
    Thanx, Olian!

    ok, If I send 0 as parameter, I get exception:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <SOAP-ENV:Body>
          <SOAP-ENV:Fault>
             <faultcode>SOAP-ENV:Client</faultcode>
             <faultstring>Division by zero</faultstring>
             <detail>
                <ns1:div_test.CalcException xmlns:ns1="urn:CalculatorWsd/CalculatorVi" xmlns:pns="urn:test">
                   <pns:message>Division by zero</pns:message>
                </ns1:div_test.CalcException>
             </detail>
          </SOAP-ENV:Fault>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    But When I send one string parameter, I get
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <SOAP-ENV:Body>
          <SOAP-ENV:Fault>
             <faultcode>SOAP-ENV:Client</faultcode>
             <faultstring>Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of [java.lang.Integer] with parameter [ee]..</faultstring>
             <detail>
                <ns1:com.sap.engine.services.webservices.additions.soaphttp.exceptions.ProcessException xmlns:ns1="http://sap-j2ee-engine/error">Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of [java.lang.Integer] with parameter [ee]..</ns1:com.sap.engine.services.webservices.additions.soaphttp.exceptions.ProcessException>
             </detail>
          </SOAP-ENV:Fault>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    So, these are two possible exceptions...  How to get them? Both are two different message types
    OR: hot to get detail text to send it to receiver? What steps need to be in the exception branch?
    O.
    Olian.

  • Java Does Not Throw Exception When Writing To Read-Only Files

    I have noticed that when I try to write to a read-only file in a window environment, Java does not throw an IOExcpetion, it just dosn't write to the file.
    I am writing an FTP server and here is the code:
         public static long copyStream(InputStream in, OutputStream out)throws IOException
              IOException exception = null;
              long copied = 0;
              try
                   byte buffer[] = new byte[1024];
                   int read;
                   while((read = in.read(buffer)) != -1)
                        out.write(buffer, 0, read);
                        copied += read;
              catch(IOException e)
                   //ensures that the streams are closed.
                   exception = e;
              try
                   in.close();//ensures output stream gets closed, even if there is an
                   //excption here.
              catch(IOException e){exception = e;}
              out.close();//try to close output.
              if(exception != null)
                   //exception is not null, an exception has occured.
                   //rethrow exception.
                   throw exception;
              return copied;//all ok, return bytes copied.
         }Is this a bug in JAVA VM? Is so, how should I report it?

    I have noticed that when I try to write to a read-only file in a window environment,
    Java does not throw an IOExcpetion, it just dosn't write to the file.C:\source\java\Markov>attrib readonly.out
    A R C:\source\java\Markov\readonly.out
    �C:\source\java\Markov>java b
    java.io.FileNotFoundException: readonly.out (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at b.main(b.java:5)
    import java.io.*;
    public class b {
        public static void main(String[] args) {
         try     {
              OutputStream os = new FileOutputStream ( "readonly.out");
         catch (Exception e) {
              e.printStackTrace();
    }

  • Any way to call function from impdp except remap_data?

    HI Friends,
    I have a requirement of load prd data into stage by masking some sensitive columns.Iam using impdp of datapump utility to load data.iam using remap_data option to call mask functions.But remap_data option is supporting upto 10 columns.
    we have more than 20 columns to mask.
    is there any other way to call oracle function from impdp?
    eg:-
    impdp pa_data_sub/******@qdssih30 NETWORK_LINK=qdspih30 schemas=RESP remap_data=col1.mask,col2.mask,col3.mask... CONTENT=all table_exists_action=replace
    Please suggest me different options.
    Thanks,
    Venkat Vadlamudi

    No,
    I didn't realize that there was a limit of 10 for remap data. As a work-around, can you remap 10 of the columns during export, and then 10 during import? Not sure if you want to give someone a dumpfile with sensitive data in it. If you could, you could at least double the limitation to 20 rows.
    Dean

  • "One or more songs are not authorized" except they all are?

    I made a play list tonight that I wanted to burn to a CD for a friend. When I went to burn it, I got an error message saying "One or more of the songs in this play list are not authorized on this computer." Apple's help page said I could figure out which songs weren't authorized by trying to play them and that the unauthorized songs wouldn't play...except they all played just fine.
    First I tried rebooting. Didn't help. Then I tried removing each purchased song one at a time. Didn't help. Then I removed all the purchased songs. STILL didn't help. Finally I tried burning a play list that I'd made and burned a month ago. That one burned just fine.
    So I have a play list now made up exclusively of tracks that I imported into iTunes from CDs, none purchased from the iTunes store, and I'm still getting an error message that says "One or more of the songs in this play list are not authorized on this computer." ***? And more importantly, is there any way I can find out which freaking song is causing the problem without trying to burn each one individually to a separate CD?

    Hi,
    It seems that DCPROMO did its work without complaints, still the DFSR references remained in AD. You could refer to the article below to clean up the DFS Replication object.
    How to remove data in Active Directory after an unsuccessful domain controller demotion
    http://support.microsoft.com/kb/216498
    In additional, please refer to the following thread to troubleshoot the issue:
    DFS is not working anymore.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/953be9ef-e9e3-4885-a5c4-47fc475ba562/dfs-is-not-working-anymore?forum=winserverfiles
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • CALL FUNCTION 'RFC_REMOTE_PIPE' throwing exception as 1

    Hi Sapients,
    I am using CALL FUNCTION 'RFC_REMOTE_PIPE' to rename a file at the UNIX level..Though this runs well... sometimes this is giving an exception as ''1'' (System Failure).. if we execute the same after 3  or 4 hours this RFC is again successfully executed...Can anyone throw some light on why this is happening and how we can avoid the same.
        CALL FUNCTION 'RFC_REMOTE_PIPE'
        DESTINATION 'SERVER_EXEC'
        EXPORTING
          COMMAND = l_command
          READ    = c_yes
        EXCEPTIONS
          system_failure        = 1
          communication_failure = 2
          OTHERS                = 3.
    where the l_command is mv old_file_name New_file_name
    and C_yes is X

    Hi,
    Maybe my answer comes too late.
    Could be helpful for others anyway.
    We got the same trouble and it was due to the RFCEXEC.SEC file.
    Installing the SDK7.20 the RFCEXEC files were missing and old RFCEXEC.SEC was not in the same format...
    Please look also to OSS notes #1592501 and #1581595
    Thanks
    //Philippe.

  • Perist not throwing exception

    Hi everyone,
    I am new to JPA, and currently trying to persist/update an entity to a HSQL database. According to the API, the persist method of the class EntityManager, throws an exception if we try to persist an entity which already exists, but in my case, it seems to update the entity, if it exists.
    Here's a snippet of the commit code
    public void commit(Object obj){
            if(entityManager == null) {
                entityManager = getEmf().createEntityManager();
            if(entityTransaction == null){
                entityTransaction = entityManager.getTransaction();
            if(!entityTransaction.isActive()){
                entityTransaction.begin();
            entityManager.persist(obj);
            try{
                entityTransaction.commit();
            } finally {
                close();
    private void close(){
            EntityManager tempEntityManager = entityManager;
            EntityTransaction tempEntityTransaction = entityTransaction;
            entityManager = null;
            entityTransaction = null;
            try{
                if(tempEntityTransaction != null &&  tempEntityTransaction.isActive()){
                    tempEntityTransaction.rollback();
            } finally{
                if(tempEntityManager != null) {
                    tempEntityManager.close();
        }As you can see, my commit method calls the persist method always, so if I try to commit an entity twice, it should throw an exception, but instead it updates the entity. Could any of you tell me why this is the case?

    Look at the setLenient method.
    Also, read the part in the docs about when the number of characters does and does not matter when parsing.

  • Can't send texts to one particular friend, texts work one-way, phone calls work both way

    For about a bit more than a month now, one particular friend (and just one, as far as I can tell) has not been receiving my text messages. He can send me texts messages and we are able to call each other. The texts emitted from my phone however, don't seem to go through. I have no indication that the text has not been delivered (no red exclamation point next to it). This particular person is not using an iPhone for this particular phone number.
    I am using an iPhone 4 (32GB) running iOS 7.1.2.
    I have tried many different things.
    (1) I have checked that this friend was not in my block list. The block list is empty. But even if that person were in my block list, would I be able to receive texts and call? I have tried adding that person to the block list then sending a text. Then removing that person from the block list and texting again.
    (2) Yesterday I have restored my phone from a backup. I then erased completely the (long) text exchange between me and this friend, waited for the phone to process the deletion and tried again to send a text. I then deleted the entire contact information of this friend. And then I texted the phone number.
    None of these steps have worked. I'm very puzzled.
    Has anyone ever been confronted to an issue like this one?

    This friend has an iPhone and I can iMessage him on his other phone numbers (he has three). For a short time the Sim card attached to this phone number was inside an iPhone and we did iMessage each other but that was almost a year ago (April 2014). That sim card is now in an ordinary phone (not a smartphone, not an iPhone). We reverted back to texting for a long while. It only began to act strangely on January of this year.
    On that friend's contact card, 2 of the numbers (the ones attached to his iPhone) have blue bubbles next to them. The number I can't send texts to doesn't have that blue bubble - meaning that the number doesn't have iMessage capabilities, right?

  • HT5527 I do not like a one way conversation, like do not reply to this email. Please be different

    Listen

    I have no idea what you're talking about. If you have a technical problem and would like help from us, your fellow users, please post a full description of your problem or issue and we'll do our best to help you. If you have comments about an Apple product that you would like to submit to Apple, use their feedback pages:
    http://www.apple.com/feedback
    For feedback pages for Apple's web site or support services:
    http://www.apple.com/contact/
    Regards.

  • Exception not throwing to action class in Unix environment

    Hi
    We are using Weblogic Server 9.2.3.0.
    One of our EJB is not throwing exception to calling Action class in Unix environment. Its working fine in Windows.
    Somehow the EJB is swallowing the exception.
    any idea? I suspect it may be environmental issue?
    thank you

    Thanx for your reply.. I just found a solution and would like to share that with you. There are some default request parameters passed by the portal to the action class. "strutsAction" is one of them. If you print this parameters, you will see that it contains the complete url of your action. Now you can use String manipulation to extract the value of the parameters.
    I know its a crude solution. But it works fine.
    Best regards,
    Omer

  • Constructor can throw exception or Not ?

    Anybody please tell me if the constructor throws an exception or not ?
    Please reply soon
    Thanks
    Amitindia

    A constructor can throw an Exception. However I
    would suggest throwing the generic Throwable, Error,
    Exception or RuntimeException rather than a specific
    exception is bad practice and you should choose an
    appropirate exception to throw.All depends on wich kind of exception you are throwing,checked or unchecked. It's an even worse form to throw a RE, Error, or Throwable when you are throwing in fact a checked exception.
    Nevertheless, I do agree, you must always strive to not throw exceptions, of any kind, in your construtor code. Construtors should be simple and reliable. Unles you have a very compelling reason to not do it, try to isolate the risky parts of the code where they are called ofter object construction or class loading.
    May the code be with you.

  • Web part throwing exception at run time but not in debug mode

    The below code is throwing exception at run time but does not throw exception while debugging in Visual Studio. This is really causing difficulty for me to detect the cause of exception. Below I have also placed the exception image for reference.
    namespace CheckforContractorLogin.VisualWebPart1
    public partial class VisualWebPart1UserControl : UserControl
    protected void Page_Load(object sender, EventArgs e)
    if (!IsPostBack)
    string loginName = string.Empty;
    string coc_url = string.Empty;
    SPQuery spQuery = new SPQuery();
    spQuery.Query = "<Where><Eq><FieldRef Name='LoginName' /><Value Type='Text'>" + currentUser + "</Value></Eq></Where>";
    Guid _spSiteID = SPContext.Current.Site.ID;
    Guid _spWebID = SPContext.Current.Site.OpenWeb().ID;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite _spSite = new SPSite(_spSiteID))
    using (SPWeb _spWeb = _spSite.OpenWeb(_spWebID))
    //if user has already accepted the COC
    SPList getSPList = _spWeb.Lists["RedirectUrl"];
    SPListItemCollection getspItemColl = getSPList.Items;
    foreach (SPListItem item in getspItemColl)
    if (Convert.ToString(item["Title"]) == "Policy Acceptance")
    coc_url = Convert.ToString(item["Url"]);
    SPList spList = _spWeb.Lists["Policy Acceptance Status"];
    SPListItemCollection spItemColl = spList.GetItems(spQuery);
    bool result = getADUserInfo();
    if ((spItemColl.Count == 0) && (result))
    Response.Redirect(coc_url);
    protected string currentUser
    get
    string currentUser1 = HttpContext.Current.User.Identity.ToString();
    int index = currentUser1.IndexOf("\\") + 1;
    string currentLoginUser = currentUser1.Substring(index);
    return currentLoginUser;
    protected bool getADUserInfo()
    DirectoryEntry dentry = null;
    DirectorySearcher dsearcher = null;
    string ldap = string.Empty;
    string empID = string.Empty;
    string _empID = string.Empty;
    try
    Guid spSiteGUID = SPContext.Current.Site.ID;
    Guid spWebGUID = SPContext.Current.Site.OpenWeb().ID;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite elevatedSiteColl = new SPSite(spSiteGUID))
    using (SPWeb elevatedWeb = elevatedSiteColl.OpenWeb(spWebGUID))
    SPList spList = elevatedWeb.Lists["LDAP_Paths"];
    SPQuery spQuery = new SPQuery();
    spQuery.Query = "<Where><Eq><FieldRef Name='OU'/>"
    + "<Value Type='Text'>QD</Value></Eq></Where>";
    SPListItem spItem = spList.GetItemById(1);
    ldap = spItem["Path"].ToString();
    dentry = new DirectoryEntry();
    dentry.Path = ldap;
    dentry.Username = "******\\sp_admin";
    dentry.Password = "******";
    dsearcher = new DirectorySearcher(dentry);
    dsearcher.Filter = String.Format("(&(ObjectCategory=Person)(sAMAccountName=" + currentUser + "))");
    SearchResult searchResult = dsearcher.FindOne();
    dentry = searchResult.GetDirectoryEntry();
    if (searchResult != null)
    if (dentry.Properties.Contains("physicalDeliveryOfficeName"))
    empID = dentry.Properties["physicalDeliveryOfficeName"][0].ToString();
    if (empID.Contains("QA-"))
    return true;
    else
    return false;
    catch (Exception e)
    throw e;
    finally
    dentry.Close();
    dentry.Dispose();
    dsearcher.Dispose();

    Hi Zakir,
    I am not sure but it would be nice if you can do following
    Try search ULS log with correlation id and find exact error and share here. If not able to find do following
    Or in catch block write
    Response.Write(ex.ToString());
    and check what exception its giving.

  • SQL query throwing Exception.

    Hi,
    i am facing a problem while using the date as search criteria. In the JDO class the field type is of java.util.Date. The search is working in the local environment whose local date settings as M/d/YYYY(windows 2003 , english version).The search is not working in the chines OS environment , where the local date setting is YYYY-M-d. In the chinese enviroment , if we alter the session NLS settings in toad, we could able to execute the query.
    we are using kodo-2.5.8
    SELECT t0.JDO_ID, t0.JDO_CLASS, t0.BAD_NAMES, t0.CONCAT_NAME, t0.DDATE, t0.FIRST_NAME, t0.LAST_NAME, t0.MAX_SCN, t0.NAME,
    t0.NATURALID, t0.PARTYID, t0.PHONE, t0.ROLE FROM PARTY_VBO t0 WHERE (t0.ROLE LIKE '%ICR%' AND t0.DDATE = '17-APR-1974' AND ROWNUM <= 25) AND
    t0.JDO_CLASS = 2 ORDER BY t0.PARTYID ASC)
    This Query is throwing ORA-01843.
    From where the session opened by the java in oracle will take the data format?

    Plaese help.
    One of my sql query is throwing exception during
    execution. I do not know which one (there are several
    of them). Is there a way to display or extract the
    last query from SQLException class.
    Any help will be highly appreciated.
    Thanks,
    Indrasish.No there is not. You should do some debugging, such as logging something like: "Executing query: SELECT blahblahblah" - then execute the query, then log something like: "Query completed". Then find in your log which one didn't complete.

  • Issues with one way invocation in BPEL Process

    We have a synchronous BPEL Process that invokes that calls a one-way BPEL Process.It was working fine. But now we are encountering a intermittent issue in Production
    We could see that the synchronous BPEL Process is invoking the One way BPEL Process and getting completed. But we could see no instance is created for the one way BPEl Process.
    Its a critical issue we are encountering . Your help is highly appreciated.

    I suppose, any unhandled exception in the one-way BPEL process could have caused rollback of the instance and hence the instance might not be seen. Add fault handlers-catch/catch-all blocks in the one-way BPEL process if not done already, and test.

Maybe you are looking for