VDM-创建了.java
个文件,但是每次编译都失败
从我看来这似乎是一个愚蠢的错误。
堆栈跟踪:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/BusinessPartnerAddress.java:[343,158] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/BusinessPartnerAddress.java:[348,32] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/BusinessPartnerAddress.java:[1124,158] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/BusinessPartnerAddress.java:[1127,32] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/SupplierPurchasingOrganization.java:[209,1074] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/SupplierPurchasingOrganization.java:[209,1088] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/SupplierPurchasingOrganization.java:[646,1074] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/SupplierPurchasingOrganization.java:[646,1088] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/CustomerSalesArea.java:[444,1074] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/CustomerSalesArea.java:[444,1088] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/CustomerSalesArea.java:[1028,1074] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/CustomerSalesArea.java:[1028,1088] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/BusinessPartnerContactAddress.java:[342,158] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/BusinessPartnerContactAddress.java:[347,32] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/BusinessPartnerContactAddress.java:[1090,158] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/BusinessPartnerContactAddress.java:[1093,32] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/BusinessPartner.java:[450,240] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/BusinessPartner.java:[1484,240] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/Supplier.java:[435,240] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/Supplier.java:[1007,240] unmappable character for encoding UTF-8
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/SupplierPurchasingOrganization.java:[54,8] com.sap.cloud.s4hana.examples.vdm.namespaces.businesspartner.SupplierPurchasingOrganization is not abstract and does not override abstract method getEndpointUrl() in com.sap.cloud.sdk.s4hana.datamodel.odata.helper.VdmEntity
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/SupplierPurchasingOrganization.java:[1134,5] method does not override or implement a method from a supertype
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/SupplierPurchasingOrganization.java:[1138,14] cannot find symbol
symbol: method setServicePathForFetch(java.lang.String)
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/SupplierPurchasingOrganization.java:[1175,72] cannot find symbol
symbol: method getServicePathForFetch()
location: class com.sap.cloud.s4hana.examples.vdm.namespaces.businesspartner.SupplierPurchasingOrganization
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/SupplierPurchasingOrganization.java:[1181,43] cannot find symbol
symbol: method getServicePathForFetch()
location: class com.sap.cloud.s4hana.examples.vdm.namespaces.businesspartner.SupplierPurchasingOrganization
[ERROR] /C:/Users/armoghan.abbas/eclipse-workspace/Extensibility/application/target/vdm/com/sap/cloud/s4hana/examples/vdm/namespaces/businesspartner/SupplierPurchasingOrganizationField.java:[45,9] constructor EntityField in class com.sap.cloud.sdk.s4hana.datamodel.odata.helper.EntityField<EntityT,FieldT> cannot be applied to given types;
required: java.lang.String
found: java.lang.String,com.sap.cloud.sdk.typeconverter.TypeConverter<FieldT,capture#1 of ?>
reason: actual and formal argument lists differ in length
答案 0 :(得分:4)
感谢您的回应,我使用的是较旧版本的sdk,该版本与pom.xml中的版本有所不同(由复制提供),问题已解决,我切换到了最新版本的sdk。