JAXB error...urgent help needed

I am trying to create an XML document from user input (via the request) and am recieving the following error. I am unsure where to look as I have exhausetd everything I can think of. Given the error, where should I be looking? Could it be I am not creating my elements properly?
Any help would be greatly appreciated.
Jesse
error details:
DefaultValidationEventHandler: [ERROR]: a required object is missing
Location: unavailable
com.sun.xml.bind.serializer.AbortSerializationException: a required object is missing
     at sdh.po.impl.runtime.SAXMarshaller.reportError(SAXMarshaller.java:416)
     at sdh.po.impl.runtime.SAXMarshaller.text(SAXMarshaller.java:262)
     at sdh.po.impl.ContactAddressTypeImpl.serializeElementBody(ContactAddressTypeImpl.java:77)
     at sdh.po.impl.runtime.SAXMarshaller.childAsElementBody(SAXMarshaller.java:378)
     at sdh.po.impl.ContactInformationImpl.serializeElementBody(ContactInformationImpl.java:115)
     at sdh.po.impl.runtime.SAXMarshaller.childAsElementBody(SAXMarshaller.java:378)
     at sdh.po.impl.MetadataTypeImpl.serializeElementBody(MetadataTypeImpl.java:60)
     at sdh.po.impl.MetadataImpl.serializeElementBody(MetadataImpl.java:43)
     at sdh.po.impl.runtime.MarshallerImpl.write(MarshallerImpl.java:161)
     at sdh.po.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:134)
     at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:66)
     at nfis.SubmissionServlet.doPost(SubmissionServlet.java:87)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
     at java.lang.Thread.run(Thread.java:534)
--------------- linked to ------------------
javax.xml.bind.MarshalException
- with linked exception:
[com.sun.xml.bind.serializer.AbortSerializationException: a required object is missing]
     at sdh.po.impl.runtime.MarshallerImpl.write(MarshallerImpl.java:166)
     at sdh.po.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:134)
     at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:66)
     at nfis.SubmissionServlet.doPost(SubmissionServlet.java:87)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
     at java.lang.Thread.run(Thread.java:534)

It is probable that you are creating an element, and then explicitly setting its value to null. This will cause the error you are getting even if the minOccurs for the particular element is set to 0.

Similar Messages

  • DiskSpace Report Alert Error - Urgently Help Needed

    Hell All
    I have been take the scripts from https://gallery.technet.microsoft.com/scriptcenter/Disk-Space-Report-Reports-98e64d65
    Which is working fine , but my end of scripts out Auto Disclaimer is added and the output has little bit collapsed
    Disclaimer HAS BEEN added to the waring and critical Table which is mentioned on this script which is underlined now. and how avoid this 
    Urgent help is needed
    #  Check disk space and send an HTML report as the body of an email.        #
    #  Reports only disks on computers that have low disk space.                #
    #  Author: Mike Carmody                                                     #
    #  Some ideas extracted from Thiyagu's Exchange DiskspaceHTMLReport module. #
    #  Date: 8/10/2011                                                          #
    #  I have not added any error checking into this script yet.                #
    # Continue even if there are errors
    $ErrorActionPreference = "Continue";
    # Items to change to make it work for you.
    # EMAIL PROPERTIES
    #  - the $users that this report will be sent to.
    #  - near the end of the script the smtpserver, From and Subject.
    # REPORT PROPERTIES
    #  - you can edit the report path and report name of the html file that is the report. 
    # Set your warning and critical thresholds
    $percentWarning = 15;
    $percentCritcal = 10;
    # EMAIL PROPERTIES
    # Set the recipients of the report.
    $users = "[email protected]"
      #$users = "[email protected]" # I use this for testing by uing my email address.
    #$users = "[email protected]", "[email protected]", "[email protected]";  # can be sent to individuals.
    # REPORT PROPERTIES
    # Path to the report
    $reportPath = "D:\Jobs\DiskSpaceQuery\Reports\";
    # Report name
    $reportName = "DiskSpaceRpt_$(get-date -format ddMMyyyy).html";
    # Path and Report name together
    $diskReport = $reportPath + $reportName
    #Set colors for table cell backgrounds
    $redColor = "#FF0000"
    $orangeColor = "#FBB917"
    $whiteColor = "#FFFFFF"
    # Count if any computers have low disk space.  Do not send report if less than 1.
    $i = 0;
    # Get computer list to check disk space
    $computers = Get-Content "servers_c.txt";
    $datetime = Get-Date -Format "MM-dd-yyyy_HHmmss";
    # Remove the report if it has already been run today so it does not append to the existing report
    If (Test-Path $diskReport)
            Remove-Item $diskReport
    # Cleanup old files..
    $Daysback = "-7"
    $CurrentDate = Get-Date;
    $DateToDelete = $CurrentDate.AddDays($Daysback);
    Get-ChildItem $reportPath | Where-Object { $_.LastWriteTime -lt $DatetoDelete } | Remove-Item;
    # Create and write HTML Header of report
    $titleDate = get-date -uformat "%m-%d-%Y - %A"
    $header = "
    <html>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
    <title>DiskSpace Report</title>
    <STYLE TYPE='text/css'>
    <!--
    td {
    font-family: Tahoma;
    font-size: 11px;
    border-
    border-right: 1px solid #999999;
    border-bottom: 1px solid #999999;
    border-
    padding-
    padding-right: 0px;
    padding-bottom: 0px;
    padding-
    body {
    margin-
    margin-
    margin-right: 0px;
    margin-bottom: 10px;
    table {
    border: thin solid #000000;
    -->
    </style>
    </head>
    <body>
    <table width='100%'>
    <tr bgcolor='#CCCCCC'>
    <td colspan='7' height='25' align='center'>
    <font face='tahoma' color='#003399' size='4'><strong>AEM Environment DiskSpace Report for $titledate</strong></font>
    </td>
    </tr>
    </table>
     Add-Content $diskReport $header
    # Create and write Table header for report
     $tableHeader = "
     <table width='100%'><tbody>
    <tr bgcolor=#CCCCCC>
        <td width='10%' align='center'>Server</td>
    <td width='5%' align='center'>Drive</td>
    <td width='15%' align='center'>Drive Label</td>
    <td width='10%' align='center'>Total Capacity(GB)</td>
    <td width='10%' align='center'>Used Capacity(GB)</td>
    <td width='10%' align='center'>Free Space(GB)</td>
    <td width='5%' align='center'>Freespace %</td>
    </tr>
    Add-Content $diskReport $tableHeader
    # Start processing disk space reports against a list of servers
      foreach($computer in $computers)
    $disks = Get-WmiObject -ComputerName $computer -Class Win32_LogicalDisk -Filter "DriveType = 3"
    $computer = $computer.toupper()
    foreach($disk in $disks)
    $deviceID = $disk.DeviceID;
            $volName = $disk.VolumeName;
    [float]$size = $disk.Size;
    [float]$freespace = $disk.FreeSpace; 
    $percentFree = [Math]::Round(($freespace / $size) * 100, 2);
    $sizeGB = [Math]::Round($size / 1073741824, 2);
    $freeSpaceGB = [Math]::Round($freespace / 1073741824, 2);
            $usedSpaceGB = $sizeGB - $freeSpaceGB;
            $color = $whiteColor;
    # Set background color to Orange if just a warning
    if($percentFree -lt $percentWarning)      
      $color = $orangeColor
    # Set background color to Orange if space is Critical
          if($percentFree -lt $percentCritcal)
            $color = $redColor
     # Create table data rows 
        $dataRow = "
    <tr>
            <td width='10%'>$computer</td>
    <td width='5%' align='center'>$deviceID</td>
    <td width='15%' >$volName</td>
    <td width='10%' align='center'>$sizeGB</td>
    <td width='10%' align='center'>$usedSpaceGB</td>
    <td width='10%' align='center'>$freeSpaceGB</td>
    <td width='5%' bgcolor=`'$color`' align='center'>$percentFree</td>
    </tr>
    Add-Content $diskReport $dataRow;
    Write-Host -ForegroundColor DarkYellow "$computer $deviceID percentage free space = $percentFree";
        $i++
    # Create table at end of report showing legend of colors for the critical and warning
     $tableDescription = "
     </table><br><table width='20%'>
    <tr bgcolor='White'>
        <td width='10%' align='center' bgcolor='#FBB917'>Warning less than 15% free space</td>
    <td width='10%' align='center' bgcolor='#FF0000'>Critical less than 10% free space</td>
    </tr>
      Add-Content $diskReport $tableDescription
    Add-Content $diskReport "</body></html>"
    # Send Notification if alert $i is greater then 0
    if ($i -gt 0)
        foreach ($user in $users)
            Write-Host "Sending Email notification to $user"
    $smtpServer = "MySMTPServer"
    $smtp = New-Object Net.Mail.SmtpClient($smtpServer)
    $msg = New-Object Net.Mail.MailMessage
    $msg.To.Add($user)
            $msg.From = "[email protected]"
    $msg.Subject = "Environment DiskSpace Report for $titledate"
            $msg.IsBodyHTML = $true
            $msg.Body = get-content $diskReport
    $smtp.Send($msg)
            $body = ""
    https://gallery.technet.microsoft.com/scriptcenter/Disk-Space-Report-Reports-98e64d65

    Hi,
    I want to double confirm which version are you used, please also refer to scripting center for the similar scripts:
    Disk Space Monitoring - HTML EMAIL Report
    http://gallery.technet.microsoft.com/scriptcenter/6e935887-6b30-4654-b977-6f5d289f3a63
    Monitor Free Disk Space Information on a Computer
    http://gallery.technet.microsoft.com/scriptcenter/04c29c84-5ecc-4bf6-8dd4-2940db63d9f3
    List Available Disk Space
    http://gallery.technet.microsoft.com/scriptcenter/7fa38863-ad6f-4f46-ac91-9b7d4a30f52b
    Disk Space monitoring
    http://gallery.technet.microsoft.com/scriptcenter/fd4f5235-1a80-41ed-87e2-189278fd376c
    If you encounter any difficulties when customizing the scripts, you may submit a new question in
    The Official Scripting Guys Forum! which is a best resource for scripting related issues.
    Best Regards,
    Allen Wang

  • Jacob.jar Help/Webutil Error-Urgent Help Needed

    We are not using any OLE object in forms.But after implementation on WEBUTIL the browser starts giving below error:
    java.lang.NoClassDefFoundError:com/jacob/com/ComFailException
    Can anyone help ?
    Is jacob.jar is required to download even if we don't need it.
    Thanks
    Mandeep Singh

    Thanks for quick response.
    But my question is do we need to config jacob lib even we dn't need it.I am asking this because with this release of WEBUTIL,jacob is a seperate lic. product and its not a part of WEBUTIL pack.
    Thanks

  • Disk Error, Urgent help needed

    I will try to explain everything in a summarised form:
    i am using Macbook Air 2014 with Mavericks and Bootcamp windows 8.1
    I wanted the notes app of mountain lion to run in mavericks
    so created extra partition using disk utility and installed mountain lion using usb installer
    after finding out that  i cannot run old version of app in mavericks
    i deleted the mountain lion partition but when i dragged my Mavericks partition to expand it did not do anything
    i tried again by expanding it a little above the maximum available space
    it worked and my mavericks partition was 120 gb once again
    now my bootcamp partition was corrupt
    and recovery partition was missing from startup instead it shows boot efi
    disk utility gives Invalid number of allocation blocks and cannot repair it
    please tell me what should i do?
    would reinstalling mavericks be of any help?

    It is probable that you are creating an element, and then explicitly setting its value to null. This will cause the error you are getting even if the minOccurs for the particular element is set to 0.

  • SAP_XI_IDOC/IDOCFlatToXmlConvertor error: URGENT Help Needed

    Hi Team,
    I have Flat Idoc text file need to convert xml formate I am trying to use module configuration here . I have configured like below
    1 SAP_XI_IDOC/IDOCFlatToXmlConvertor Local Enterprise Bean 1
    2 CallSapAdapter                                    Local Enterprise Bean 0
    Module Configuration
    Module Key  Parameter name Parameter value
    1                 SAPRelease       700
    1       SourceJRA       XI_IDOC_DEFAULT_DESTINATION
    1     TargetDestination  ECC_JNDI_603
    I am getting error below
    Error: com.sap.engine.services.jndi.persistent.exceptions720.NameNotFoundException: Path to object does not exist. First missing component is [XI_IDOC_DEFAULT_DESTINATION], the whole lookup name is [deployedAdapters/XI_IDOC_DEFAULT_DESTINATION/shareable/XI_IDOC_DEFAULT_DESTINATION].
    Can you please suggest to me where I am doing wrong .
    Regards
    Tahir.A

    Check out this discussion:
    http://scn.sap.com/thread/3344764
    Also check William's blog:
    How to Use User-Module for Conversion of IDoc Messages Between Flat and XML Formats

  • Wlj2eedeployer.ear  ERROR  - urgent help needed

    I was trying to deploy wlj2eedeployer.ear in WLS 9.2 MP1 for ALBPM in an integrated environment. And I noticed an error for the first time. This error stops to deploy wlj2eedeployer and as a result of that I am not able to deploy the other ears.
    Upon further introspection I found a ALBPM installer document in which remedy of the error is as follow:
    “Unable to access the selected application. exception in AppMerge flows progression”
    If you get the error:
    “Unable to access the selected application. exception in AppMerge flows progression” then your installation of WebLogic 9.2 does not have MP1 applied (see “Prerequisites” section of this document). Apply MP1 and repeat this step.
    But as I already mention, I am using WLS 9.2 MP1. Could the root cause of the error be different from what we expected ?

    i think you should first deploy the fuegoj2ee-lib-all.jar.
    download this jar file form albpm webconsole,
    and put it in the lib floder(weblogic domain's lib).
    and then, reboot the weblogic server.
    and then ,deploy this wlj2eedeployer.ear.
    you can try it.

  • WIP Interface errors - Urgent help needed

    I am using the WIP Mass load program to create DJs. The program completed successfully but for some order lines the DJs were not created. I receive the following error messages,
    ORDER_NUMBER LINE NO. ERROR_MESSAGE
    =========================================================================================================================
    2005379022 4 Value for column ORGANIZATION_CODE is being ignored.
    2005379022 4 Value for column WIP_ENTITY_ID is being ignored.
    2005379022 4 Value for column DAILY_PRODUCTION_RATE is being ignored.
    2005379022 4 Value for column LAST_UNIT_START_DATE is being ignored.
    2005379022 4 Value for column FIRST_UNIT_COMPLETION_DATE is being ignored.
    2005379022 5 Value for column ORGANIZATION_CODE is being ignored.
    2005379022 5 Value for column WIP_ENTITY_ID is being ignored.
    2005379022 5 Value for column DAILY_PRODUCTION_RATE is being ignored.
    2005379022 5 Value for column LAST_UNIT_START_DATE is being ignored.
    I went through the WIP API but still couldnt find the root cause of the messages. Records with similar values in the WIP Interface tables have completed successfully.
    Appreciate if you can throw some light on this.

    All these errors are from WIP_JSI_VALIDATOR and WIP_JSI_DEFAULTER. You can search the package using these column and you can find the issue.
    Thanks
    Nagamohan

  • Deployment Error- Urgent Help needed

    Hello All,
    I am facing a error while deployment. Please find the error as follows:
    Oct 11, 2007 3:59:23 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [006]Deployment aborted
    Settings
    SDM host : INLD50047221A
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME1/I038687/LOCALS1/Temp/temp52460JA310_01.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/I038687/LOCALS1/Temp/temp52460JA310_01.ear
    Aborted: development component 'JA310_01'/'local'/'LOKAL'/'0.2007.10.11.15.59.21':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Only Administrators have the right to perform this operation.
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    Quick response will be appreciated.
    Best Regards,
    Shakti Barath

    Make Sure that the Administrator user belongs to the Group
    "Administrators".
    Check here :  User Administration --> Groups and search for Administrators.
    refer this Thread
    Problem while Deploying WebDynpro application-error:java.rmi.RemoteExceptio
    regards
    Rajendra

  • Data uload to ODS ending up with an error. URGENT HELP NEEDED!!!!!!

    Hi
    My Sceniro is Full load from ODS1 to 5 other ODS. Iam uploading the data to other 5 ODS by selecting 1 ODS at a time.
    Problem i am facing is upload is ending up with error mesg. Error Mesg are
    <b>Error 8 when starting the extraction program - R3019
    Error in Source System - RSM340
    Req xxx in ODS2 must have QM ststus green before it is activated - RSM1110</b>
    I have seen the the OSS notes for given error no, but they are not applicable to me. what could be the other possible solution.
    In detail tab of the monitor i see red light at Extraction step and Subseq. processing.
    Its quite urgent bcoz this error is occuring in Production system.
    Plzzzz urgent help needed.
    Thanks
    Rohini
    Message was edited by: Rohini Garg

    rohini,
    go to RSA1->Modeling->Source Systems and right-click on your BW system, and click on 'Replicate Datasources'.
    also, go to the ODS that's causing the problem (via RSA1->InfoProvider and go to your ODS), right click and click on 'Generate Export Datasource'.
    one more thing, make sure that all your record/s in the source ODS is active. if you're not sure manage its contents and click on 'Activate'. if there are any entries in the the next screen that comes up, you need to activate it first, then try everything again.
    let me know what happens. also try to look for error messages in ST22 and SM21 that may be related to this and post whatever possible error you see there here.
    ryan.

  • Error messages help need asap!!!!

    hi this is my code and I need help with what i need to do and how to do it to get rid of the error messages
    CREATE OR REPLACE FUNCTION
    no_of_task_types (x NUMBER)
    RETURN NUMBER IS
    my_val NUMBER;
    BEGIN
    SELECT COUNT(distinct t.task_type_no)
    INTO my_val
    FROM employee e, assignment a, task t
    WHERE e.employee_id = x
    AND e.employee_no = a.employee_no
    AND t.task_id = a.task_id
    RETURN tasktotal;
    END;
    SHOW ERRORS
    these are the error messages:
    Warning: Function created with compilation errors.
    Errors for FUNCTION NO_OF_TASK_TYPES:
    8/1     PL/SQL: SQL Statement ignored
    13/27     PL/SQL: ORA-00933: SQL command not properly ended

    Hi,
    Welcome to the forum!
    Don't say things like "urgent" or "asap" (as in your title, "error messages help need asap!!!!"). It's rude.
    971848 wrote:
    hi this is my code and I need help with what i need to do and how to do it to get rid of the error messages
    CREATE OR REPLACE FUNCTION
    no_of_task_types (x NUMBER)
    RETURN NUMBER IS
    my_val NUMBER;
    BEGIN
    SELECT COUNT(distinct t.task_type_no)
    INTO my_val
    FROM employee e, assignment a, task t
    WHERE e.employee_id = x
    AND e.employee_no = a.employee_no
    AND t.task_id = a.task_id
    RETURN tasktotal;
    END;
    SHOW ERRORS
    these are the error messages:
    Warning: Function created with compilation errors.
    Errors for FUNCTION NO_OF_TASK_TYPES:
    8/1     PL/SQL: SQL Statement ignored
    13/27     PL/SQL: ORA-00933: SQL command not properly endedIt looks like you're missing a semicolon at the end of line 13; that's why the statement beginning at line 8 can't be understood.
    Also, you store a number in my_val, but never use that number, and you have a variable called tasktotal that's never defined. Should my_val and tasktotal be the same variable?
    Perhaps this is what you want:
    CREATE OR REPLACE FUNCTION
           no_of_task_types (x NUMBER)
    RETURN NUMBER IS
        tasktotal   NUMBER;
    BEGIN
        SELECT  COUNT(distinct t.task_type_no)
        INTO    tasktotal
        FROM    employee e, assignment a, task t
        WHERE   e.employee_id = x
        AND     e.employee_no = a.employee_no
        AND     t.task_id        = a.task_id;          -- ; at end is important
        RETURN tasktotal;
    END;
    /This question doesn't have anything to do with SQL*Plus, so maybe the SQL*Plus forum isn't the best place for it. This is strictly a PL/SQL problem; in the future, post questions like this in the PL/SQL. The FAQ page for that forum, {message:id=9360002} , can really help you.

  • Messaging:System Error(-10)HELP NEEDED!NEED BEFORE...

    Messaging: System Error(-10) [Nokia N70] URGENT HELP NEEDED! - NEEDE BEFORE WED 21ST MAY '08 - BUT HELP OTHERWISE APPRECIATED!______________________________
    Hey,
    I need this help before Wednesday 21st May 2008 as I am going abroad and urgently need my phone. I have had my phone for just over a year now and I have never had any problems with it up until now.... Think you can help...?
    This is the scenario. My messages are saved under my nokia N70's MMC memory card and when I get a message there are a number of problems.
    1) My phone does not vibrate or alert me when a message comes in. I have checked my profile settings and they are all up to volume.
    2) When the messages come through they are not displayed on the main window of the phone as "1 New Message Received" but in the top corner with a little envelope icon. I know the icon normally comes up but the "1 New messge received part doesn't come up.
    3)When "1 New Message Reveived" is not displayed on the main window I go into the "INBOX". When I click inbox on "Messaging" the phone displays an error saying: Messaging: System Error(-10) with a red exclamaion mark. The I can not write any messages, view sent, or drafts.
    I have tried to change me message settings by going on "Messaging"> Left Click "Settings" > "Other" > "Memory in use" and selected "Phone Memory". This works but then my I looses all my previous messages.
    4)My phone is also dead slow. I click menu and it takes at least five minutes to load menu.
    IF YOU COULD HELP ME ON ANY OF THESE ISSUES I WOULD BE MAJORLY GREATFUL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Thanks Soo Much,
    Robert__________

    U said in another post u've tried all my solutions = =?
    On that post its for Nokia N95 u kno? Although the problem is similar, but different phone model can lead to quite different solutions.
    Are u sure u tried all my solutions?
    have u tried this?:
    /discussions/board/message?board.id=messaging&message.id=7926#M7926
    Also format ur memory card, do not use content copier! dont install too much softwares, as ur phone model is old and doesnt have much space.
    This is from NOkia, sometimes does work depending on ur situation:
    Memory low
    Q: What can I do if my device memory is low?
    A: You can delete the following items regularly to avoid
    memory getting low:
    • Messages from Inbox, Drafts, and Sent folders in Messaging
    • Retrieved e-mail messages from the device memory
    • Saved browser pages
    • Images and photos in Gallery
    To delete contact information, calendar notes, call timers, call cost timers, game scores, or any other data, go to the respective application to remove the data. If you are deleting multiple items and any of the following notes are shown: Not enough memory to perform operation. Delete some data first. or Memory low. Delete some data., try deleting items one by one (starting from the smallest item).
    use device status http://handheld.softpedia.com/get/Desktop-and-Shell/Windows/Nokia-Device-Status-57673.shtml
    to maybe let me see what u got on ur phone (by saving/exporting report).
    Make sure u have the latest firmware! Updating firmware is like a hard reset but also upgrade.
    Message Edited by goldnebula on 20-May-2008 02:05 PM

  • URGENT HELP NEEDED ... Tomcat Realm and JRE1.4 plug-in problem

    I have tried the Security Realm of Tomcat. Since I do not have
    an LDAP server, I decided to use the Tomcat-users.xml file in
    Tomcat\conf directory.
    I added the following lines of code in the web.xml file.
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Entire Application</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <!-- NOTE: This role is not present in the default users file -->
    <role-name>webviewer</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat Manager Application</realm-name>
    </login-config>
    The <role-name> "webviewer" is added into "Tomcat-Users.xml" as the following:
    <tomcat-users>
    <user name="test" password="password" roles="webviewer" />
    </tomcat-users>
    So, now when we type the url: http://localhost:8080/adbpdbre/default.htm, TOMCAT shows a dialog box asking for UserName: and Password:Now, only when we give the username and password, it shows the page. This is exactly what we want.
    But the problem now is, this default.htm page, has 5 links to 5 applets. The first time that I click on one of these links, the JRE plug of 1.4 shows a dialog again asking for the username and password. Till I dont provide the username and password the system doesnt go ahead and applet doesnt load. I do not want the JRE to ask me for the username/passwords again..How to avoid this ?
    Can you give me some more information on this. Ultimately in the production usage, we will be using LDAP and not Tomcat's memory realm.
    URGENT HELP NEEDED ... I need to get back to my client on this.
    Help would be v. much appreciated.

    In the config file, you 're essentially saying that you want Tomcat to prompt for usr/passw on every request (url-pattern = /*) made by a 'webviewer', and that's exactly what Tomcat is doing.
    Consider using specific url-patterns & roles for resources to be protected. If for now, all you need is to protect the first page, use a more specific url-pattern.
    Just an advice : if you'll be using LDAP in production, do not waste time with Tomcat's Security Realm and the BASIC authentication type, since the two have not much in common. Start reading doc on LDAP, and code a prototype, or even better, a vertical slice of the app (i.e a proof of concept).

  • URGENT HELP NEEDED - iPhone 3Gs no longer detected or charged by MacBook

    My iPhone 3Gs (3.1) has been running fine, until several hours ago today, when I plugged it to my MacBook, the iPhone is no longer detected - it doesn't show up in iTunes, nor it is charged. I tried opening iPhoto, and it wasn't there too. Not with Image Capture too. I tried charging it using the out-of-box wall charger using the same out-of-box USB cable I use for MacBook, and it can be charged without any problem. Then I put it into Recovery mode, and there iTunes can see it. I don't want to restore it before I figure out exactly what went wrong, as I don't want the restore process somehow gets stuck in the middle that the connection is lost again.
    I've tried reinstalled iTunes, including completely removal of Apple Mobile Device Support, as instructed by Apple. But still no luck.
    I've tried switching to another USB port of my MacBook. No luck.
    My iTunes is the latest 9.0.1, and my Mac OSX is 10.6.1. My iPhone is on 3.1, upgraded from 3.0.
    I've read from web that it seems I'm not the only one out there having this problem. But none of them seem having any real working solution.
    Urgent help needed & appreciated. Millions of thanks in advance.
    Gary

    1. I used both cables - theirs & mine ... and on several macs
    2. yes, same cable for wall & mac
    3. as said, i did completely remove & install itunes (incl. apple mobile device support), as instructed on the apple webpage
    anyway, did a restore just now. it seems okay now. but the problem is i have no idea what cause this, and i can't replicate the problem. so i don't know when it will happen again ... maybe a bug with os 3.1 ... others on web said os 3.1 is quite buggy ...

  • Urgent help needed, can I restore N900 Backup file...

    i owned a N900 (now sold out)
    before selling i took backup of contacts from backup restore option in application section
    now i bought a N8 but i m not able to restore my contacts
    1. is there any way to restore them in N8?
    2. if not, can i convert them in TEXT or any readable format
    urgent help needed
    thanks in advance

    The backup procedures built into the phone are only designed for restoring to the same phone (ie: in case or data corruption, software update or repair etc.), they can't usually be used to restore to a phone with a different operating system.
    You should have backed up with Ovi Suite before selling the N900, that would have been able to restore to the N8.

  • Urgent help needed; Database shutdown issues.

    Urgent help needed; Database shutdown issues.
    Hi all,
    I am trying to shutdown my SAP database and am facing the issues below, can someone please suggest how I can go about resolving this issue and restart the database?
    SQL> shutdown immediate
    ORA-24324: service handle not initialized
    ORA-24323: value not allowed
    ORA-01089: immediate shutdown in progress - no operations are permitted
    SQL> shutdown abort
    ORA-01031: insufficient privileges
    Thanks and regards,
    Iqbal

    Hi,
    check SAP Note 700548 - FAQ: Oracle authorizations
    also check Note 834917 - Oracle Database 10g: New database role SAPCONN
    regards,
    kaushal

  • Urgent help needed - new to Macs, accidently cut and paste over top of photo folder and now no sign of folder or file, no auto back-up in place, how can I restore photos pls

    Urgent help needed - new to Macs, accidently cut and paste over top of photo folder and now no sign of folder or file, no auto back-up in place, how can I restore photos pls

    Thanks for prompt reply, yes we have tried that but have now closed down the browser we where the photos were.
    We haven't sent up time machine, do you know whether there is any roll-back function on a Mac?
    Thanks

Maybe you are looking for

  • Problem with getting a D2K report in XML format

    Hi all, Could any body give a solution for this problem. I have a matrix report like following: Q_Statement_Of_Net_Assets ----> main query | G_Cross ----> Cross product | CS_VALUE | CS_NET_ASSET | CF_COSTI | | --------------------------------- | | |

  • Acrobat 9 Pro, making edge of book scanning pages darker

    Thank you for reading my post,    I am using Acrobat 9 Pro with Windows Vista to scan a hardcover book. Since it is hardcover, it is hard to press enough to get a good scan on the end of the pages, so I get light letters that I would like to get dark

  • Proforma invoice (F5) creates accounting document

    We have an issue with Proforma invoices creating accounting documents. I did some research here and it seems that it is an unexpected behavior for a proforma invoice, but I couldn't find any information about what exactly is preventing them from crea

  • IPhoto 8 wont import or recognize Library

    Can you help ? My iPhoto Library is stored on an external 500GB iomega and has been spot on until my nephew 'did something' while I was out. Iphoto now has no photos at all and I cant import the iPhoto Library even when open>alt>select library. I hav

  • Where can I find a beginners' step-by-step to help me get started?

    I've tried reading through the entire manual... it won't help me. Ergh.. I'm more of a visual learner, and I'd like just a small project to do to make me more familiar with final cut express 2.