Custom code activity - Could not find type in assembly

I've searched through but cannot find an adequate answer.
Im trying to create a code activity for a Sharepoint 2013 workflow.
I have created the code activity, the workflow and add the custom code activity to it.
As soon as i hit "Build" the code activity disappears from Toolbox and i get the "Could not find type ... in assembly ..."
Any idea how to solve this?
Thanks in advance

For sharepoint 2013 , try to install workflowmanager 1.0 and workflowclient to create workflow, they will work better
Hi Inderjeet, thanks for your reply. These are already installed

Similar Messages

  • Could not find type error - unknown or missing type

    Hello,
    I have a sequence file created on the TestStand 3.5 version (running on winXP which I don't have at the moment) and I'm trying to use this sequence on my TestStand 4.2 (running on Win7).
    The error is (see attached picture) Could not find type 'XML_POPUP' ,unknown or missing type.
    I have tried adding a type named XML_POPUP to the MyTypes.ini->Step Types.
    Is there a way to load the sequence without a type, I only need to see the steps and extract data for the new sequence I'm building.
    I can also view the code of the sequence in NOTEPAD++ , is there a way to extract the data using the this code?
    Thank you,
    Lev 
    Attachments:
    Capture.JPG ‏34 KB

    Hi,
    I have found an .ini file containing the XML_POPUP step type (as seen in the attached picture).
    When I'm trying to load the sequence I receive the same error, that the 'XML_POPUP' type is not found.
    After loading the .ini file as seen in the picture, do I need to configure something else for the sequence I'm trying to load to locate this type?
    Thank you,
    Lev
    Attachments:
    Capture.JPG ‏133 KB

  • Error:Could not load type from assembly Culture=neutral, PublicKeyToken=null' because it contains an object field at offset 75 that is incorrectly aligned or overlapped by a non-object field.

    I got an error while I creating a structure.
    [FieldOffset(72)]
    [MarshalAs(UnmanagedType.ByValArray,SizeConst= 3)]
    public int[] DC;
    [FieldOffset(75)]
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
    public float[] WIN;
    [FieldOffset(83)]
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
    public byte[] name;
    [FieldOffset(103)]
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
    public byte[] SET;
    [FieldOffset(106)]
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
    public byte[] ID;
    Error as like this-->object field at offset 75 that is incorrectly aligned or overlapped by a non-object field. But here size constant is 3 so I think after 72 offset will be 75..If I change the offset to 76 it will works fine. I think reason is that
    size of int is 4. After changing that code will be like this.
    [FieldOffset(72)]
    [MarshalAs(UnmanagedType.ByValArray,SizeConst= 3)]
    public int[] DC;
    [FieldOffset(76)]
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
    public float[] WIN;
    [FieldOffset(84)]
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
    public byte[] name;
    [FieldOffset(104)]
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
    public byte[] SET;
    [FieldOffset(107)]
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
    public byte[] ID;
    But at that time I got the  error as object field at offset 107 that is incorrectly aligned or overlapped by a non-object field..Can anyone tell me what is the main reason behind this..
    Thanks..

    Hi,
    Please firstly take a look at this documentation:
    MarshalAsAttribute.SizeConst Field
    Indicates the number of   elements in the fixed-length array or the number of characters (not bytes) in   a string to import
    Change your code like this should work:
    [FieldOffset(72)]
    [MarshalAs(UnmanagedType.ByValArray,SizeConst= 3)]
    public int[] DC;
    [FieldOffset(84)]//72+4*3
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
    public float[] WIN;
    [FieldOffset(116)]//84+4*8
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
    public byte[] name;
    [FieldOffset(136)]
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
    public byte[] SET;
    [FieldOffset(139)]
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
    public byte[] ID;
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cannot find type in assembly.

    I followed instruction in
    http://www.codeproject.com/Articles/19954/Execute-NET-Code-under-SQL-Server-2005
    My dll is the following abbreviated..
    Imports System
    Imports System.IO
    Imports System.Text
    Imports System.Data.SqlTypes
    Public Class CyDeC<Microsoft.SqlServer.Server.SqlProcedure(Name:="Sproc_CyDec ")>
    Public Function E(ByVal message As SqlString) As SqlStringReturns (SqlString)End Function It compiles fineOn Sql2012 I create Assembly MyAssemblyName AUTHORIZATION dbo from <somepath> WITH PERMISSION_SET = UNSAFEthenCreate Procedure test(@message nvarchar(200)) AS EXTERNAL MyAssemblyName.Cydec.EI get the following error message...Msg 6505, Level 16, State 2, Procedure MyAssemblyName, Line 1
    Could not find Type 'CyDec' in assembly MyAssemblyName.Cydec.E
    The account underwhich SQL runs has full rights on the folder where the dll resides.
    The dll was compiled under .net 2.0
    What should I be looking at
    Thanks
    T
    GADOI

    Visual Basic projects have the concept of default namespaces. The default namespace is the name of your project, IIRC, so if your project's name is MyProject, the class name would be "MyProject.CyDec"
    So you can other use the 2-part class name, or find the default namespace of your project and clear it. If you use the 2-part class name, you must use brackets to separate the pieces of the EXTERNAL NAME specification. Also, in your case you overrode the
    name of the proc by using the Name property of the SqlProcedureAttribute class. So, if the name of your project is MyProject, the EXTERNAL NAME specification would be:
    AS EXTERNAL NAME MyAssemblyName.[MyProject.CyDec].Sproc_CyDec
    Hope this helps, Bob

  • Deserializer error : could not find deserializer for type

    Hi folks,
    I am trying to send a XML file in web service request and trying to get the same back, I am getting the following exception while trying to do this,
    org.xml.sax.SAXException: Deserializing parameter 'echo':  could not find deserializer for type {Echo}echo
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: Deserializing parameter 'echo':  could not find deserializer for type {Echo}echo
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:localhost
    org.xml.sax.SAXException: Deserializing parameter 'echo':  could not find deserializer for type {Echo}echo
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at com.sel.services.EchoRequest.main(EchoRequest.java:42)
    The following is my client code,
    import javax.activation.DataHandler;
    import javax.activation.FileDataSource;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ParameterMode;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory;
    import org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory;
    public class EchoRequest {
          * @param args
         public static void main(String[] args) {
              try {
                        String endpoint = "http://localhost:8080/axis/Echo.jws";
                        Service  service = new Service();
                      Call     call    = (Call) service.createCall();
                      call.setTargetEndpointAddress( new java.net.URL(endpoint) );
                      call.setOperationName(new QName(("Echo"),"DataHandler"));
                      QName qName = new QName("Echo" , "echo");
                      DataHandler dhSource = new DataHandler(new FileDataSource("D:/Workspace/Sandbox/Request.xml"));
                      call.registerTypeMapping(dhSource.getClass(),qName,JAFDataHandlerSerializerFactory.class,JAFDataHandlerDeserializerFactory.class );
                      call.addParameter("echo", qName , ParameterMode.IN);
                      call.setProperty(call.ATTACHMENT_ENCAPSULATION_FORMAT, call.ATTACHMENT_ENCAPSULATION_FORMAT_MIME);
                      call.setReturnType(qName);                 
                      Object ret = call.invoke(new Object[] {dhSource});
                        System.out.println();
                    } catch (Exception e) {
                      System.err.println(e.toString());
                      e.printStackTrace();
         }The following is my jws,
    import java.io.Serializable;
    import javax.activation.DataHandler;
    public class Echo implements Serializable{
         public DataHandler echo(DataHandler echo){
              return echo;
    }The following is my deploy.wsdd,
    <deployment     xmlns="http://xml.apache.org/axis/wsdd/"
                           xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
                           xmlns:ns1="Echo">
         <service name="Echo" provider="java:RPC">
                 <parameter name="className" value="Echo"/>
              <parameter name="allowedMethods" value="echo"/>
              <operation name="echoString" returnQName="returnqName" returnType="ns1:DataHandler">
                     <parameter name="echo" type="ns1:DataHandler"/>
             </operation>
              <typeMapping deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
                   languageSpecificType="java:javax.activation.DataHandler" qname="ns1:DataHandler"
                      serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
                  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
           </service>
    </deployment>And following is my server-config.wsdd,
    <?xml version="1.0" encoding="UTF-8"?>
    <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
    <globalConfiguration>
      <parameter name="sendMultiRefs" value="true"/>
      <parameter name="disablePrettyXML" value="true"/>
      <parameter name="adminPassword" value="admin"/>
      <parameter name="attachments.Directory" value="D:\ApacheTomcat5.5.26\webapps\axis\WEB-INF\attachments"/>
      <parameter name="dotNetSoapEncFix" value="true"/>
      <parameter name="enableNamespacePrefixOptimization" value="false"/>
      <parameter name="sendXMLDeclaration" value="true"/>
      <parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
      <parameter name="sendXsiTypes" value="true"/>
      <requestFlow>
       <handler type="java:org.apache.axis.handlers.JWSHandler">
        <parameter name="scope" value="session"/>
       </handler>
       <handler type="java:org.apache.axis.handlers.JWSHandler">
        <parameter name="scope" value="request"/>
        <parameter name="extension" value=".jwr"/>
       </handler>
      </requestFlow>
    </globalConfiguration>
    <handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
    <handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
    <handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
    <service name="AdminService" provider="java:MSG">
      <parameter name="allowedMethods" value="AdminService"/>
      <parameter name="enableRemoteAdmin" value="false"/>
      <parameter name="className" value="org.apache.axis.utils.Admin"/>
      <namespace>http://xml.apache.org/axis/wsdd/</namespace>
    </service>
    <service name="Version" provider="java:RPC">
      <parameter name="allowedMethods" value="getVersion"/>
      <parameter name="className" value="org.apache.axis.Version"/>
    </service>
    <service name="Echo" provider="java:RPC">
      <operation name="echoString" returnQName="returnqName" returnType="ns1:DataHandler" soapAction="" xmlns:ns1="Echo">
       <parameter name="echo" type="ns1:DataHandler"/>
      </operation>
      <parameter name="allowedMethods" value="echo"/>
      <parameter name="className" value="Echo"/>
      <typeMapping deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns2:DataHandler" serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory" type="java:javax.activation.DataHandler" xmlns:ns2="Echo"/>
    </service>
    <transport name="http">
      <requestFlow>
       <handler type="URLMapper"/>
       <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
      </requestFlow>
      <parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/>
      <parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
      <parameter name="qs.list" value="org.apache.axis.transport.http.QSListHandler"/>
      <parameter name="qs.method" value="org.apache.axis.transport.http.QSMethodHandler"/>
      <parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/>
      <parameter name="qs.wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
    </transport>
    <transport name="local">
      <responseFlow>
       <handler type="LocalResponder"/>
      </responseFlow>
    </transport>
    </deployment>The following is the directory structure which I have in my tomcat for this service
    - axis
    -----WEB-INF
    ----------classes
    ----------jwsClasses
    ----------lib
    ----------deploy.wsdd
    ----------server-config.wsdd
    I am really not sure where I am getting wrong. Please help me with this.
    Thanks
    Edited by: Jadaaih on Jun 19, 2008 1:52 AM

    Ok, this may not be your problem, but I was getting this error as well.
    I had multiple services running, and I was able to use SOAP test clients and connect to them and get responses, no problem.
    I wrote some client code to connect to one, and it worked just fine.
    Then I wrote some client code to connect to the other, and I got an error like
    faultString: org.xml.sax.SAXException: Deserializing parameter 'initiateIn':  could not find deserializer for type {urn:SOAPFulfillmentAPI}DoSomething
    ...I tore my hair out trying to figure out why a service that functions perfectly using other tests would fail in java. Then I realized I was pointing to the end point URL.
    It looks like AJAX tries to deserialize the parameters before it does any of basic sanity check to see the method your looking for even exists (even in debug mode). So instead of getting a useful error like "Cant find method 'DoSomething' " you get some crap about not being able to understand the datatype for an arguement.
    I hope this helps someone one day =)

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

  • Receiving error message 'Could not load file or assembly 'System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.'

    I started getting this error message for the first time today. When I look in the event log I see it every time anyone tries to sync to a mobile device to the exchange server. I've also had this problem trying to connect using
    Outlook. I believe it is an IIS issue but I'm not absolutely sure so I'm posting this in the Exchange forum as well.
    The event viewer has the following information...
    3008
    A configuration error has occurred.
    5/1/2014 10:41:08 PM
    5/2/2014 5:41:08 AM
    7539d8a38c8b47869eda3f1749aba08d
    1
    1
    0
    /LM/W3SVC/1/ROOT/Microsoft-Server-ActiveSync-75-130434828686436855
    Full
    /Microsoft-Server-ActiveSync
    C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\sync\
    SERVER
    16284
    w3wp.exe
    NT AUTHORITY\SYSTEM
    ConfigurationErrorsException
    Could not load file or assembly 'System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    https://remote.testserver.com:443/Microsoft-Server-ActiveSync/default.eas?User=user.name&DeviceId=ApplC39GQ5xxxxxx&DeviceType=iPhone&Cmd=Ping
    /Microsoft-Server-ActiveSync/default.eas
    174.224.130.31
    False
    NT AUTHORITY\SYSTEM
    24
    NT AUTHORITY\SYSTEM
    False
    at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
    I have tried most, if not all, of the different post's suggestions to no avail.
    The steps I have taken are as follows...
    1. Repaired .Net 4 (Both the client and extended)
    2. Uninstalled and reinstalled .Net Framework 4.0.
    3. Verified that the dll exists.
    4. Checked the applicationHost.config file. It contains the follow statement...
    <add name="ServiceModel-4.0" type="System.ServiceModel.Activation.ServiceHttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv2.0"
    />
    5. Changed the following line in web.config to include the runtimeVersion...
    <add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv2.0" />
    6. Executed aspnet_regiis.exe -iru from the ...\Framework64\v4.0.30319 directory.
    7. Went to inetpub\history to use an applicationHost.config file from yesterday but it only has history from 9PM tonight. It probably had what I needed before I started changing it tonight.
    I still receive the same error message.
    Like I said everything was working yesterday. In fact I didn't hear or see any issue until after 1PM today.
    Any help would be very appreciated!

    Hi,
    Please confirm whether users can access their mailboxes from Outlook Web Access or not. We can do the following changes to have a try:
    1. In IIS > Application Pools, change the .NET Framework Version to v2.0 and restart IIS service.
    2. If it doesn’t work, explore the Default Web site.
    3. Renamed the web.config file to web.config.old
    4. Reset IIS using iisreset command to have a try.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • 11.1.1.4:Could not find the item selected to match the value of type Number

    Hi,
    I have a taskflow with an input parameter.
    The input parameter value is to be assigned to a list item as the default selected value.
    I have mapped the pageFlow scope parameter to set value to the list item using input page parameters defined in task flow.
    but When i Run the task flow the value does not get assigned to the drop down list and jdevloper console screen shows up the following message
    "Could not find the item selected to match the value 2 by type: oracle.jbo.domain.Number in LOV."
    But If I click the Lov to check the values it shows that value is present in the list.
    The same configurations works if the list of values is for a column with type as java.lang.String.
    Is it somethng different that is to be done for a Number field to assign value from a taskflow parameter?
    Edited by: user3067156 on Jun 25, 2011 3:34 PM

    Hi Jobinesh,
    I am assigning the default value in the task flow using input page parameters ...
    <view id="VIEW1">
    <page>/title.jsff</page>
    <input-page-parameter>
    <from-value>#{pageFlowScope.pInputTyp_Id}</from-value>
    <to-value>#{bindings.pTyp_Id1.attributeValue}</to-value>
    </input-page-parameter>
    </view id>
    It does not assign the value, if Bind variable(pTyp_Id1) NDtype and task flow input parameter(pInputTyp) class type, both are set to use type oracle.jbo.domain.Number.
    If I change both to use java.lang.String and additionally also change the VO defination the accept the bind variable of type string, it assigns the value correctly.
    Usecase:
    I have a a task flow for which has its first page a search page.
    The Search page is created using operation execute with params and dragging the query parameters on the page.
    The Query parameters are to be filled using a select one choice option and the list is bound to the master values.
    This task flow can be used inside a standalone page as a region to provide a search page
    The same task flow can be called from within another taskflow which will provide the default values for the drop down lists ..
    Since the search page is a jsff fragment i dont have a page on load handler to provide default values..
    So assiging the values using input page parameters defined in task flow view tag.
    For testing I am passing the taskflow input parameters by calling the task flow from a jspx page a region . When I configure this task flow a region in a page its asks for providing the values for the parameters
    And the same gets configured in my testpage def as
    <executables>
    <variableIterator id="variables"/>
    <taskFlow id="Flow1" taskFlowId="/WEB-INF/Flow1.xml#Flow1"
    activation="deferred"
    xmlns="http://xmlns.oracle.com/adf/controller/binding">
    <parameters>
    <parameter id="pTyp_Id" value="1207"/>
    </parameters>
    </taskFlow>
    </executables>
    Edited by: user3067156 on Jun 27, 2011 1:50 PM

  • Could not find the artifact type for property kind

    Team Foundation Server 2013 Update4  on Win Server 2008 R2, this message has suddenly started appearing.
    Team foundation error: Could not find the artifact type for property kind '77951f77-f29d-4a9b-8311-1b13e4b89c42'. The property kind was not properly defined.
    Last update installed was Update 4 on 17 Dec 2014, and at the time of install, everything was working well. I've re-applied update 4 in the hope it would resolve it, but the same error appears when I open the TFS console. Please help!
    Programming today is a race between software engineers striving to build bigger and better idiot- proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

    Hi Stunt, 
    Thanks for your post. 
    And thank you for sharing your experience here. It will be very beneficial for other community members having the similar questions.
    All your participation and support are very important to build such harmonious/ pleasant / learning environment for MSDN community.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • URGENT: Could not find the custom class

    Hi,
    I'm moving from 3.1->3.2
    I loaded the AppModule developed with 3.1 under which it is working ok. Now I get the following error from Appmodule tester:
    JBO-26022: Could not find and load the custom classs Ingreso.EntityImpl
    Any help regarding to subject matter is appreciated.
    null

    Hi again,
    I'm not sure if there's a missunderstanding here.
    When yawmark told you to type the command exactly as I had posted it (period included), he did not mean that you should type ".class" after the name of your class, but a period after the "-cp" (separated by a space). So, again:
    In your command window, go to the directory where your Javax class is located, and type:
    java -cp . Javax(NOTICE THE PERIOD after -cp, that's the important thing). To make sure, you can copy-paste the line above, but make sure you're executing it from the directory where Javax is located.

  • Error message "Could not find active BDoc...." in "genstatus" transaction

    Hello
    we upgrade from CRM 2007 SP 5 to SP 9.
    in transaction GENSTATUS we get 2 kind of message.
    1. yellow messages
    2. red ERROR
    Generator group: GNREP
                                 LUTAB
    we already run the job  MW_GENERATE
    |Object Name                 |Gen. group|Generator|Status|Type|Message text                                                                                |
    CNBCCPSAP00070            CG
    GNREP
    E
    F
    Could not find active BDoc for TRANS_ID CNBCCPSAP00070 - Identification not possible via TransID / Name
    |CNBCCPSAP00070            CG|LUTAB     |         |E     |F   |Could not find active BDoc for TRANS_ID CNBCCPSAP00070 - Identification not possible via TransID / Name|
    Please assiste.
    Best regards
    Merav

    Hello Merav,
    The reason for such generation errors is that a replication object to distribute CNBCCPSAP00070 is existing but the related BDOC is not there. These types of replication objects and BDocs have to be maintained manually by customers.
    Please refer to SAP Note 1114576 (Deletion of RO CNBCCPSAP00070) and make the corrections.
    Afterwards kindly go to transaction GENSTATUS and mark the two lines and press generation button.
    Your issue would be solved.
    Thanks,
    Rohit

  • Infopackage Idocs in status 2 - could not find code page for receiver system

    Hi,
    We just migrated our production system from BW 7.01 non unicode to BW 7.4 on HANA.
    We now encounter issues with idocs while loading data into bw from our ECC5 source. When we analyze idocs in the source system it appears with the message "could not find code page for receiver system"
    One weird thing is that the idoc seems to have been created before we started the infopackage in bw.. We controlled system time and AS time and everything seems ok.
    We did not encounter this issues on our previous migration test runs..
    Hope someone can help
    Christophe

    Hi,
    Thanks for responding. We finally found out what the problem was.
    We have two applications servers on our ECC with 2 different OS. One of them could not reach the new BW HANA server.
    Regards
    Christophe

  • IDoc Status 02 ( Could not find code page for receiving system )

    Hi All,
    I am getting Idoc status 02 when I am trying to send IDocs from ECC to PI system ( Production ).
    Error description.
    Could not find code page for receiving system
    Message no. E0266
    Diagnosis
    For the logical destination PIP001, you want to determine the code page in which the data is sent with RFC. However, this is not currently possible, and the IDoc cannot yet be dispatched.
    Procedure for System Administration
    Possible causes are:
    1. The entry no longer exists in the table of logical destinations.
    2. The target system could not be accessed at runtime.
    3. The logon language is not installed in the target system.
    4. In the destination system, no logon language is maintained
    Please help.
    Thanks - Vinay.

    Hi Vinay,
    Status 02 occurs when data is not passed to port suceessfully. Check the RFC desination  is working fine and your able to connect to target system and also check correct port is assigned.
    Regards,
    Vinod.

  • Setup encountered a problem while validating the state of Active Directory: Could not find information about the local site

    Have an existing ex2010 sp3 organization.
    Could not run ex2013cu1 setup from my newly built 2012 server, getting the error in the subject line.  I used the command line to run the AD preparation steps successfully from my 2012 DC/GC, then tried to run setup again from the new 2012 server and
    still get the same error.  The error itself in the log is pretty useless:
    [05/07/2013 01:19:13.0137] [0] **********************************************
    [05/07/2013 01:19:13.0137] [0] Starting Microsoft Exchange Server 2013 Cumulative Update 1 Setup
    [05/07/2013 01:19:13.0137] [0] **********************************************
    [05/07/2013 01:19:13.0152] [0] Local time zone: (UTC-08:00) Pacific Time (US & Canada).
    [05/07/2013 01:19:13.0152] [0] Operating system version: Microsoft Windows NT 6.2.9200.0.
    [05/07/2013 01:19:13.0152] [0] Setup version: 15.0.620.29.
    [05/07/2013 01:19:13.0152] [0] Logged on user: DOMAIN\ADMINISTRATOR.
    [05/07/2013 01:19:13.0168] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found.
    [05/07/2013 01:19:13.0168] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found.
    [05/07/2013 01:19:13.0215] [0] Command Line Parameter Name='sourcedir', Value='\\h1\f$\junk\installers\server\Exchange\2013cu1'.
    [05/07/2013 01:19:13.0215] [0] Command Line Parameter Name='mode', Value='Install'.
    [05/07/2013 01:19:13.0215] [0] RuntimeAssembly was started with the following command: '/sourcedir:\\SERVER\f$\junk\installers\server\Exchange\2013cu1 /mode:Install'.
    [05/07/2013 01:19:13.0215] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found.
    [05/07/2013 01:19:13.0793] [0] Finished loading screen CheckForUpdatesPage.
    [05/07/2013 01:19:38.0762] [0] Finished loading screen UpdatesDownloadsPage.
    [05/07/2013 01:19:40.0496] [0] Starting file's copying...
    [05/07/2013 01:19:40.0496] [0] Setup copy files from '\\SERVER\f$\junk\installers\server\Exchange\2013cu1\Setup\ServerRoles\Common' to 'C:\Windows\Temp\ExchangeSetup'
    [05/07/2013 01:19:40.0700] [0] Finished loading screen CopyFilesPage.
    [05/07/2013 01:19:40.0840] [0] Disk space required: 1292445007 bytes.
    [05/07/2013 01:19:40.0840] [0] Disk space available: 23767240704 bytes.
    [05/07/2013 01:19:59.0762] [0] File's copying finished.
    [05/07/2013 01:19:59.0965] [0] Finished loading screen InitializingSetupPage.
    [05/07/2013 01:20:02.0934] [0] Setup is choosing the domain controller to use
    [05/07/2013 01:20:09.0325] [0] Setup is choosing a local domain controller...
    [05/07/2013 01:20:11.0794] [0] [ERROR] Setup encountered a problem while validating the state of Active Directory: Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency. 
    See the Exchange setup log for more information on this error.
    [05/07/2013 01:20:11.0794] [0] [ERROR] Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency.
    [05/07/2013 01:20:11.0809] [0] Setup will use the domain controller ''.
    [05/07/2013 01:20:11.0809] [0] Setup will use the global catalog ''.
    [05/07/2013 01:20:11.0825] [0] Exchange configuration container for the organization is 'CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=local'.
    [05/07/2013 01:20:11.0919] [0] Exchange organization container for the organization is 'CN=DOMAIN,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domain,DC=local'.
    [05/07/2013 01:20:11.0966] [0] Setup will search for an Exchange Server object for the local machine with name 'WEX1'.
    [05/07/2013 01:20:12.0028] [0] No Exchange Server with identity 'WEX1' was found.
    [05/07/2013 01:20:12.0044] [0] The following roles have been unpacked:
    [05/07/2013 01:20:12.0044] [0] The following datacenter roles are unpacked:
    [05/07/2013 01:20:12.0044] [0] The following roles are installed:
    [05/07/2013 01:20:12.0059] [0] The local server does not have any Exchange files installed.
    [05/07/2013 01:20:12.0075] [0] Server Name=WEX1
    [05/07/2013 01:20:12.0137] [0] Setup will use the path '\\SERVER\f$\junk\installers\server\Exchange\2013cu1' for installing Exchange.
    [05/07/2013 01:20:12.0137] [0] The installation mode is set to: 'Install'.
    [05/07/2013 01:20:27.0591] [0] An Exchange organization with name 'DOMAIN' was found in this forest.
    [05/07/2013 01:20:27.0591] [0] Active Directory Initialization status : 'False'.
    [05/07/2013 01:20:27.0591] [0] Schema Update Required Status : 'False'.
    [05/07/2013 01:20:27.0591] [0] Organization Configuration Update Required Status : 'False'.
    [05/07/2013 01:20:27.0591] [0] Domain Configuration Update Required Status : 'False'.
    [05/07/2013 01:20:27.0841] [0] Applying default role selection state
    [05/07/2013 01:20:27.0872] [0] Setup is determining what organization-level operations to perform.
    [05/07/2013 01:20:27.0872] [0] Because the value was specified, setup is setting the argument OrganizationName to the value DOMAIN.
    [05/07/2013 01:20:27.0872] [0] Setup will run from path 'C:\Windows\Temp\ExchangeSetup'.
    [05/07/2013 01:20:27.0888] [0] InstallModeDataHandler has 0 DataHandlers
    [05/07/2013 01:20:27.0888] [0] RootDataHandler has 1 DataHandlers
    [05/07/2013 01:20:27.0903] [0] Setup encountered a problem while validating the state of Active Directory: Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency.  See
    the Exchange setup log for more information on this error.
    [05/07/2013 01:20:27.0935] [0] [ERROR] Setup encountered a problem while validating the state of Active Directory: Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency. 
    See the Exchange setup log for more information on this error.
    [05/07/2013 01:21:04.0154] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found.
    [05/07/2013 01:21:04.0154] [0] End of Setup
    [05/07/2013 01:21:04.0154] [0] **********************************************

    Hi,
    The cause is clearly described in the log:
    [05/07/2013 01:20:11.0794] [0] [ERROR] Setup encountered a problem while validating the state of Active Directory: Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency. 
    See the Exchange setup log for more information on this error.
    [05/07/2013 01:20:11.0794] [0] [ERROR] Could not find information about the local site. This can be caused by incorrect configuration of subnets or sites or by replication latency.
    I'd suggest you check NIC settings and AD configuration.
    Hope it is helpful.
    Fiona Liao
    TechNet Community Support

  • Idoc Error: Could not find code page for receiving system

    hi,
    I am facing the following error while processing Idocs.
    ERROR: Could not find code page for receiving system
    Diagnosis
    For the logical destination BWFIN, you want to determine the code page in which the data is sent with RFC. However, this is not currently possible, and the IDoc cannot yet be dispatched.
    Can somebody suggest a solution for this. I have verified that the RFC destinations have been created both on the sender and receiver, ports (WE21) have been defined, and partner profiles (WE20) also created. How would I troubleshoot this problem?

    Hi,
    I did analyse on this issue.It is all because of the Langauge settings in the SM59.This can be done by the BASIS person.The Language field would be empty, but when ever we send the IDoc from the unicode to a non unicode system we have to mention the Langauage used.
    If this helps you really award me the points.
    ~Katty

Maybe you are looking for

  • Custom Authentication With Identity Store

    Hi everyone, I faced a problem with login function of my portal (Webcenter Application). The Problem is: - Allow the users logging in by user that store in another system. I must communicate using low level of socket. This really is not a problem. -

  • String replacement

    Hi, anyone knows how to replace a particular string in a file with another string? For example, in the file hello.tmp, I want to replace the word :Smile: with the string <img src="smile.gif"> I tried to use String.replace() but this is only for chara

  • Displaying .shp file in a JSP page

    hi all, For my application i have to display a map. That one is a .shp file. And it is not a stored one in my system.In that map i have to show a car moving at that particular time, so it will we keep on changing and that one i have to get it from ot

  • How to realize special scenario with FOX formula - FOREACH, variables

    Hello, we want to use the integrated planning for the following thing within the portal: A salesman should add manual values (planned turnover) for his top 10 customers. The rest of his yearly budget should be distributed automatically and equally to

  • My iPad shuts down for no reason and I have to reboot a few times to get it back on

    My iPad will just shut down for no reason and I have to reboot a few times to get it back up and running