Exceptions for cursor definition

Select statement of parametric cursor in DECLARE section fetches no records based on some id. I have one error table and populating with these type of ids'. Here control is not going to exception block because succeeding block of declare section is begin section. Please let me know how trap these ids'.
Thank you.

Hi
A cursor for loop does not raise NODATA_FOUND. If you want to raise NO_DATA_FOUND then use an explict open and fetch.
declare
cursor dept_cur is
select deptno
from dept;
cursor emp_cur (dno number) is
select empno,ename
from emp
where deptno = dno;
emprec emp_cur%ROWTYPE
begin
for dept_rec in dept_cur
loop
begin
open emp_cur(dept_rec.deptno);
loop
fetch dept_cur into deptrec;
raise NO_DATA_FOUND when dept_rec%NOTFOUND;
end loop;
close emp_cur;
exception
when no_data_found
then insert into err_table values
(dept_rec.deptno);
end;
end loop;
end;HTH
Arvind Balaraman

Similar Messages

  • TF215097: An error occurred while initializing a build for build definition : Could not establish trust relationship for the SSL/TLS secure channel

    Hello,
    We are facing an issue when triggering a new build using TFS 2013 Update 4, VS2013 Update 4 using TFVCTemplate.12.XAML template. All our other older build definitions just work fine but not the TFVCTemplate.12.XAML.  It seems to me that some certificate
    might be invalidated. Can anyone please point me in the right direction? 
    Thanks, 
    Mitul
    TF215097: An error occurred while initializing a build for build definition :
    Exception Message: One or more errors occurred. (type AggregateException)
    Exception Stack Trace: at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
    at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFile(TfsTeamProjectCollection projectCollection, String itemPath, Stream outputStream)
    at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFileAsString(TfsTeamProjectCollection projectCollection, String itemPath)
    at Microsoft.TeamFoundation.Build.Client.ProcessTemplate.Download(String sourceGetVersion)
    at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity activity, IBuildDetail build, WorkflowRequest request, IDictionary`2 dataContext)
    at Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest request, WorkflowManagerActivity activity, BuildWorkflowInstance& workflowInstance, Exception& error, Boolean& syncLockTaken)
    Inner Exception Details:
    Exception Message: An error occurred while sending the request. (type HttpRequestException)
    Exception Stack Trace: at Microsoft.VisualStudio.Services.WebApi.VssHttpRetryMessageHandler.<SendAsync>d__1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
    at Microsoft.VisualStudio.Services.WebApi.HttpClientExtensions.<DownloadFileFromTfsAsync>d__2.MoveNext()
    Inner Exception Details:
    Exception Message: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. (type WebException)Exception Stack Trace: at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
    at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
    Inner Exception Details:
    Exception Message: The remote certificate is invalid according to the validation procedure. (type AuthenticationException)
    Exception Stack Trace: at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
    at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)

    Hi Mitul,
    Thanks for your reply.
    It’s strange, if your old build definitions can work using the same TFS Build Server, that indicate your TFS Server configuration is correct and can works. But only new build definition with default TfvcTemplate.12.xaml template cannot build successful.
    Please share your TFS Server detailed environment information here. And share your
    Build Service Properties dialog screenshot here.
    Try to clean the Cache for TFS 2013 manually(delete the content of the folder only, not the cache folder itself):
    Clean the Cache folder on Server machine. The folder path is:
    C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\_tfs_data.  
    After cleaned, on Server machine, click Start and select
    Run… to open the dialog box, then input iisreset.exe and click OK, wait it run completely.
    Additionally, you can run the TFS 2013 Power Tools BPA to scan the installation of your TFS Server.
    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.
    Click
    HERE to participate the survey.

  • How to check with table for cursor..?

    How to check with table for cursor..?
    Here I have Table temp_final_plan
    Here i want to update if already exit...below is the procedure....
    CREATE OR REPLACE PROCEDURE spu_final_profit_plan
    AS
    -- Constant declarations
      ln_errnum number := 0;
    -- Variable declarations
       ls_errmsg app_errors.err_msg%TYPE;
       ls_appmsg app_errors.app_msg%TYPE;
       ls_appid  app_errors.app_id%TYPE;
    -- Cursor declaration for final_update_el
    CURSOR cur_final_update_el IS
        select '910' ent,
               '9127316' center,
               post_acct,
               sum(avg_mtd_01) sum_avg_mtd_01,
               sum(avg_mtd_02) sum_avg_mtd_02,
               sum(avg_ytd_01) sum_avg_ytd_01,
               sum(avg_ytd_02) sum_avg_ytd_02
          from mon_act_cypy
         where rec_type = 'A'
           and sum_flag = 'D'
           and yr = '2008'
           and substr(ctr_or_hier, 1, 2) = 'el'
           and ent || sub_ent in
               (select ent || sub_ent
                  from ent_ref
                 where roll_ent || roll_sub_ent = '999100')
         group by post_acct
        having sum(avg_mtd_01) <> 0
            or sum(avg_mtd_02) <> 0
            or sum(avg_ytd_01) <> 0
            or sum(avg_ytd_02) <> 0;
    -- Cursor declaration for final_update
    CURSOR cur_final_update IS
        select b.plan_ent b_plan_ent,
               b.plan_ctr b_plan_ctr,
               a.post_acct a_post_acct,
               sum(a.avg_mtd_01) sum_avg_mtd_01,
               sum(a.avg_mtd_02) sum_avg_mtd_02,
               sum(a.avg_ytd_01) sum_ytd_mtd_01,
               sum(a.avg_ytd_02) sum_ytd_mtd_02
          from mon_act_cypy a,
               plan_unit_tbl b
         where a.ent || a.ctr_or_hier = b.ent || b.ctr_or_hier
           and a.rec_type = 'A'
           and a.sum_flag = 'D'
           and a.yr = '2008'
           and b.hier_tbl_num = '001'
           and a.ent || a.sub_ent in
               (select ent || sub_ent
                  from ent_ref
                 where roll_ent || roll_sub_ent = '999100')
         group by b.plan_ent, b.plan_ctr, a.post_acct
        having sum(a.avg_mtd_01) <> 0
            or sum(a.avg_mtd_02) <> 0
            or sum(a.avg_ytd_01) <> 0
            or sum(a.avg_ytd_02) <> 0;
    -- Begin the procedure body
       BEGIN
    -- Insert / Update final profit plan for final_update query using cursor
       FOR rec_final_update_el IN cur_final_update_el
       LOOP
       EXIT WHEN rec_final_update_el%NOTFOUND;
       IF rec_final_update_el. THEN
          UPDATE temp_final_plan
             SET sum_avg_mtd_01 = rec_final_update_el.sum_avg_mtd_01,
                 sum_avg_mtd_02 = rec_final_update_el.sum_avg_mtd_02,       
                 sum_avg_ytd_01 = rec_final_update_el.sum_avg_ytd_01,       
                 sum_avg_ytd_02 = rec_final_update_el.sum_avg_ytd_02,       
           WHERE ent = rec_final_update_el.ent
             AND center = rec_final_update_el.center
             AND post_acct = rec_final_update_el.post_acct;
       ELSE
          INSERT INTO temp_final_plan VALUES(rec_final_update_el.ent,
                                             rec_final_update_el.center,
                                             rec_final_update_el.post_acct,
                                             rec_final_update_el.sum_avg_mtd_01,
                                             rec_final_update_el.sum_avg_mtd_02,
                                             rec_final_update_el.sum_avg_ytd_01,
                                             rec_final_update_el.sum_avg_ytd_02);
       END IF;
       END LOOP;
    -- Insert / Update final profit plan for final_update query using cursor
       FOR rec_final_update IN cur_final_update
       LOOP
       EXIT WHEN rec_final_update%NOTFOUND;
       IF rec_final_update. THEN
          UPDATE temp_final_plan
             SET sum_avg_mtd_01 = rec_final_update.sum_avg_mtd_01,
                 sum_avg_mtd_02 = rec_final_update.sum_avg_mtd_02,       
                 sum_avg_ytd_01 = rec_final_update.sum_avg_ytd_01,       
                 sum_avg_ytd_02 = rec_final_update.sum_avg_ytd_02,       
           WHERE ent = rec_final_update.b_plan_ent
             AND center = rec_final_update.b_plan_ctr
             AND post_acct = rec_final_update.a_post_acct;
       ELSE
          INSERT INTO temp_final_plan VALUES(rec_final_update.b_plan_ent,
                                             rec_final_update.b_plan_ctr,
                                             rec_final_update.a_post_acct,
                                             rec_final_update.sum_avg_mtd_01,
                                             rec_final_update.sum_avg_mtd_02,
                                             rec_final_update.sum_avg_ytd_01,
                                             rec_final_update.sum_avg_ytd_02);
       END IF;
       END LOOP;
    -- EXCEPTION handling section
       EXCEPTION
    -- Fire OTHERS Exception case by default
       WHEN OTHERS THEN
    -- ROLL BACK Transaction, if any failure
       ROLLBACK;
       ln_errnum := SQLCODE;
       ls_errmsg := SUBSTR(SQLERRM, 1, 100);
    -- Log the ERRORS into APP_ERRORS table using SPU_LOG_ERRORS procedure
       spu_log_errors(ln_errnum, ls_errmsg, ls_appid, ls_appmsg);
    -- End of the stored procedure
    END spu_final_profit_plan;
    [\pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I'm not sure what you mean by, 'How to check with table for cursor..?' but I'll offer a comment on your Code Snippet. I think you want to know how to check if a record exists so you know if you need to perform an INSERT or an UPDATE.
    Here is a snippet of your code. I'll put my comments in "Comment" style in your code.
    -- Insert / Update final profit plan for final_update query using cursor
       FOR rec_final_update_el IN cur_final_update_el
       LOOP
    /* There is no need to test for %NOTFOUND since you are using Cursor FOR Loop! 
    ** This construct automatically exits when the last record is processed. */
       EXIT WHEN rec_final_update_el%NOTFOUND;
    /* Is this where you would like to know how to Check if the record already exist??
    ** I asked this because, 'rec_final_update_el.' is not valid syntax.  Are you looking for
    ** an Cursor Attribute or Method you can check here? 
    ** I would suggest a Primary Key or Unique Index on ENT, CENTER, and POST_ACCT
    ** on the TEMP_FINAL_PLAN table. Then simply perform an INSERT and code an
    ** Exception to UPDATE when you get a DUP_VAL_ON_INDEX exception.  Otherwise,
    ** you will need to simply run an Implicit or Explicit Cursor to test if the row exists and
    ** use this return value to determine if you should INSERT or UPDATE.  */
       IF rec_final_update_el. THEN
          UPDATE temp_final_plan
             SET sum_avg_mtd_01 = rec_final_update_el.sum_avg_mtd_01,
                 sum_avg_mtd_02 = rec_final_update_el.sum_avg_mtd_02,       
                 sum_avg_ytd_01 = rec_final_update_el.sum_avg_ytd_01,       
                 sum_avg_ytd_02 = rec_final_update_el.sum_avg_ytd_02,       
           WHERE ent = rec_final_update_el.ent
             AND center = rec_final_update_el.center
             AND post_acct = rec_final_update_el.post_acct;
       ELSE
          INSERT INTO temp_final_plan VALUES(rec_final_update_el.ent,
                                             rec_final_update_el.center,
                                             rec_final_update_el.post_acct,
                                             rec_final_update_el.sum_avg_mtd_01,
                                             rec_final_update_el.sum_avg_mtd_02,
                                             rec_final_update_el.sum_avg_ytd_01,
                                             rec_final_update_el.sum_avg_ytd_02);
       END IF;
       END LOOP;I hope I've answered your question, but if I haven't please provide more details so we can better understand your request.
    Craig...

  • What are the required/recommended Antivirus exceptions for BPC ????

    I need to provide and implement a definitive list of required Antivirus exceptions for BPC (both Web and SQL servers).  We currently run v5.1 but I would also like to know if anything is different for v7, although I don't see why it would be.
    However, I only seem to have vague references to exception lists (e.g. BPC Log Files or SQL database files)
    So I find myself wondering what the rest of the BPC community do in this resepct ???
    If you could let me know what exceptions are generally made (or even better, if you have an actual list of recommended exceptions), I would be extremely grateful.
    Thanks
    Craig

    Do not real-time scan SAP BPC server program directories.
      Do not real-time scan SQL Server and Analysis Services server
    program directories.
      Do not real-time scan the SQL Server and Analysis Services data
    directories.
      Do not real-time scan log files, temp folders and backup
    directories.
      Monitoring of network traffic should be specific to file type where
    possible
      Ensure the SAP BPC XLA and DLL files are not scanned real-time
    (these files are located in the BPC program files directory)
      The OutlookSoft folder within the My Documents folder that stores
    application and personal files can be scanned but is likely to
    impact the performance of dimension downloads and the retrieval
    of documents from these directories (wizards, process selector
    menus, etc).
    Regards
    Sorin Radulescu

  • HELP! *EVERYTHING* disappeared from my sidebar except for my MacBook Pro icon, which is still showing under "Devices".

    *Everything* disappeared from my sidebar except for my MacBook Pro icon, which is still showing under "Devices".

    Richard,
    I had checked Finder Preferences to make sure everything was still checked, and it was. But as a result of your suggestion I decided to go back and uncheck them, relaunch Finder, restart my MacBook Pro, and re-check them. That didn't actually change anything, BUT, in moving my cursor around the sidebar I discovered there is a "show/hide" button to the right of the word Favorites which only shows up when you hover over it (a bad design imo) and I must have somehow clicked on it and pouf! All disappeared! So, thank you! I would not have discovered that absent your suggestion. All is now showing in my sidebar again.
    Babette

  • Dynamic cursor definition in PL/SQL

    Is it possible to have dynamic cursor definition in PL/SQL. Like
    using DBMS_SQL for dynamic SQL. If yes, how?

    Assuming I understand your question correctly, you can use a REF
    CURSOR to which you associate a VARCHAR2 which is the query text:
    DECLARE
    TYPE t_cur IS REF CURSOR ; -- define t_cur as a type
    c_cur t_cur ; -- define an actual variable of type t_cur
    r_emp emp%ROWTYPE ; -- PL/SQL record to hold row
    v_query VARCHAR2(2000) := 'SELECT * FROM emp' ; -- the query!
    BEGIN
    OPEN c_cur FOR v_query ; -- v_query could contain any valid query
    FETCH c_cur INTO r_emp ; -- get first row from dataset
    CLOSE c_cur ; -- remember to close the cursor! ;)
    END ;
    HTH

  • Sound completely broken, except for bootup sound

    My Macbook Pro won't play any sounds, except for the mac startup sound. When I try to play a sound, the screen flashes as if I had universal access turned on, but I don't. This happened after I tried to repair disk permissions and verify the disk to try to get bootcamp to work. I had also just started using the Parallels virtualization software. There's also no sound when using the headphone port, so this definitely looks to me like a software issue. Is there any way I can repair/verify the audio drivers?

    JP - Be sure you've checked the simple stuff. Since
    you didn't mention this...
    Run System Preferences, select Sound and then the
    Output tab. Is the volume at zero or the Mute box
    checked?
    Click Show All, then choose Universal Access and the
    Hearing tab. Is Flash Screen checked?
    Failing both of those, try dragging <your home
    <div class="jive-quote">/Library/Preferences/com.apple.soundpref.plist and
    com.apple.universalaccess.plist to the desktop. Log
    out and back in. Any joy?
    I tried this (and resetting the PRAM), but still no luck. Interestingly, the soundprefs file was re-created, but I don't see the universal access prefs file getting re-created, even after trying to set/unset universal access settings.
    One more thing I noticed: iTunes also won't start, giving an error code of (-200).
    Good luck,
    John

  • JSR 172 marshal exception for complex type

    Hi,
    Im trying to run a JSR 172 webservice but i always get marshall exception for complex types, below is my code:
    WSDL:
    <?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-417-SNAPSHOT. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-417-SNAPSHOT. -->
    <definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://newsletter.kp/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://newsletter.kp/" name="NewsService">
        <ns1:Policy xmlns:ns1="http://www.w3.org/ns/ws-policy" wsu:Id="NewsPortBinding_getNewslettersRemote_WSAT_Policy">
            <ns1:ExactlyOne>
                <ns1:All>
                    <ns2:ATAlwaysCapability xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/10/wsat"></ns2:ATAlwaysCapability>
                    <ns3:ATAssertion xmlns:ns4="http://schemas.xmlsoap.org/ws/2002/12/policy" xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/10/wsat" ns1:Optional="true" ns4:Optional="true"></ns3:ATAssertion>
                </ns1:All>
            </ns1:ExactlyOne>
        </ns1:Policy>
        <types>
            <xsd:schema>
                <xsd:import namespace="http://newsletter.kp/" schemaLocation="http://localhost:8080/NewsService/News?xsd=1"></xsd:import>
            </xsd:schema>
        </types>
        <message name="getNewslettersRemote">
            <part name="parameters" element="tns:getNewslettersRemote"></part>
        </message>
        <message name="getNewslettersRemoteResponse">
            <part name="parameters" element="tns:getNewslettersRemoteResponse"></part>
        </message>
        <portType name="News">
            <operation name="getNewslettersRemote">
                <ns5:PolicyReference xmlns:ns5="http://www.w3.org/ns/ws-policy" URI="#NewsPortBinding_getNewslettersRemote_WSAT_Policy"></ns5:PolicyReference>
                <input message="tns:getNewslettersRemote"></input>
                <output message="tns:getNewslettersRemoteResponse"></output>
            </operation>
        </portType>
        <binding name="NewsPortBinding" type="tns:News">
            <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"></soap:binding>
            <operation name="getNewslettersRemote">
                <ns6:PolicyReference xmlns:ns6="http://www.w3.org/ns/ws-policy" URI="#NewsPortBinding_getNewslettersRemote_WSAT_Policy"></ns6:PolicyReference>
                <soap:operation soapAction="getNews"></soap:operation>
                <input>
                    <soap:body use="literal"></soap:body>
                </input>
                <output>
                    <soap:body use="literal"></soap:body>
                </output>
            </operation>
        </binding>
        <service name="NewsService">
            <port name="NewsPort" binding="tns:NewsPortBinding">
                <soap:address location="http://localhost:8080/NewsService/News"></soap:address>
            </port>
        </service>
    </definitions>Stub:
    public class NewsService_Stub implements NewsService, javax.xml.rpc.Stub {
        private String[] _propertyNames;
        private Object[] _propertyValues;
        public NewsService_Stub() {
            _propertyNames = new String[] { ENDPOINT_ADDRESS_PROPERTY };
            _propertyValues = new Object[] { "http://localhost:8080/NewsService/News" };
        public void _setProperty( String name, Object value ) {
            int size = _propertyNames.length;
            for (int i = 0; i < size; ++i) {
                if( _propertyNames.equals( name )) {
    _propertyValues[i] = value;
    return;
    String[] newPropNames = new String[size + 1];
    System.arraycopy(_propertyNames, 0, newPropNames, 0, size);
    _propertyNames = newPropNames;
    Object[] newPropValues = new Object[size + 1];
    System.arraycopy(_propertyValues, 0, newPropValues, 0, size);
    _propertyValues = newPropValues;
    _propertyNames[size] = name;
    _propertyValues[size] = value;
    public Object _getProperty(String name) {
    for (int i = 0; i < _propertyNames.length; ++i) {
    if (_propertyNames[i].equals(name)) {
    return _propertyValues[i];
    if (ENDPOINT_ADDRESS_PROPERTY.equals(name) || USERNAME_PROPERTY.equals(name) || PASSWORD_PROPERTY.equals(name)) {
    return null;
    if (SESSION_MAINTAIN_PROPERTY.equals(name)) {
    return new Boolean(false);
    throw new JAXRPCException("Stub does not recognize property: " + name);
    protected void _prepOperation(Operation op) {
    for (int i = 0; i < _propertyNames.length; ++i) {
    op.setProperty(_propertyNames[i], _propertyValues[i].toString());
    public newsletter[] getNewslettersRemote() throws java.rmi.RemoteException {
    Object inputObject[] = new Object[] {
    Operation op = Operation.newInstance( qnameoperation_getNewslettersRemote, typegetNewslettersRemote, typegetNewslettersRemoteResponse );
    _prepOperation( op );
    op.setProperty( Operation.SOAPACTION_URI_PROPERTY, "getNews" );
    Object resultObj;
    try {
    resultObj = op.invoke( inputObject );
    } catch( JAXRPCException e ) {
    Throwable cause = e.getLinkedCause();
    if( cause instanceof java.rmi.RemoteException ) {
    throw (java.rmi.RemoteException) cause;
    throw e;
    return newsletter_ArrayfromObject((Object[])((Object[]) resultObj)[0]);
    private static newsletter[] newsletter_ArrayfromObject( Object obj[] ) {
    if(obj == null) return null;
    newsletter result[] = new newsletter[obj.length];
    for( int i = 0; i < obj.length; i++ ) {
    result[i] = new newsletter();
    Object[] oo = (Object[]) obj[i];
    result[i].setBody((String )oo[0]);
    result[i].setId((Long )oo[1]);
    result[i].setImageLocation((String )oo[2]);
    result[i].setTitle((String )oo[3]);
    return result;
    protected static final QName qnameoperation_getNewslettersRemote = new QName( "http://newsletter.kp/", "getNewslettersRemote" );
    protected static final QName qnamegetNewslettersRemote = new QName( "http://newsletter.kp/", "getNewslettersRemote" );
    protected static final QName qnamegetNewslettersRemoteResponse = new QName( "http://newsletter.kp/", "getNewslettersRemoteResponse" );
    protected static final Element typegetNewslettersRemote;
    protected static final Element typegetNewslettersRemoteResponse;
    static {
    typegetNewslettersRemote = new Element( qnamegetNewslettersRemote, _complexType( new Element[] {
    }), 1, 1, false );
    typegetNewslettersRemoteResponse = new Element( qnamegetNewslettersRemoteResponse, _complexType( new Element[] {
    new Element( new QName( "", "return" ), _complexType( new Element[] {
    new Element( new QName( "", "body" ), Type.STRING, 0, 1, false ),
    new Element( new QName( "", "id" ), Type.LONG, 0, 1, false ),
    new Element( new QName( "", "imageLocation" ), Type.STRING, 0, 1, false ),
    new Element( new QName( "", "title" ), Type.STRING, 0, 1, false )}), 0, Element.UNBOUNDED, true )}), 1, 1, false );
    private static ComplexType _complexType( Element[] elements ) {
    ComplexType result = new ComplexType();
    result.elements = elements;
    return result;
    }I tested the web service with the following xml
    input:<?xml version="1.0" encoding="UTF-8"?>
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Header/>
    <S:Body>
    <ns2:getNewslettersRemote xmlns:ns2="http://newsletter.kp/"/>
    </S:Body>
    </S:Envelope>
    output:bq. <?xml version="1.0" encoding="UTF-8"?> \\ <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> \\ <S:Body> \\ <ns2:getNewslettersRemoteResponse xmlns:ns2="http://newsletter.kp/"> \\ <return> \\ <body>teste</body> \\ <id>1</id> \\ <imageLocation>testes</imageLocation> \\ <title>teste</title> \\ </return> \\ <return> \\ <body>mau</body> \\ <id>2</id> \\ <imageLocation>mau</imageLocation> \\ <title>mau</title> \\ </return> \\ <return> \\ <body>mau</body> \\ <id>3</id> \\ <imageLocation>mau</imageLocation> \\ <title>mau</title> \\ </return> \\ <return> \\ <body>mau</body> \\ <id>4</id> \\ <imageLocation>mau</imageLocation> \\ <title>teste</title> \\ </return> \\ <return> \\ <body>2</body> \\ <id>5</id> \\ <imageLocation>2</imageLocation> \\ <title>2</title> \\ </return> \\ <return> \\ <body>corpo</body> \\ <id>6</id> \\ <imageLocation>imagem</imageLocation> \\ <title>Titulo</title> \\ </return> \\ <return> \\ <body>corpos</body> \\ <id>7</id> \\ <imageLocation>imagem</imageLocation> \\ <title>Titulo</title> \\ </return> \\ <return> \\ <body>teste</body> \\ <id>8</id> \\ <imageLocation>teste</imageLocation> \\ <title>teste</title> \\ </return> \\ <return> \\ <body>rweqrrq</body> \\ <id>9</id> \\ <imageLocation>rwe</imageLocation> \\ <title>rewq</title> \\ </return> \\ </ns2:getNewslettersRemoteResponse> \\ </S:Body> \\ </S:Envelope> \\ but i always get a:
    java.rmi.MarshalException: Invalid URI From Server: , expected: http://schemas.xmlsoap.org/soap/envelope/
            at news.NewsService_Stub.getNewslettersRemote(NewsService_Stub.java:73)
            at hello.HelloMIDlet.getTextField(HelloMIDlet.java:168)
            at hello.HelloMIDlet.getForm(HelloMIDlet.java:132)
            at hello.HelloMIDlet.startMIDlet(HelloMIDlet.java:56)
            at hello.HelloMIDlet.startApp(HelloMIDlet.java:205)
            at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:43)
            at com.sun.midp.midlet.Scheduler.schedule(Scheduler.java:374)
            at com.sun.midp.main.Main.runLocalClass(Main.java:466)
            at com.sun.midp.main.Main.main(Main.java:120)
    Can you please help me find the problem?
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello,
    A bit late, but I'm sure others will use this answers. We encountered the same problem in our development and after some hours playing with our WSDL we found the source of the problem.
    The problem is having a field named "body" in the Object this apparently doesn't work well with SOAP we guess because of the Envelope having also a Body.
    So the solution is changing the field body to something like msgBody.
    Regards,
    Raanan Nevet

  • My MacAir is great except for a problem i have. Keys F1, F2,F5,F6,F7,F8,F9,F10,F11,F12 and the power button are unresponsive. These are keys i frequently use and i have searched the whole apple help centre. Anyone got answers for me? Please helP!!!

    My MacAir is great except for a problem i have. Keys F1, F2,F5,F6,F7,F8,F9,F10,F11,F12 and the power button are unresponsive. These are keys i frequently use and i have searched the whole apple help centre. Anyone got answers for me? Please helP!!!

    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Universal Access pane in System Preferences, click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by Mac OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use Mac OS X: How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    http://support.apple.com/kb/TS1381

  • How to find next number range for project definition in tcode CJ20N

    Hai Experts,
          Please help me 'How to find next number range for project definition in tcode "CJ20N". I was trying in function module NUMBER_GET_NEXT. Is it right function module? If its right what input i need to give for this tcode and for the field project definition?
    Note: I searched in forum before posting, but couldn't find the solution.
    Thanks
    Regards,
    Prabu S.

    Hi,
    For project defination internal number is assigned by system.
    When you saves's project then system allocate one number to project defination, you can view it,
    SE11 >>> table  PROJ >> Click on contents >>> execute,
    here you will get your project defination & number is assigned to project defination.
    kapil

  • TS3988 Can someone please help me?   I have an Iphone 5 and Love it except for one thing. I changed  email address from yahoo to Gmail and updated it on my Apple ID at Apple.  Apple recognizes and accepts this change but Icloud won't update the new email

    I have an Iphone 5 and Love it.  Except for one thing;  I recently changed from ymail email account to a gmail account. I updated it on the
    Apple/ Itunes site and it does accept the change.  I can still access the APP store and Itunes. 
    However, sometimes I get a pop up box from Apple showing the old email address and asking me to sign in..... I hit cancel and move on.   But, now Icloud keeps popping up promting me to sign in and it shows the old email which I don't have anymore.... I tried signing in with the old info to clear it off screen of my phone but, it doesn't allow and I hit cancel and it goes away. only to appear later again....  This is so frustrating and annoying.    Is there any way to get the Icloud to update the email address with my Apple ID log in info--without having to delete stuff or lose things on my phone? 
    Please help?  
    Dia

    Thank you for replying.    Yes I deleted the old email address..   

  • HT1386 My MacBook Pro HD crashed.  It is all up and runmning except for one issue.  I have about 200 songs on my iPhone but have only gotton 53 back on my laptop and those are the songs I purchased via iTunes. How do I get the rest of the songs from iPhon

    My MacBook Pro HD crashed.  It is all up and runmning except for one issue.  I have about 200 songs on my iPhone but have only gotton 53 back on my laptop from my iPhone and those are the songs I purchased via iTunes. How do I get the rest of the songs from my  iPhone back onto my HD. 
    The songs I'm not able to import casme from CD's.  Nothing from napster etc.
    I've tried and tried to import them rom iTunes vis "Library"  " Import"

    Hey kbert73
    I would do a transfer of purchases from the phone and not sync. If you sync then it will want to start over and sync music that is on the MacBook Pro. If you want to transfer the music, check out the article below that will give you multiple options on how to move. I have also provided on how to sync with multiple computers.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Recently, U2 music appeared on my ipod without my requesting it or wanting it. I was able to delete all of the songs except for one. How do I delete the last one from my ipod? The song does not show up in iTunes when I plug my ipod into the computer.

    Recently, U2 music appeared on my ipod without my requesting it or wanting it. I was able to delete all of the songs except for one. How do I delete the last one from my ipod? The song does not show up in iTunes when I plug my ipod into the computer. The version installed on my ipod is 7.1.2(11D257).

    Hi donfrommars,
    Welcome to the Apple Support Communities!
    Please use the following article for information and instruction on deleting the U2 album from your devices and account.
    Remove iTunes gift album "Songs of Innocence" from your iTunes music library and purchases
    Have a great day,
    Joe

  • My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    Settings>Mail, Contacts, Calendars>Calendars>Sync>All Events.
    Note: If you're using a work Exchange account, the administrator my have restricted your options for this setting.

  • I've just hooked my 20" iMac up to my Toshiba 37" HDTV using a mini dvi-HDMI adapter, and works well, EXCEPT for the green tinge (or hue) that is showing up on my TV. Any suggestions or ideas?

    I've just hooked my 20" iMac display up to my Toshiba 37" HDTV using a mini dvi-HDMI adapter, and everything works well, EXCEPT for the green tinge (or hue) that is showing up. Everything else looks pretty good though..... The color that is on my iMac is still good, Its just green on the TV.
    Anyone have suggestions or ideas?

    Try opening the Display System Preferences, then click on the Color options in the Display preferences window that appeared on the Toshiba display. Click on the Calibrate button and follow the instructions for creating a custom ColorSync profile that will hopefully solve the green tinge issue. The Apple Display Calibrator Assistant software that launches when you click on the calibrate button will walk you through the process.Assuming that the green tinge is minor and that you don't have a more serious cable or hardware issue, I am hopeful the results will be worth it.

Maybe you are looking for

  • HP P1606dn network printer spools jobs but won't print without a "form feed"

    I recently changed by HP P1606dn printer from a USB connection to my HP desktop running Windows 7 (64bit) to a network connection.  The objective was to allow my Mac (OS 10.6.8) to print to this printers as well via the network.  When I first install

  • Javascript for email form - where in the source code editor does it go?

    Hi, I've copied some javascript that I thought would allow me to create a form to collect email addresses, but when I paste the code below between the head or body tags and preview the page nothing happens. Any help would be most appreciated. script

  • Scroll bar moved layout slightly to left

    If content on ALL of my site either did or didn't require a scroll bar, the transitions when clicking from page to page would all look smooth. Unfortunately I have some pages that are short (and so the browser displays no display bar) and other pages

  • Pse 9 Restore problems

    Using Windows XP and running PSE 6 & 8, I backed up catalogues to disk.  Four years worth.  I cannot restore those disks to my current Mac computer, running PSE 9.  Can anybody help, or are those pics gone forever.  I no longer have access to the ori

  • Resource  for zones

    Hello, I've four zones running on PrimePower650 server (8xCPU, 64GB RAM). All of them are only for developers (different instances of oracle 10g). Zone config is as minimal as it can be: only shared network (the same interface on global) and FSS enab