Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problems with the example of callable object

hi all,

I'm doing the example of callable object is on the following link:

I followed it step by step, but it shows me the following errors:

10-oct-2008 12:20:27 /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: gpproy: Build failed for sap.com/gpproy(MyComponents) in variant "default": The Build terminated with errors

Compiling 22 source files to C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66classes

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:218: cannot resolve symbol

ERROR: symbol : class IGPExecutionContext

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: private IGPExecutionContext executionContext;

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:116: cannot resolve symbol

ERROR: symbol : class IGPTechnicalDescription

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IGPTechnicalDescription technicalDescription =

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:117: cannot resolve symbol

ERROR: symbol : variable resourceAccessor

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: GPCallableObjectFactory.createTechnicalDescription("CO_NAME","CO_DESCRIPTION",resourceAccessor,locale);

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:117: cannot resolve symbol

ERROR: symbol : variable GPCallableObjectFactory

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: GPCallableObjectFactory.createTechnicalDescription("CO_NAME","CO_DESCRIPTION",resourceAccessor,locale);

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:119: cannot resolve symbol

ERROR: symbol : class IGPStructureInfo

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IGPStructureInfo input = technicalDescription.getInputStructureInfo();

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:120: cannot resolve symbol

ERROR: symbol : class IGPAttributeInfo

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IGPAttributeInfo userId = input.addAttribute("UserID", IGPAttributeInfo.BASE_STRING);

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:120: cannot resolve symbol

ERROR: symbol : variable IGPAttributeInfo

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IGPAttributeInfo userId = input.addAttribute("UserID", IGPAttributeInfo.BASE_STRING);

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:121: cannot resolve symbol

ERROR: symbol : variable IGPAttributeInfo

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: userId.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:123: cannot resolve symbol

ERROR: symbol : class IGPStructureInfo

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IGPStructureInfo output = technicalDescription.getOutputStructureInfo();

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:125: cannot resolve symbol

ERROR: symbol : class IGPStructureInfo

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IGPStructureInfo userStructure = output.addStructure("User");

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:126: cannot resolve symbol

ERROR: symbol : variable IGPAttributeInfo

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: userStructure.addAttribute("firstName",IGPAttributeInfo.BASE_STRING);

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:127: cannot resolve symbol

ERROR: symbol : variable IGPAttributeInfo

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: userStructure.addAttribute("lastName",IGPAttributeInfo.BASE_STRING);

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:128: cannot resolve symbol

ERROR: symbol : variable IGPAttributeInfo

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: userStructure.addAttribute("phone", IGPAttributeInfo.BASE_STRING);

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:129: cannot resolve symbol

ERROR: symbol : variable IGPAttributeInfo

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: userStructure.addAttribute("fax", IGPAttributeInfo.BASE_STRING);

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:131: cannot resolve symbol

ERROR: symbol : class IGPCOResultStateInfo

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IGPCOResultStateInfo success = technicalDescription.addResultState("Success");

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:134: cannot resolve symbol

ERROR: symbol : class GPInvocationException

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: } catch (GPInvocationException e) {

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:135: cannot resolve symbol

ERROR: symbol : variable Severity

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: logger.logT(Severity.ERROR,Category.APPLICATIONS,"Incorrect technical name");

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:135: cannot resolve symbol

ERROR: symbol : variable Category

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: logger.logT(Severity.ERROR,Category.APPLICATIONS,"Incorrect technical name");

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:136: cannot resolve symbol

ERROR: symbol : variable Severity

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: logger.traceThrowableT(Severity.ERROR,"Exception while creating technical description: ",e);

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:152: cannot resolve symbol

ERROR: symbol : class IGPStructure

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IGPStructure input = executionContext.getInputStructure();

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:156: cannot resolve symbol

ERROR: symbol : class IUserFactory

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IUserFactory factory = UMFactory.getUserFactory();

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:156: cannot resolve symbol

ERROR: symbol : variable UMFactory

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IUserFactory factory = UMFactory.getUserFactory();

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:157: cannot resolve symbol

ERROR: symbol : class IUser

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IUser user = factory.getUserByLogonID(userId);

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:163: cannot resolve symbol

ERROR: symbol : class IGPStructure

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IGPStructure output = executionContext.getOutputStructure();

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:168: cannot resolve symbol

ERROR: symbol : class GPInvocationException

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: } catch (GPInvocationException e) {

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:169: cannot resolve symbol

ERROR: symbol : variable textAccessor

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: String localizedMessage = textAccessor.getText("ERROR_GETTING_PARAMETERS");

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:171: cannot resolve symbol

ERROR: symbol : class GPTechnicalCallableObjectException

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: new GPTechnicalCallableObjectException(logger,localizedMessage,e));

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:172: cannot resolve symbol

ERROR: symbol : class UMException

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: } catch (UMException ex) {

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:173: cannot resolve symbol

ERROR: symbol : variable textAccessor

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: String localizedMessage = textAccessor.getText("USER_NOT_FOUND", new Object[]{userId});

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:175: cannot resolve symbol

ERROR: symbol : class GPTechnicalCallableObjectException

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: new GPTechnicalCallableObjectException(logger,localizedMessage,ex));

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:187: cannot resolve symbol

ERROR: symbol : class IGPStructure

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IGPStructure output = executionContext.getOutputStructure();

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:189: cannot resolve symbol

ERROR: symbol : class IGPStructure

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: IGPStructure user = output.addStructure("User");

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:196: cannot resolve symbol

ERROR: symbol : class GPInvocationException

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: } catch (GPInvocationException e) {

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:197: cannot resolve symbol

ERROR: symbol : variable textAccessor

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: String localizedMessage = textAccessor.getText("ERROR_SETTING_PARAMETERS");

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:199: cannot resolve symbol

ERROR: symbol : class GPTechnicalCallableObjectException

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: new GPTechnicalCallableObjectException(logger,localizedMessage,e));

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:200: cannot resolve symbol

ERROR: symbol : class GPEngineException

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: } catch (GPEngineException e) {

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:201: cannot resolve symbol

ERROR: symbol : variable textAccessor

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: String localizedMessage = textAccessor.getText("INTERNAL_ERROR");

ERROR: ^

ERROR: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java:203: cannot resolve symbol

ERROR: symbol : class GPTechnicalCallableObjectException

ERROR: location: class com.sap.examples.wdpco.CUserDetailsInterface

ERROR: new GPTechnicalCallableObjectException(logger,localizedMessage,e));

ERROR: ^

WARNING: Note: C:Documents and Settingspumaña.dtcLocalDevelopment E4428F8A2F74778EDA892A5549EC2C66gen_wdppackagescomsapexampleswdpcoCUserDetailsInterface.java uses or overrides a deprecated API.

WARNING: Note: Recompile with -deprecation for details.

38 errors

This part of the errors that shows, here I leave them a picture of my NWDS with errors

image

thanks!

Former Member
Not what you were looking for? View more on this topic or Ask a question