The system is not canceling an invoice via VF11

I am getting an error, “Cancellation document is not the same as the original billing doc.”
I checked in invoice cancellation error log with split analysis where it shows error reason as different account assignment group (AAG).
Initially invoice was created with AAG as ‘AA’ but subsequently it changed to ‘BB’ and invoice released to accounting but now during cancellation system is taking AAG as ‘AA’ and finding difference in original and current AAG hence giving error.
Request you to please let me know how to cancel this invoice.
Thanks,

Hi the problem is the Account key is the important link to the GL and the document you are posting
you have changed the AAG in the billing and now you want to post the  cancel invoice
the AAG is not there in the Pricing procedure
so what you do is create a pricing procedure  copy of the pricing procedure ( invoice) assign the Account key which you have deleted and map the GL
let me know if you want more details

Similar Messages

  • The system is not reachable, the login data could not be considered

    Hello
    I'm trying to connect via Hana Studio to a Hana One instance I have configured in AWS, following the guides & videos in the Hana Academy.
    When adding the system in Hana studio, I get an error message after inputting the SYSTEM password:
    The system is not reachable, the login data could not be considered
    I've seen another post in the forum where the user solved the issue by resetting the SYSTEM password to a password without special characters, but mine is already "special character" free.
    Are there others who have had difficulties when adding a new system?
    Regards
    Yann

    Hi Swapan,
    Thank you for your attention and message.
    I downloaded the SAP HANA Studio from "Get your own SAP HANA, developer edition on Amazon Web Services (http://scn.sap.com/docs/DOC-28294)", specifically at SAP HANA Studio, developer edition and SAP HANA Client, developer edition, for Windows XP 32-bit. Is this HANA One? How to know the version of HANA server? How to make my Internet or firewall allow me to go out to the JDBC port? I am just learning to deal with these computer-science issues.
    Regards,
    Beiwei 
    Date: Wed, 4 Sep 2013 20:52:41 -0700
    From: [email protected]
    To: [email protected]
    Subject: Re: - The system is not reachable, the login data could not be considered
                                                                                    SAP HANA
        The system is not reachable, the login data could not be considered
        created by Swapan Saha in SAP HANA One Platform on AWS - View the full discussion
    Hi Beiwei,
    I suppose you are using HANA One (which you can only launch today from AWS Marketplace and HANA costs 99 cents/hr). If it is HANA One, which version of HANA One you are using? Please make sure you are using the same version of HANA Studio with HANA Server?  Instance number in HANA One is 00.
    If you HANA One, by default, it will open all the necessary ports. Please make sure you are Internet or your firewall allow you to go out to the JDBC port. If not, you cannot connect your studio behind your firewall with HANA server in the cloud.
    Thanks,
    Swapan
         Reply to this message by replying to this email -or- go to the message on SAP HANA
         Start a new discussion in SAP HANA One Platform on AWS by email or at SAP HANA

  • I got this message when saving photo from Iphone4s to my laptop's folder. "The device attached to the system is not functioning"  What can I do?

    I cannot save photo to my deskstop. When I copy to my folder, it indicated "The device attached to the system is not functioning".  I don't update my IOS to the latest version in case my photo from my iphone will be missing.  Please help. Thanks.

    The Only thing I could do to save my pictures on my computer was to send them via Facebook chat to myself, send them one by one then on your computer open then and dragging them is way faster than right-click Save As. I just did that and I do not want to reset my phone so I guess I will continue doing this as I get more pictures or until I feel like resetting my phone. I believe this issue happens when you Connect and while transfering one or more file from one end to another, and you suddenly disconnect the iPhone or any apple divece, the file that wasnt completely transfered gets corrupted and I guess the whole /Picture/Video folder or perhaps the whole device gets corrupted as well. I am sure that this is a cause to this issue but I do not know if there are other causes or if the same one happened to you.
    How to prevent this from happening again?
    Always go to iTunes and click on "Eject" under your device tab before disconnecting your device from your computer. Even if you are not transfering any files at all.

  • When accessing shared folder - 'You might not have permission to use this network resource" .. A device attached to the system is not functioning

    On a Windows 2008 R2 server that had been working fine, all of a sudden some shared folders became inaccessible.  Clicking on them returned the following: "<Folder> is not accessible.  You might not have permission to use this network
    resource.  A device attached to the system is not functioning."
    If I create another share with a different name for that same folder, it works fine.  If I delete the original share then recreate it with the same name, I get the same error.  However, if I right click on the problematic share and select 'map
    network drive' that works.  So this would not appear to be a permission issue.
    I discovered this problem because the path for mapping the home folder as a property of their AD account stopped working.
    I have tried most of the common things found on the internet.  I've tried accessing via IP, same issue.  While I only have a couple 2003 servers, those can access this resource.
    At this point, I'm pretty much out of ideas.  Any help would be appreciated.  I also have some reports of potential issues with some printer mappings too which I will have to investigate in the morning.
    If anyone has a solution to this I would be extremely grateful.  Thank you.

    Hi,
    Can you access the shard folder locally? Is a specific server cannot access the shared folder? Please try to Boot your server in Clean Mode to check if some third-party software cause the issue.
    How to perform a clean boot in Windows
    http://support.microsoft.com/kb/929135
    Best Regards,
    Mandy
    If you have any feedback on our support, please click
    here .
    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.

  • Communication problems: A device attached to the system is not functioning.

    Hi all,
    I'm developing an applet and using the OMNIKEY 5321 CL reader for communication and testing. One of the requirements for our card is to read large binary data.
    For this purpose i used extented lenght APDU to read the data from card.
    When I tested it via JCOP simulation I was able to read up to 32767 bytes as described in specification. But problem occurs when I test it with reader, in this case I'm able to read max 298B in APDU response. When I send greater byte count than 298B i have got following error in JCShell plugin:
    jcshell: requestSessionKey.jcsh[1]: Error code: -6 (Card terminal error)
    jcshell: requestSessionKey.jcsh[1]: Communication problems: A device attached to the system is not functioning.
    Regarding the extend lengh APDU support it should by OK from the OMNIKEY. I'm using newest driver 1.2.9.2 for Win 7.
    Here my configuration:
    JCOP:JCOP 2.4.2r1
    JAVA CARD: jc301
    Global Platform: gp22
    Can somebody help me? Any ideas?

    If you want to use PC/SC directly, I have a simple Go program that reads an APDU file (just hex encoded APDU strings) and sends them to a smart card. You can give that a try if you like.
    The code is at: https://bitbucket.org/safarmer/go-apdus
    There is a Goclipse project as well as the source. You will need to install Go and run "go get github.com/ebfe/go.pcsclite/scard" to install the required PC/SC wrapper. Once you have done this you can run the program with -file <apth to text file>
    An example text file:
    # A comment that is ignored
    00a4040000
    80ca9f7f00- Shane

  • "A device attached to the system is not functioning"

    Hi!
    I'm hoping that all the smart people here can help with my problem. I help support/develop several custom windows application. One of these applications is written in Delphi and there is currently a problem with a feature a single computer owned by a client.The client's computer does have the latest version of adobe installed.
    * The user is able to select a document from a data grid, and click a button to view that document (in this case a pdf).
    * The document is saved from a database to the user's disk
    * Using a shell command, the application asks windows to open that file.
    Normally this works quite well, until recently. If this client tries to view a pdf file in this manor windows returns a system error, error 31, and the message "A device attached to the system is not functioning" is displayed. If I naviage to the location where the file was saved to an attemp to open it via double clicking, adobe reader opens the document right up. The application historically has had no problems with pdf's nor any other doucment type. If I change the file assoication from adobe to note pad, the application does open the file with note pad, but it is not readable. If I change it back to adobe reader, the problem persists. I've tried uninstalling adobe, reinstalling, and using a previous version of adobe. Any suggestions would be appreciated.
    FYI, before someone tell's me I should be talking to microsoft, I am also inquiring on the windows side of this through msdn. Since I am not 100% sure if this is a windows or adobe reader issue I would appreciate suggestions on both sides.
    Last but not least, incase it is of any help, this is the delphi command used to ask windows to open the file:
    ShellExecute(GetDesktopWindow, 'open', PChar(TempFile), '', '', SW_SHOWNORMAL);
    Any and all help is appreciated.
    Thanks!
    Louis

    Is the computer in question connected to the Internet, and if so, is the Internet connection working correctly?
    It is possible that Adobe Reader tries to check for updates when it is launched, then finds a faulty network connection.
    Check the Device Manager for non-functioning network devices.
    Also try http://fixitcenter.support.microsoft.com/ to find other potential problems on that system.

  • The system could not find any entries that are relevant to costing.

    plz give the solution ,its urgent
    Message no. CK060
    Diagnosis
    The system could not find any entries that are relevant to costing.
    System Response
    The system did not cost the object.
    Procedure
    Check whether the following objects should be flagged as relevant to costing:
    Items in the BOM
    Display BOM
    Operations in the routing
    Control key in the routing
    1. Look at the message log.
    2. Check whether a quantity was specified in the confirmation.

    hi,
    iam facing the problem while creating the
    stnadard cost estimate ck11n
    the system prompts the following message
    confirmation
    Logistics - General (LO)
    Information from the vendor to the recipient about the status of the purchase order.
    The term confirmation covers different types of information from the vendor to the customer, such as order, loading or transportation confirmation and the shipping notification.
    If materials planning takes place without a confirmation, planning can only be based on the delivery dates and quantities in the purchase order. In contrast, confirmations make it possible for the customer to plan the materials more precisely because between the purchase order and planned delivery date, more reliable information has become available.
    Logistics - General (LO)
    Communication sent by a vendor to a customer regarding the status of a purchase order.
    The term "confirmation" (short for "vendor confirmation") is an umbrella term for various types of information provided by a vendor to a customer, including order acknowledgments, loading or transport confirmations and shipping notifications.
    If the customer's materials planning and inventory control system does not work with confirmations, it can only refer to the delivery dates and quantities set out in the purchase order. The use of confirmations, on the other hand, makes the materials planning and inventory control process more precise, since between the PO date and the planned delivery date the customer receives increasingly reliable information about the pending arrival of ordered goods.
    Treasury Management (TR-TM)
    After concluding a financial transaction, a confirmation of the related contract data is sent to the relevant business partner. Confirmations can be printed or sent electronically directly from the R/3 System. Confirmation forms are defined via the correspondence type.
    Logistics - General (LO)
    Part of order monitoring, this documents the processing status of operations or sub-operations. In the SAP System, a distinction is made between partial and final confirmations.
    A final confirmation is used to determine
    at which work center the operation should be carried out
    who has carried out the operation
    the quantities of yield and scrap quantities that have been produced
    the size of the standard values required for the actual operation
    Materials Management (MM)
    Communication from a vendor to a customer providing information on the status of a purchase order.
    As used in this sense, the term "confirmation" can cover a number of different documents, such as order acknowledgment, loading confirmation, or shipping notification. Also termed "order acceptance/fulfillment confirmation".
    If the materials planning and control system operates without such confirmations, it can only work on the basis of the delivery dates and quantities in the purchase order. Confirmations, on the other hand, enable the customer to plan more exactly. In the period between the issue of the PO and the planned delivery date he is provided with more up-to-date and increasingly reliable information on the expected delivery.
    Project System (PS)
    A confirmation is a part of network control. It documents the state of processing for network activities and activity elements. There are two types of confirmations in the R/3 System: partial and final confirmations.
    A confirmation is used to record:
    the work center where the activity was carried out
    the person who carried out the activity
    the yield and scrap produced in an activity
    the actual values for the standard times
    Intellectual Property Management (CRM-IM-IPM)
    A report made by the licensee and defined in the rights sale contract on sales volumes or other quantities (such as audience figures for a film) during a period.
    Receiving (ECO-BBP-REC)
    An electronic document that combines the functions of goods receipts and service entry sheets. By creating a confirmation:
    Vendors can confirm that they have fulfilled their orders
    Employees can confirm the goods and services they ordered via their shopping baskets
    Central goods recipients can confirm the goods and services ordered by employees for whom they are responsibleconfirmation
    Logistics - General (LO)
    Information from the vendor to the recipient about the status of the purchase order.
    The term confirmation covers different types of information from the vendor to the customer, such as order, loading or transportation confirmation and the shipping notification.
    If materials planning takes place without a confirmation, planning can only be based on the delivery dates and quantities in the purchase order. In contrast, confirmations make it possible for the customer to plan the materials more precisely because between the purchase order and planned delivery date, more reliable information has become available.
    Logistics - General (LO)
    Communication sent by a vendor to a customer regarding the status of a purchase order.
    The term "confirmation" (short for "vendor confirmation") is an umbrella term for various types of information provided by a vendor to a customer, including order acknowledgments, loading or transport confirmations and shipping notifications.
    If the customer's materials planning and inventory control system does not work with confirmations, it can only refer to the delivery dates and quantities set out in the purchase order. The use of confirmations, on the other hand, makes the materials planning and inventory control process more precise, since between the PO date and the planned delivery date the customer receives increasingly reliable information about the pending arrival of ordered goods.
    Treasury Management (TR-TM)
    After concluding a financial transaction, a confirmation of the related contract data is sent to the relevant business partner. Confirmations can be printed or sent electronically directly from the R/3 System. Confirmation forms are defined via the correspondence type.
    Logistics - General (LO)
    Part of order monitoring, this documents the processing status of operations or sub-operations. In the SAP System, a distinction is made between partial and final confirmations.
    A final confirmation is used to determine
    at which work center the operation should be carried out
    who has carried out the operation
    the quantities of yield and scrap quantities that have been produced
    the size of the standard values required for the actual operation
    Materials Management (MM)
    Communication from a vendor to a customer providing information on the status of a purchase order.
    As used in this sense, the term "confirmation" can cover a number of different documents, such as order acknowledgment, loading confirmation, or shipping notification. Also termed "order acceptance/fulfillment confirmation".
    If the materials planning and control system operates without such confirmations, it can only work on the basis of the delivery dates and quantities in the purchase order. Confirmations, on the other hand, enable the customer to plan more exactly. In the period between the issue of the PO and the planned delivery date he is provided with more up-to-date and increasingly reliable information on the expected delivery.
    Project System (PS)
    A confirmation is a part of network control. It documents the state of processing for network activities and activity elements. There are two types of confirmations in the R/3 System: partial and final confirmations.
    A confirmation is used to record:
    the work center where the activity was carried out
    the person who carried out the activity
    the yield and scrap produced in an activity
    the actual values for the standard times
    Intellectual Property Management (CRM-IM-IPM)
    A report made by the licensee and defined in the rights sale contract on sales volumes or other quantities (such as audience figures for a film) during a period.
    Receiving (ECO-BBP-REC)
    An electronic document that combines the functions of goods receipts and service entry sheets. By creating a confirmation:
    Vendors can confirm that they have fulfilled their orders
    Employees can confirm the goods and services they ordered via their shopping baskets
    Central goods recipients can confirm the goods and services ordered by employees for whom they are responsible

  • While creating import GR ,system is not saving commercial invoice number

    Hi,
    While creating import GR ,system is not saving commercial invoice number in database table.
    Is there any enhancement or sap note to solve this isssue?
    Regards,
    Madhu.

    Hi,
    please follow the process as told u will not have any errors.
    1. create import PO with all the duties. But here there are some duties which are supposed to be paid to the customs. so we select the condition type and click on conditiondetail icon and here we enter the Customs vendor number and save the PO.
    2. if release of PO is there release
    3. then invoice is made with customs vendor by selecting planned delivery costs in the options on the right of the screen... The number generated here will be ur Commercial invoice number which you enter while doing J1IEX_C and GR
    4.Then capture excise invoice J1IEX_C
    5. Then do a GR with PO
    6. Then post excise invoice J1IEX_P
    7. Then again do a envoice with the same PO number but select Goods/Service Items on the right.
    This is the procedure to be followed for import cycle in CIN
    Thanks & regards,
    Kiran
    Edited by: Kiran. V on Apr 28, 2008 9:30 AM

  • Zen Stone 1GB (The system could not find the path specifi

    When I try to put audio files on my Zen Stone via the Creative Media Lite, I get the following message: The system could not find the path specified. My player is connected to my computer, but I can't see it between the items on 'My computer'.
    Does someone knows how to fix this problem?

    I am having the same problem. Have you resolved the issue? If so, please advise how I can correct my Bonjour software.
    Thanks!

  • The system could not locate the EDI partner agreements

    Hello all,
    I am trying to setup the DESADV message in SAP, but I am having some problems.
    1. I've created the LAVA output relationship via VV21 with that customer
    2. I've created the relationship in WE20
    2.1 Under the KU partner type, I've created the outbound parameters: SP -DESADV and SP -SHPMNT
    2.2 In MESSAGE CONTROL option, I've added Application V2, Message type LAVA and Process code SD05 or SD11 depending on the message
    But, when I try to add the LAVA message to the outbound's delivery header, I get an error message that says:
    "The system could not locate the EDI partner agreements (outbound) for
    partner 2.
    You cannot use transmission medium 'EDI' with this partner."
    Any help with this issue? thank you

    Hi,
    Just have few checks at your end as below:
    1. go to WE20
    2. select you customer
    3. select outbound parameters
    4. click on details {blue lens below}
    5. in outbound options tab -- have you maintained the receiving port ? also in basic type - have you maintained the mesage type?
    6. in message control tab - have you maintained appropriate entries ?
    7. finally very much important check > hope you have not activated the TEST check box in the initial partner profile>outbound parameters>partner functions field...
    Hrishi

  • Error message saying a device attached to the system is not functioning

    i m getting an error message saying a device attached to the system is not functioning whenever i m trying to connect my pc to my smartphone. i tried all your options like uninstalling failed updates from my update history, checking if their is any flag
    in device manager option but nothing helped me.. plz solve my problem..

    Hi,
    Could you please have a share with your phone's information?
    Based on what I know, different phones may have different softwares developed by the manufacturer to make the connection through Windows operating system, we may check with the phone's manufacturer side and see if there could be some helpful information
    offered.
    Besides, please take a check with
    Event Viewer and see if any special errors logged there.
    Best regards
    Michael Shao
    TechNet Community Support

  • The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

  • I forgot My iCloud password, and i can not reset it as the system is not accepting the answer to the security questions and also the mail to my apple ID mail box is blocked, how can i reset my password for my apple ID.

    I forgot My iCloud password, and i can not reset it as the system is not accepting the answer to the security questions and also the mail to my apple ID mail box is blocked, how can i reset my password for my apple ID.

    Hello nmssns,
    Thank you for contacting Apple Support Communities.
    You can start with this article to reset your iCloud password. Depending on your exact circumstances, blocked email, forgot security questions, etc., there are links provided to guide you through those issues.
    About Apple ID security questions
    http://support.apple.com/kb/HT5665
    Regards,
    Jeff D.

  • Can not drag files off iphone onto windows 7 Laptop (Error: A device attached to the system is not functioning!) Any ideas on how to resolve this, Much appreciated

    Connect phone to laptop, AutoPlay Box appears, click open Device to view files, internal storage, DCIM, Drag all Pictures/Videos into folder on desktop. Message pops up within a few seconds, Saying  'A Device Attached To The System Is Not Functioning.'
    Can any be of assistance?
    Many Thanks.
    Callum.

    Is the computer in question connected to the Internet, and if so, is the Internet connection working correctly?
    It is possible that Adobe Reader tries to check for updates when it is launched, then finds a faulty network connection.
    Check the Device Manager for non-functioning network devices.
    Also try http://fixitcenter.support.microsoft.com/ to find other potential problems on that system.

  • Error Message: "Skype can not start because the system is not available"

    Try to reset all Skype settings. Quit Skype or use Windows Task Manager to kill any Skype.exe process. Go to Windows Start and in the Search/Run box type %appdata% and then press Enter or click the OK button. The Windows File Explorer will pop up. There locate a folder named “Skype”. Rename this folder to something different, e.g. Skype_old. Next go to Windows Start and in the Search/Run box type %temp%\skype and then press Enter or click the OK button. Delete the DbTemp folder. Restart Skype. N.B. If needed, you will still be able to re-establish your call and chat history. All data is still saved in the Skype_old folder. 

    Okay!
    I'm newbie here, but it doesn't matter. I dont want to do here anything else, just write off my opinion about the Microsoft's "new" Skype, and I hope they will read...
    This is a cropped image - of course hungarian, because I'm hungarian, but I think many of us could see this as well. How this is possible? "The Skype can not start because the system is not available" *** What kind of system? The Skype was on a P2P system, where is impossible that the system is not available! This is why the skype was much better than the Microsoft's messenger. Then they bought it, and make it wrong...
    I found a solution for this problem, this can happen if my client is not updated. But IT IS!
    How does it works? Can we use the **bleep** Skype how we would like to use? Or this time we need to find an other application (like Viber), and using that while they not buying that as well, just because that is better?
    Edited to conform with the Community Guidelines
    Subject/title edited to better reflect post content.

Maybe you are looking for

  • WaaS Central Manager - device serial number report available?

    Hi folks, just wondering if anyone knows a quick/easy way to talk to the WAAS database to pull serial number information for all of my WAE's installed.  i have 35 devices scattered around 7 states and I'm hoping for an easy way to collect serial numb

  • CS5 Text still gets cut off when using filters

    In Flash CS4, I encountered a strange bug where text would get cut off if there were any filters applied to the text box. I was so excited for CS5, because I had heard that bug was fixed. Now I see that it is not. I'm using Classic Text in an Actions

  • AccessClassInPackage.sun.io exception

    Hi All I'm trying to get my applet to connect to an interbase database , but I get this runtime security exception when run in a browser ( its connects fine using borlands appletviewer equivelent ) , but I don't have know what it means , can anyone t

  • Instale Mavericks y el mail se cierra marcandome una falla

    Hola, instale Mavericks ayer y cuando trato de usar el mail se cierra y me tira errores todo el tiempo, no lo puedo usar, tengo una macbook AIR de 11 del 2012 Me pueden ayudar

  • MV50AFZ1 inbound delivery

    hi all, I am using the user exit MV50AFZ1 for transaction VL31N, but in some cases internal tables ekko & ekpo are empty. Some body have any idea about it. Is it depend of the purchase order ?? Thanks in advance. regards marisol