E-receipts could not be assigned to a trip

On ECC 6.0 sp 4, In Travel Expense Manager, I was able to upload a PDF document to the Content Server. But when I selected the receipt and assigned it to the trip, I always got "Document type missing for e-receipt '****.pdf'; please contact administrator.
below is the message:
Document type missing for e-receipt '****.pdf'; please contact administrator
Message no. /OTTM/TM416
Diagnosis
You are trying to assign a document to this trip but no document type is customized for this mime type. The administrator has to customize the document type before you can complete the assignment.
Procedure
Please contact your administrator to check the document type customizing.
Where do I need to change the document type? This has taken me several days.
Thanks in advance!

Hi Gary
This sounds like a probable BC-SRV-ARL problem but doing a search for the error, I can find no other reported case! Is it a mobile Travel application or standalone Travel?  You maybe better off posting this in the Basis area.
What I can say to you though is that most often with this generic "document type missing error"  that it can happen if the customizing is not correct in say table TOAOM (KBA 1836715 gives some pointers on this)
Sorry not to be able to add very much value for this - maybe the KBA helps though!
cheers
Sally

Similar Messages

  • JMS Send Transaction Failing, due to resources could not be assigned

    I am trying to get a transaction of a JMS send to work where the origination of the send occurs in domain A and the message queue is hosted in domain B. I have been able to get this to work; however, this issue has shown up in recent tests. I haven't changed anything other than the version of the Oracle database client that is being used. I don't see any relationship between that and the persistent store.
    Both domains are hosted on the same computer and both domains are simple development domains. Trust is established between the domains using 'global trust'.
    I'm running Weblogic Server 10.3.4..
    I'm not sure how to get around this issue. I can't find any documentation...
    My suspicion is that there needs to be some special configuration for the transaction, since I'm using the default persistence store. The warnings seem to indicate the problem. The AdminServer is hosted on domain A and the AuditAdminServer on domain B...
    Any assistance will be greatly appreciated!
    Thanks in advance...
    Here is the stacktrace:
    <Apr 11, 2013 11:17:05 AM MDT> <Warning> <JTA> <BEA-110405> <Resource WLStore_audit_domain__WLS_AuditAdminServer was not assigned to any of these servers: AdminServer AuditAdminServer >
    <Apr 11, 2013 11:17:25 AM MDT> <Warning> <JTA> <BEA-110405> <Resource WLStore_audit_domain__WLS_AuditAdminServer was not assigned to any of these servers: AdminServer AuditAdminServer >
    <Apr 11, 2013 11:19:47 AM MDT> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Name=[EJB gov.va.med.datasharing.core.ServiceBusImpl.processInbound(java.lang.String,java.lang.Object)],Xid=BEA1-003FA101855115C0DB45(13340960),Status=Rolling Back. [Reason=javax.transaction.SystemException: Aborting prepare because the following resources could not be assigned: WLStore_audit_domain__WLS_AuditAdminServer],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=183,seconds left=22,XAServerResourceInfo[DefaultXADataSource_vhie_domain]=(ServerResourceInfo[DefaultXADataSource_vhie_domain]=(state=rolledback,assigned=AdminServer),xar=DefaultXADataSource,re-Registered = false),XAServerResourceInfo[WLStore_audit_domain__WLS_AuditAdminServer]=(ServerResourceInfo[WLStore_audit_domain__WLS_AuditAdminServer]=(state=new,assigned=none),xar=null,re-Registered = false),XAServerResourceInfo[WLStore_vhie_domain_VhieFileStore]=(ServerResourceInfo[WLStore_vhie_domain_VhieFileStore]=(state=rolledback,assigned=AdminServer),xar=WLStore_vhie_domain_VhieFileStore1316539,re-Registered = false),SCInfo[vhie_domain+AdminServer]=(state=rolledback),SCInfo[audit_domain+AuditAdminServer]=(state=rolling-back),properties=({weblogic.transaction.name=[EJB gov.va.med.datasharing.core.ServiceBusImpl.processInbound(java.lang.String,java.lang.Object)]}),local properties=({weblogic.jdbc.jta.DefaultXADataSource=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+192.168.1.120:7001+vhie_domain+t3+, XAResources={WLStore_vhie_domain_VhieFileStore, SDSDataSource_vhie_domain, DefaultXADataSource_vhie_domain, eis/jms/WLSConnectionFactoryJNDIXA, WSATGatewayRM_AdminServer_vhie_domain},NonXAResources={})],CoordinatorURL=AdminServer+192.168.1.120:7001+vhie_domain+t3+): weblogic.transaction.RollbackException: Aborting prepare because the following resources could not be assigned: WLStore_audit_domain__WLS_AuditAdminServer
         at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1881)
         at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:345)
         at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:239)
         at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:625)
         at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:49)
         at weblogic.ejb.container.internal.BaseRemoteObject.__WL_postInvokeTxRetry(BaseRemoteObject.java:444)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:53)
         at gov.va.med.datasharing.core.ServiceBus_r6xnti_ServiceBusImpl.processInbound(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
         at $Proxy89.processInbound(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
         at $Proxy91.processInbound(Unknown Source)
         at gov.va.med.datasharing.web.ServiceBusDelegate.processInbound(ServiceBusDelegate.java:43)
         at gov.va.med.datasharing.web.adc.PatientServiceImpl.changeADCStatus(PatientServiceImpl.java:58)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.expression.spel.support.ReflectiveMethodExecutor.execute(ReflectiveMethodExecutor.java:69)
         at org.springframework.expression.spel.ast.MethodReference$MethodValueRef.getValue(MethodReference.java:97)
         at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:81)
         at org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:102)
         at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:98)
         at org.springframework.binding.expression.spel.SpringELExpression.getValue(SpringELExpression.java:84)
         at org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:75)
         at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
         at org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)
         at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
         at org.springframework.webflow.engine.support.ActionTransitionCriteria.test(ActionTransitionCriteria.java:82)
         at org.springframework.webflow.engine.support.TransitionCriteriaChain.test(TransitionCriteriaChain.java:71)
         at org.springframework.webflow.engine.Transition.canExecute(Transition.java:195)
         at org.springframework.webflow.engine.Transition.execute(Transition.java:211)
         at org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)
         at org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
         at org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
         at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
         at org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)
         at org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
         at org.springframework.webflow.engine.ViewState.handleEvent(ViewState.java:232)
         at org.springframework.webflow.engine.ViewState.resume(ViewState.java:196)
         at org.springframework.webflow.engine.Flow.resume(Flow.java:545)
         at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:258)
         at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:169)
         at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
         at org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:174)
         at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)
         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:822)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180)
         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: javax.transaction.SystemException: Aborting prepare because the following resources could not be assigned: WLStore_audit_domain__WLS_AuditAdminServer
         at weblogic.transaction.internal.TransactionImpl.abort(TransactionImpl.java:1153)
         at weblogic.transaction.internal.ServerTransactionImpl.globalPrepare(ServerTransactionImpl.java:2200)
         at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:279)
         ... 77 more
    .>

    It turns out that those packages are, indeed, in extra.
    I didn't think to look there, since I assumed that everything needed by base would be in [core].
    I assumed wrong.

  • I close the textedit programme , open Pages, click on the 09 pages file to be opened and the message "The document "7-09 receipts" could not be opened. TextEdit cannot open files in the "Pages document"

    I close the textedit programme , open Pages, click on the 09 pages file to be opened and the message "The document “7-09 receipts” could not be opened. TextEdit cannot open files in the “Pages document”
    What's this??? How do I open the pages doc???   Kalavati

    You have obviously not done what you think you have done.
    You have tried to open a .pages document in TextEdit which can't read them.
    If you are confused which program you are in look to the top left of the menu.
    You can either drag the .pages file onto the Pages icon on the Dock, open it from within Pages' Open dialog, double click on it or right mouse click > open with.
    Peter

  • Following resource could not be assigned: WLStore_domainName_WseeJaxwsFileStore

    Hi,
    we are using WL 10.3 for Oracle Backoffice/centraloffice Deployment. We are trying to push param from CO to BO and from BO to Register using WL queues/topics.We are getting following error in BO log when param is pushed from CO to BO:
    Aborting prepare because the following resource could not be assigned: WLStore_domainName_EseeJaxwsFileStore.  
    Also this issue is not coming in another combination of CO-BO-register although both combinations have exactly same configurations.
    thanks
    Kumar

    Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.
    Install add-ons that plays any sound in your browser...

  • RFC destinations for system monitoring could not be assigned

    Hi,
    I am having 2 system landscape DEV (DEV/QA), PRD. I want to monitor both system from Solution manager and created both system, db, server & logical component in SMSY.
    Problems:
    1. System not allowing to assign RFC for (PRD) system monitoring where as it is working for DEV system.
    2. When running System monitoring setup only PRD is showing there, both server/system should be shown ?
    3. When i am tring to assign system in RZ21 manully then also system giving error in case of PRD server. where as DEV system is created in RZ21 -->> Technical Infra. --->>> Display topology (Error when calling the underlying C function (function 'SALS_MS_GET_LOCAL_MS_INFO')
    Message no. RA336)
    Please help me to solve this issue.
    Thanks & Regards,
    Tejinder

    Hello Arwel,
    if the solution manager should monitor itself via EWA, you have to set "mySAP.com Support Workplace system" to "NONE". To get there, start transaction SDCC in you solution manager system -> Maintenance -> remote enviroment -> default target system.
    Hope that will help you.
    regards,
    Marco

  • A unique company code has not been assigned to company number 1000

    Dear Friends,
    When I do Inter-Company Transaction thro Transaction Code FB60 it is giving me Error.
    For Example: if I have 2 Company Codes - 8001 & 8002
    I want to Post One Vendor Invoice
    Ex:
    Vendor - 301 ABC Ltd., 5000 Credit
    400020 - Expenses 2000 Debit - Company Code - NGLC
    (Then Debit Expenses G/L Account 460000 for Company Code NGLC1)
    400020 - Expenses 3000 Debit - Company Code - 1000
    (Then Debit Expenses G/L Account 460100 for Company Code 1000)
    When I am going to POST it is giving me an Error please sees below.
    Error Message
    A unique company code has not been assigned to company number 1000
    Message no. GLT0001
    Diagnosis
    Document breakdown is active in your system. In certain cases, a company code is derived from the company ID number, and this must lead to the assignment of a unique company code.
    A unique company code could not be assigned to company number 1000.
    System Response
    You cannot carry out the required posting.
    Procedure
    Assign one company code to company number 1000.
    Please tell me How to solve this issue.
    Thanks in Advance,
    Ranga

    Hi Ranga
    Can you please check OBY6 settings (Additional details) for the co. codes, as it seems either multiple co. codes have been assinged to company number 1000 or none of the relevant co. codes have been assigned with company ID.
    Regards

  • Error while MIRO posting: Unique co code has not been assigned to co number

    Hi all
    I am getting the following error while posting MIRO-
    "A unique co code has not been assigned to co no". I think this might have to do something with CO no range. Is it so. Does any1 have any idea what this could be because of?
    Thxs in advance
    Hrishi

    Hi Vishnu
    Thxs for ur immediate reply. But cross co conttrolling is not active in my case. The error diagnosis reads as follows-
    Doc breakdown is active in ur system. In certain cases, a co code is derieved frm the Co ID no and this must lead to the assignment of a unique co code.
    A unique co code could not be assigned to Co no.
    Message No GLT0001

  • Unique company code has not been assigned to company number

    Dear Experts,
    When I am posting the customer advance amount in FBCJ I am getting the below mentioned error.
    Unique company code has not been assigned to company number
    Message no. GLT0001
    Diagnosis
    Document breakdown is active in your system. In certain cases, a company code is derived from the company ID number, and this must lead to the assignment of a unique company code.
    A unique company code could not be assigned to company number .
    System Response
    You cannot carry out the required posting.
    Procedure
    Assign one company code to company number .
    Did I miss any config settings.
    Thanks in advance,
    Regards
    Aswin

    Hi,
    We faced the same issue and we managed to solve it thanks to SAP Support assistance. The system at the time of posting is looking for a value in the Field "Trading Partner" in the FBCJ Transaction code. That field is required because the item is like a Company Code clearing therefore if the field is not filled it cannot determine the Company code during posting.
    To solve this you have two approaches:
    To treat each Cash journal separately you need to Fill the Trading Partner field individually in the FBCJ with the respective value. Select the same Trading Partner as your original company code (even if you select other company code you cannot post Inter company through FBCJ).
    Go to FS01/FS02 of the particular account you face this issue and define a Trading Partner in the Type/Description Tab under Consolidation data in Chart of accounts. With this way the Trading Partner will apply for all postings concerning that particular GL Account and there will be no need for the first approach described above.
    I hope this helps.
    Regards,
    Athos Kyriakides

  • 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.

  • ASSIGN  TO betrag could not be performed (system error)

    Hi Gurus,
    Can anybody let me know when we will get the above said Subject error.
    I had encountered it in MIGO GR transaction.
    Iam pasting the total text of the error below
    ASSIGN  TO <betrag> could not be performed (system error)
        Message no. M7103
    Diagnosis
        A system error has occurred during internal processing by the program.
    Procedure
        Contact your system administrator.
    Regards
    Mohan

    Hi ,
    Sit with Abaper and process MIGO in foreground it seems something related to program which runs in background during material document generation.
    Thanks
    Suresh

  • One or more of the specified resources could not be re-assigned. This can happen if the proposed resource to be assigned has already an assignment on the given task or the specified assignment is deleted or rejected.

    I create a brand new plan based on a template.
    A task in that plan has a team resource assigned. the task is fixed work. The PM may change the work and duration but not the team resource.
    The plan is published.
    I delegate my self as a team resource: and try add myself to team task in the timesheet area (using insert row). I can choose some tasks and the add. Most tasks throw this error. This happens if nothing on the plan is changed - it is brand new - minutes
    old
    One or more of the specified resources could not be re-assigned. This can happen if the proposed resource to be assigned has already an assignment on the given task or the specified assignment is deleted or rejected.
    How can I stop the alert:
    One or more of the specified resources could not be re-assigned. This can happen if the proposed resource to be assigned has already an assignment on the given task or the specified assignment is deleted or rejected.
    Trying to stop the swap to Salesforce - but the errors keep a coming

    oooch - I can fix it - I need delete the task and recreate it. Which is amazingly tedious as I cannot see if a task needs recreating or not. There's 10 template plans and an average of 200 tasks - then I have to rename the template - the assign the
    new template to the EPT - this will be a long night; with only complaints at the end.
    Trying to stop the swap to Salesforce - but the errors keep a coming

  • I could not print a receipt from an e mail.  The only part that would print was the heading.  How do I print a receipt from e mail?

    I could not print a receipt from an e mail.  Only the header of the e mail would print.  How can I print the entire receipt?

    Try Mail/File/Export as PDF, open it in Preview, and see if you can print it from there.

  • Timesheet could not add task from existing project task assignment

    HI there,
    I tried to add a task in Timesheet (PWA2013) from an existing assignment. However, there is no task listed under the project when I open the dialog "Add an existing task". It only shows me the project name, I click it, nothing under the project.
    Due to this issue, I could not add any existing task into the timesheet.Please look at the screenshot. The "test project" is the project name, while no  any task under this project.
    Any help is appreciated!
    Cindy

    Hi Cindy,
    Indeed if you cannot access the server setting from the quick launch menu in the left part of PWA, you have to request administrator rights to your admin.
    I would add an important comment : in PWA2013, the "close to update" PWA2010 feature no longer exists and has been replace by the "lock" feature, which works basically the same.
    To unlock tasks in PWA2013,
    go to server setting, manage views,
    choose a project view,
    insert the "lock" column,
    go to the project center,
    check out your project schedule,
    select the view you just modified,
    change the value in the lock field for the given task,
    publish the project
    Read this post here: http://social.technet.microsoft.com/Forums/projectserver/en-US/28d4914d-5a80-4638-8153-94155a7d43fe/locked-feature-not-working-in-pwa-2013?forum=projectserver2010general
    And this article: http://epmsource.com/2012/10/31/where-has-close-tasks-to-update-gone-in-project-server-2013/
    Then it should be ok.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • An error has occurred because a control with id '%spPlaceHolderMain%' could not be located or a different control is assigned to the same ID after postback.

    Hello All, When i try to do a filter on an entity and click filter button, i see the below error message being popped up. Can someone provide a solution to this ?
    "An error has occurred because a control with id '%spPlaceHolderMain%' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events
    to avoid this error."
    Please let me know the process to set the ID explicitly.

    Can you try resetting the IIS?

  • Could not get F4 help assigne to Formula date on web

    Hi All,
    When i run my query in web , i could not get F4 help assigne to Formula date variable which is processing by customer exit and ready for input.
    can u lease help me in this .
    Thanks
    Man

    See these Norton support threads for information about Firefox 8.0 compatibility.
    360 <br />
    http://community.norton.com/t5/Norton-360/Firefox-8-Support-for-Norton-Toolbar/td-p/581640
    NIS <br />
    http://community.norton.com/t5/Norton-Internet-Security-Norton/Firefox-8-Support-for-Norton-Toolbar/td-p/581516

Maybe you are looking for

  • Do You Have Any Suggestions For J2ME Encryption Applications?

    Hi, Is anyone aware of J2ME applications that perform either of the following: 1) Text editor with strong crypto support. 2) Password wallet with data import/export functionality and strong crypto. To date I have been unable to locate anything suitab

  • Error in excuting BAPI

    Dear All, We have EP7.0 (sps14) on HP UX (DB Oracle 10g Unicode). I created one JCO to the backend R/3 system (ECC 6.0 on HP UX, DB Oracle 10g Unicode). This JCO has been used in one application and is working fine when I am selecting the user/pwd op

  • Doubt on Select Statement

    HI Friends, i have a requirement to select matnr,werks and mmsta from marc table.where i have input of matnr and mmsta. The matnr in the marc table having 2 werks with different mmsta. i was asked to select matnr not having mmsta 40. but in marc tabl

  • Lightroom catalog corrupted

    On my Mac I had to force quit the computer with Lightroom running. The currently used catalog was corrupted on restart and can not be used. I spent 4 hours adjusting 2000 images on this catalog. I know i have to re-import all the images into a new ca

  • Ipad and palm pre problem

    I am trying to connect my ipad via a wifi connection from my pre. Both the palm and ipad say I am connected to the network, but I cannot seem to get access to the internet. Cannot surf the web or send/receive e-mails. I get a message saying not conne