Idoc failed in Bi system "Could not find code page for receiving system".
Dear Experts,
i am getting below error ,Idoc failed in Bi system "Could not find code page for receiving system".
All the idocs have been successfully posted except one which is giving this error
Idoc status 02 - could not find code page for receiver system.
Please guide me
thanks
vamsi
Hello Vamsi,
check Note 647495 - RFC for Unicode ./. non-Unicode Connections
If your ERP system sends e. g. chinese data to the SCM system, how should the system know which codepage to use? You have to set the MDMP flag in your ERP system in SM59 and configure in the MDMP extended settings which codepage should be used for what language.
Please check this thread - IDoc error - Could not find code page for receiving system
Hope it helps,
Thanks & Regards,
Amit Barnawal
Similar Messages
-
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
ChristopheHi,
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. -
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 -
Could not find code page for receiving system
Hi Experts,
When I scheduled a PC i got this Error Msg. What is the real cause and how can i correct it?? Thanks
Dave
"Could not find code page for receiving system"Hi Praveen,
The detailed error msg says the following.
Error when updating Idocs in Business Information Warehouse
Diagnosis
Errors have been reported in Business Information Warehouse during IDoc update:
Could not find code page for receiving system
System response
There are IDocs with incorrect status.
Procedure
Check the IDocs in Business Information Warehouse . You can get here using the BW Monitor.
Removing errors:
How you remove the errors depends on the error message you receive. -
BW Monitor error Could not find code page for receiving system
Hi All,
Frequent BW Monitor error - Could not find code page for receiving system
I checked SM59 and every setting is fine there. Any other possibility ?
Regards
SrinivasThe log updated in the status tab was:
Error when updating Idocs in Business Information Warehouse
Diagnosis
Errors have been reported in Business Information Warehouse during IDoc update:
Could not find code page for receiving system
System Response
Some IDocs have error status.
Procedure
Check the IDocs in Business Information Warehouse . You do this using the extraction monitor.
Error handling:
How you resolve the errors depends on the error message you get. -
Error "could not find code page for receiving system"
Hello Everyone,
We are trying to load data and receive the message:
Could not find code page for receiving system
We have searched notes and this forum and can't find anything. We also checked WE20 and could not find anything wrong.
Can someone please elaborate specifically what this error is and where to fix it?
Thanks so much.
ColleenI just upgraded to NW 2004 SR1, and when loading data from a non-unicoded R/3 system to our BW unicoded system I experienced the exact problem. Here is the resolution that is stated in note #613389 (it's not very clear in the note).
- Language EN must be specified in sm59
- Under Special Options -> RFC Bit Options
Make sure that Use Found Communication Code Page has a check mark.
Once this was done, the data loads started completing successfully. -
Could not find coding page for receiving system
Hi,
We have set up the configuration of RFC connections in SM59. We want to send an IDoc from a Unicode to a non-Unicode system. Message 'Could not find coding page for receiving system' appears. We activated some solutions described in OSS notes and added the required authorization to the communication user but it still doesn't work. What else can cause (solve) this problem?
Regards, JanHello Jan,
I had the following situation:
After seup of an ALE/IDOC scenario with another SAP but Non unicode system sometimes the outbound PROJECT idocs failed with the error message "Could not find code page for receiving system". Status of Idoc was 02. When reprocessed some minutes later with report RBDAGAIN it worked.
It turned out that for what'o'ever reason the connectivity was down for a very short time but long enough to get the Idocs failed.
That's what I meant with the error text could be misleading.
We solved this problem with a daily job with report RBDAGAIN for reprocessing.
Regards
Michael -
Org.hibernate.PropertyNotFoundException: Could not find a getter for id in
[skumar@aithdell3 events]$ java EventManager
May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.3
May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : Event.hbm.xml
May 15, 2008 8:39:43 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: Event -> EVENTS
May 15, 2008 8:39:43 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 1
May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:sql://localhost
May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=sa, password=****}
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: HSQL Database Engine, version: 1.8.0
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: HSQL Database Engine Driver, version: 1.8.0
May 15, 2008 8:39:44 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.HSQLDialect
May 15, 2008 8:39:44 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
May 15, 2008 8:39:44 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
May 15, 2008 8:39:44 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.NoCacheProvider
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
May 15, 2008 8:39:45 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Intial session factory creation failed org.hibernate.PropertyNotFoundException: Could not find a getter for id in class Event
Exception in thread "main" java.lang.ExceptionInInitializerError
at HibernateUtil.<clinit>(HibernateUtil.java:18)
at EventManager.main(EventManager.java:11)
Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for id in class Event
at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:282)
at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)
at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:168)
at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:123)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at HibernateUtil.<clinit>(HibernateUtil.java:14)
How can i fix this exception
Please help me.
Thanks in advance[skumar@aithdell3 events]$ java EventManager
May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.3
May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
May 15, 2008 8:39:41 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
May 15, 2008 8:39:42 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : Event.hbm.xml
May 15, 2008 8:39:43 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: Event -> EVENTS
May 15, 2008 8:39:43 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 1
May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:sql://localhost
May 15, 2008 8:39:43 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=sa, password=****}
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: HSQL Database Engine, version: 1.8.0
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: HSQL Database Engine Driver, version: 1.8.0
May 15, 2008 8:39:44 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.HSQLDialect
May 15, 2008 8:39:44 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
May 15, 2008 8:39:44 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
May 15, 2008 8:39:44 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.NoCacheProvider
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
May 15, 2008 8:39:44 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
May 15, 2008 8:39:45 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
May 15, 2008 8:39:45 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Intial session factory creation failed org.hibernate.PropertyNotFoundException: Could not find a getter for id in class Event
Exception in thread "main" java.lang.ExceptionInInitializerError
at HibernateUtil.<clinit>(HibernateUtil.java:18)
at EventManager.main(EventManager.java:11)
Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for id in class Event
at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:282)
at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:275)
at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:168)
at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:123)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at HibernateUtil.<clinit>(HibernateUtil.java:14)
How can i fix this exception
Please help me.
Thanks in advance -
Could not determine code page Error in remote sys in XI
Hi,
When we try to send some IDOCS from ECC 5.0 sys to 4.6C sys via XI (M70) we are encountering below issue.
<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
<SAP:P1>FM NLS_GET_LANGU_CP_TAB: Could not determine code page with XXXXX system I::000 FM NLS_GET_LANGU_CP_TAB</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error: FM NLS_GET_LANGU_CP_TAB: Could not determine code page with XXXX I::000 FM NLS_GET_LANGU_CP_TAB</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
When i checked table TCPDB is empty in 4.6 C system. Does it ring any bells guyz....
Regards
VishHi,
Check out this thread
"Could not determine code page" inbound side error
XI IDOC Error...
Thanks,
Prakash
Message was edited by: Prakash Arunachalam -
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 am trying to connect my macbook air through my led tv using hdmi but it won't work. I could not find arrangement option on my system preference. how do i make it appear again on my system preference so i can mirror it through my tv. thanks
Hi jenette,
If you are having issues using an HDTV via HDMI as an external display to your MacBook Air, you may find the following article helpful:
OS X: How to use multiple displays with your Mac in Mountain Lion and earlier
http://support.apple.com/kb/ht5019
(Note: You will generally only see the arrangement option in Displays when you are configured to use the external display in Extended Desktop mode; there is no arrangement in Mirroring as both screens are showing the same image.)
Regards,
- Brenden -
About a month ago I could no longer connect to the internet on our PC. Every time I clicked on the Firefox icon the Netscape sign-on window would pop up. I would try to close it but it would pop up over and over again. If I tried to close it a dozen or so times eventually Firefox would open up but it would never connect. Just today I moved my Netscape file to the recycle bin. No longer does the Netscape sign-on window pop up but following Network Connection error message pops up: "Error 623: The system could not find the phone book entry for this connection".. This error window behaves the same way the Netscape sign-on window used to behave. Every time I click to close it it pops open again. After numerous clicks Firefox opens up but it never connects.
Do you have this error message on a Mac computer or on a Windows computer?
I've only seen this error mentioned on a Windows computer.
*http://kb.mozillazine.org/Autoconnect -
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 -
I have been searching the forums and the web for hours and have not found a solution to a problem we are having. We upgraded our reports from VS.NET 2003 to VS.NET 2008 and started getting the below error upon our Report.Export code.
Logon failed. Details: mscorlib : Could not find file 'C:\Inetpub\wwwroot\xxx\ConsolidatedReports\Designers\xxxFringe\xxxFringeFunderDetail.xsd'. Failed to export the report. Error in File C:\WINDOWS\TEMP\temp_90ed8e07-481c-4bdb-8c50-885854a143d0 {B8EC61FE-7931-4979-AD92-432C21013D77}.rpt: Unable to connect: incorrect log on parameters.
So when I verify the XSD and set the data source location (XML File Path: C:\Inetpub\wwwroot\xxx\ConsolidatedReports\Designers\xxxFringe\xxxFringe.xsd) the report works fine. The problem is that when another developer trys to run the report on their machine and their machine has a different path for the code, the report fails. The odd thing is that some of our reports are working fine, it is only a few that basically are looking for the hard coded XSD path.
So, as far as I can tell the XSD are not needed (Re: ADO.Net (XML) Data Source File Path). I have applied SP1 for Crystal Reports. I am totally confused why this started and why the report is looking for a "hard coded" path to the XSD.The RunReport is called by a button click on a form. This method calls ExportFile which works until the line "Report.Export()" is hit.
Public Overrides Function RunReport(ByVal ReportID As Short) As String
Dim Utility As New Utility(Session("CNReportPath"))
Dim Report As New rptIndividualSalaryFringe
Dim db As New BudgetDB(Session("CNReportPath"))
Dim pDB As New ProgramDB(Session("CNReportPath"))
Dim dsRep, dsSub As DataSet
Dim AgencyID As Integer = Program1.AgencyID
Dim ProgramID As Integer = Program1.ProgramID
Dim FyID As Integer = FiscalYear1.SelectedValue
Dim ShowOnlyCSCFunded As Integer = IIf(chkShowCSCFunded.Checked = True, 1, 0)
Dim ContractNumber, AgencyName As String
Dim ReportEnv As String = Environment
Dim ReportDB As String = DBName
dsRep = db.GetIndividualSalaryFringe(AgencyID, ProgramID, FyID, ShowOnlyCSCFunded)
'dsRep.WriteXmlSchema(Server.MapPath("~/ConsolidatedReports/Designers/IndividualSalaryFringe/IndividualSalaryFringe.xsd"))
AgencyName = pDB.GetAgencyName(AgencyID)
With Report.Section1
CType(.ReportObjects("txtAgency"), TextObject).Text = AgencyName
CType(.ReportObjects("txtProgram"), TextObject).Text = pDB.GetProgramName(ProgramID)
CType(.ReportObjects("txtFiscalYear"), TextObject).Text = "Fiscal Year " & FiscalYear1.SelectedText
End With
ContractNumber = pDB.GetContractNumber(ProgramID)
If Not IsNothing(ContractNumber) Then
If Not ContractNumber = "" Then
With Report.Section6
.SectionFormat.EnableSuppress = False
CType(.ReportObjects("txtContractNumber"), TextObject).Text = "Contract #:" & ContractNumber
End With
End If
End If
With Report.Section5
CType(.ReportObjects("txtAgencyName"), TextObject).Text = AgencyName
End With
If dsRep.Tables(0).Rows.Count <= 0 Then
Report.secNoData.SectionFormat.EnableSuppress = False
Report.Section2.SectionFormat.EnableSuppress = True
Report.Section4.SectionFormat.EnableSuppress = True
Report.Section7.SectionFormat.EnableSuppress = True
Report.Section9.SectionFormat.EnableSuppress = True
Report.Section10.SectionFormat.EnableSuppress = True
Report.secFunderDetail.SectionFormat.EnableSuppress = True
Else
dsSub = db.GetIndividualSalaryFringeFunderDetail(ProgramID, FyID)
'dsSub.WriteXmlSchema(Server.MapPath("~/ConsolidatedReports/Designers/IndividualSalaryFringe/IndividualSalaryFringeFunderDetail.xsd"))
Report.OpenSubreport("subFunderDetail").SetDataSource(dsSub)
End If
'Ehn 41 add environment and db name
CType(Report.Section5.ReportObjects("DBName"), TextObject).Text = "DB: " + ReportDB
CType(Report.Section5.ReportObjects("Environment"), TextObject).Text = IIf(ReportEnv = "", ReportEnv, "Env: " + ReportEnv)
Report.SetDataSource(dsRep)
'You must set the ReportGroup equal to Crystal to make it work correctly
ReportGroup = ReportGroup.Crystal
'Leave this line of code
ReportFile = Utility.ExportFile(Report, ExportFilter1.ExportType, Server.MapPath("~/ReportFiles/"))
Return String.Empty
End Function
Public Function ExportFile(ByVal Report As ReportDocument, ByVal ExportType As ExportType, ByVal OutputPath As String, Optional ByVal ds As DataSet = Nothing) As String
Dim crDiskFileOpts As New DiskFileDestinationOptions
'Dim strFilePath As String
'Dim strLinkPath As String
Dim crExportOptions As New ExportOptions
Dim crExcelOptions As New ExcelFormatOptions
Dim crPDFOptions As New PdfRtfWordFormatOptions
Dim crWordOptions As New PdfRtfWordFormatOptions
Dim ReportName As String = String.Empty
Try
crExportOptions = Report.ExportOptions
Select Case ExportType
Case ExportType.Excel
ReportName = Left(Guid.NewGuid.ToString, 15) & ".xls"
With crExcelOptions
.ExcelTabHasColumnHeadings = True
.ExcelUseConstantColumnWidth = True
End With
crExportOptions.ExportFormatType = ExportFormatType.Excel
crExportOptions.FormatOptions = crExcelOptions
Case ExportType.PDF
ReportName = Left(Guid.NewGuid.ToString, 15) & ".pdf"
crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
crExportOptions.FormatOptions = crPDFOptions
Case ExportType.Word
ReportName = Left(Guid.NewGuid.ToString, 15) & ".doc"
crExportOptions.ExportFormatType = ExportFormatType.WordForWindows
crExportOptions.FormatOptions = crWordOptions
Case SamisConstants.ExportType.ExcelRaw
ReportName = Left(Guid.NewGuid.ToString, 15) & ".xls"
''If Not IsNothing(ds) Then
'' Dim oExcel As New ExcelExport.ExcelExport
'' oExcel.CreateWorkbook(OutputPath & ReportName, ds)
''End If
End Select
Select Case ExportType
Case ExportType.Excel, ExportType.PDF, ExportType.Word
crDiskFileOpts.DiskFileName = OutputPath & ReportName
With crExportOptions
.DestinationOptions = crDiskFileOpts
.ExportDestinationType = ExportDestinationType.DiskFile
End With
Report.Export() ' ERROR HAPPENS HERE!!!!!!
End Select
Return "ReportFiles/" & ReportName
Catch ex As Exception
Throw ex
End Try
End Function
Maybe you are looking for
-
Creative Cloud has an ObjC "leak" in latest Mac release
The latest download of the Mac Creative Cloud app has a bug. After receiving the latest CC (today) my system console continues to inform me of a "leak error" at the rate of abot four per minute. For example: "10/6/14 5:18:09.479 PM com.adobe.AdobeC
-
Greetings, When I import a certain picture into PSE11, the thumbnail only shows for a few seconds, then it changes to this: I've tried deleting it and re-importing it from the camera, but the same thing keeps happening. All picture programs are able
-
How do you end a task that won't open
How do you end a task that won't complete?
-
Using Logic as a LoopStation?
Is there any way, by using some kind of MIDI control foot pedal, that Logic can be used as a loop station (a la BOSS RC-20 or new 50) in a live setting? I am considering the new Boss loop pedal but I've always wondered if I already had the capability
-
Add an autoincrement column to a populated table
Hi I have a large table say test. I want to add a new column and populate this column with row number. How do I do it? I was thinking that I could create a new table with id as column and populate it with numbers from 1 to total row number of the tes