cancel
Showing results for 
Search instead for 
Did you mean: 

NC Log Complete webservice error

olivier_thiry
Participant
0 Kudos

Hello,

Before opening an OSS message, the rule is first ask the forum...

So I have trouble with NC Log Complete webservice. When trying to invoke it from SOAP UI, I got the following error :

No enum const class com.sap.me.nonconformance.ScrapOption

When looking into the log, I see a nice Java dump, here is an extract...

[EXCEPTION]

javax.ejb.EJBException: (Failed in component: sap.com/meear) Exception raised from invocation of public com.sap.me.frame.Data com.sap.me.xchange.ProductionFacadeSOBean.processNCLogCompleteMessage(com.sap.me.frame.Data,com.sap.me.frame.Data) throws com.sap.me.frame.BasicBOBeanException method on bean instance com.sap.me.xchange.ProductionFacadeSOBean@4e115fd7 for bean sap.com/meearxml|me.integration.xml.ejb-5.2.5.8-Base.jarxml|ProductionFacadeSO in application sap.com/me~ear.; nested exception is: com.sap.me.frame.mapping.data.MappingException: java.lang.reflect.InvocationTargetException

....

Caused by: java.lang.IllegalArgumentException: No enum const class com.sap.me.nonconformance.ScrapOption.

at java.lang.Enum.valueOf(Enum.java:196)

at com.sap.me.nonconformance.ScrapOption.valueOf(ScrapOption.java:33)

at com.sap.me.nonconformance.ScrapOption.fromValue(ScrapOption.java:44)

... 121 more

Anyone has an idea ?

If I submit the request though the production XML jsp page, with same parameter as in my SOAP UI request, it's ok.

We are using ME 5.2.5.8.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

What is the value of the scrap option that you pass in from the webservice and from the production XML?

Thanks,

Mikhail

olivier_thiry
Participant
0 Kudos

Hi Mikhail

I don't pass any scrap option, and I don't see any "scrap option" field in the WS definition...

I see a ScrapComponentOption, but which is optional as I can see in the "documentation" (example will be nice anyway in the document)

<me:ScrapComponentOption>

When the disposition function Scrap is selected or a Scrap step is selected, this is the selected scrap option. Required if disposition function or selected step is a scrap step with multiple scrap options and components are assembled onto the current SFC.

It's not clear what should go there and if I need to put something in...

I know the request is quite complex and will not be displayed in a friendly format, but here it is...

<br><br>

&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT"&gt;

&lt;soapenv:Header/&gt;

&lt;soapenv:Body&gt;

&lt;me:NCLogCompleteRequest_sync&gt;

&lt;!Optional:&gt;

&lt;me:MessageHeader&gt;&lt;/me:MessageHeader&gt;

&lt;me:NCLogCompleteRequest&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;me:NcIncidentDone&gt;

&lt;me:ActivityRef&gt;

&lt;!Optional:&gt;

&lt;me:Activity languageCode="?"&gt;GYFFL2_NC&lt;/me:Activity&gt;

&lt;/me:ActivityRef&gt;

&lt;!Optional:&gt;

&lt;me:DateTime timeZoneCode="?" daylightSavingTimeIndicator="?"&gt;2011-03-25T14:51:01.001Z&lt;/me:DateTime&gt;

&lt;!Optional:&gt;

&lt;me:ResourceRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;me:Resource schemeID="?" schemeAgencyID="?"&gt;C28L&lt;/me:Resource&gt;

&lt;/me:ResourceRef&gt;

&lt;!Optional:&gt;

&lt;!Optional:&gt;

&lt;me:TotalDefectCount unitCode="?"&gt;1&lt;/me:TotalDefectCount&gt;

&lt;!Optional:&gt;

&lt;me:ScrapComponentOption languageCode="?"/&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;!Optional:&gt;

&lt;me:NcBeginDateTime timeZoneCode="?" daylightSavingTimeIndicator="?"&gt;2011-03-25T14:51:01.001Z&lt;/me:NcBeginDateTime&gt;

&lt;!Optional:&gt;

&lt;me:NcCodeRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;me:NcCode languageCode="?"&gt;C11701&lt;/me:NcCode&gt;

&lt;/me:NcCodeRef&gt;

&lt;me:NcContext&gt;

&lt;!Optional:&gt;

&lt;me:SfcRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;me:Sfc&gt;6940855067&lt;/me:Sfc&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;/me:SfcRef&gt;

&lt;/me:NcContext&gt;

&lt;!1 or more repetitions:&gt;

&lt;me:NcData&gt;

&lt;!You may enter the following 4 items in any order&gt;

&lt;me:SfcRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;me:Sfc&gt;6940855067&lt;/me:Sfc&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;/me:SfcRef&gt;

&lt;me:UserRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;me:UserId&gt;NGIE602&lt;/me:UserId&gt;

&lt;/me:UserRef&gt;

&lt;me:Sequence unitCode="?"/&gt;

&lt;me:IncidentDateTime timeZoneCode="?" daylightSavingTimeIndicator="?"&gt;2011-03-25T14:51:01.001Z&lt;/me:IncidentDateTime&gt;

&lt;/me:NcData&gt;

&lt;me:NcEndDateTime timeZoneCode="?" daylightSavingTimeIndicator="?"&gt;2011-03-25T14:51:01.001Z&lt;/me:NcEndDateTime&gt;

&lt;me:NcOwner&gt;

&lt;!Optional:&gt;

&lt;me:ResourceRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;me:Resource schemeID="?" schemeAgencyID="?"&gt;C28L&lt;/me:Resource&gt;

&lt;/me:ResourceRef&gt;

&lt;!Optional:&gt;

&lt;me:UserRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;me:UserId&gt;NGIE602&lt;/me:UserId&gt;

&lt;/me:UserRef&gt;

&lt;/me:NcOwner&gt;

&lt;/me:NcIncidentDone&gt;

&lt;me:NcLog&gt;

&lt;!Optional:&gt;

&lt;me:ActivityRef&gt;

&lt;!Optional:&gt;

&lt;me:Activity languageCode="?"&gt;GYFFL2_NC&lt;/me:Activity&gt;

&lt;/me:ActivityRef&gt;

&lt;!Optional:&gt;

&lt;me:Component&gt;

&lt;!You may enter the following 3 items in any order&gt;

&lt;me:Item&gt;SL-CT00035&lt;/me:Item&gt;

&lt;!Optional:&gt;

&lt;me:Revision&gt;0010&lt;/me:Revision&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;/me:Component&gt;

&lt;me:ComponentSfc&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;me:Sfc&gt;6940855067&lt;/me:Sfc&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;/me:ComponentSfc&gt;

&lt;!Optional:&gt;

&lt;me:DateTime timeZoneCode="?" daylightSavingTimeIndicator="?"&gt;2011-03-25T14:51:01.001Z&lt;/me:DateTime&gt;

&lt;!Optional:&gt;

&lt;me:DefectCount unitCode="?"&gt;1&lt;/me:DefectCount&gt;

&lt;!Optional:&gt;

&lt;!Optional:&gt;

&lt;me:FailureId languageCode="?"&gt;CURED&lt;/me:FailureId&gt;

&lt;!Optional:&gt;

&lt;me:NcCodeRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;me:NcCode languageCode="?"&gt;C11701&lt;/me:NcCode&gt;

&lt;/me:NcCodeRef&gt;

&lt;me:NcContext&gt;

&lt;!Optional:&gt;

&lt;me:SfcRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;me:Sfc&gt;6940855067&lt;/me:Sfc&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;/me:SfcRef&gt;

&lt;/me:NcContext&gt;

&lt;me:NcCustomData&gt;

&lt;me:Attribute languageCode="?"&gt;CLASSIFICATION&lt;/me:Attribute&gt;

&lt;me:Value languageCode="?"&gt;SCRAP&lt;/me:Value&gt;

&lt;/me:NcCustomData&gt;

&lt;me:NcCustomData&gt;

&lt;me:Attribute languageCode="?"&gt;DISPOSITION_GROUP&lt;/me:Attribute&gt;

&lt;me:Value languageCode="?"&gt;ALL&lt;/me:Value&gt;

&lt;/me:NcCustomData&gt;

&lt;me:NcCustomData&gt;

&lt;me:Attribute languageCode="?"&gt;DISPOSITION_TYPE&lt;/me:Attribute&gt;

&lt;me:Value languageCode="?"&gt;S&lt;/me:Value&gt;

&lt;/me:NcCustomData&gt;

&lt;me:NcOwner&gt;

&lt;!Optional:&gt;

&lt;me:ResourceRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;me:Resource schemeID="?" schemeAgencyID="?"&gt;C28L&lt;/me:Resource&gt;

&lt;/me:ResourceRef&gt;

&lt;!Optional:&gt;

&lt;me:UserRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;me:UserId&gt;NGIE602&lt;/me:UserId&gt;

&lt;/me:UserRef&gt;

&lt;/me:NcOwner&gt;

&lt;me:OperationRef&gt;

&lt;!You may enter the following 3 items in any order&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;me:Operation&gt;PRS&lt;/me:Operation&gt;

&lt;me:Revision&gt;A&lt;/me:Revision&gt;

&lt;/me:OperationRef&gt;

&lt;!Optional:&gt;

&lt;!Optional:&gt;

&lt;me:Quantity&gt;1&lt;/me:Quantity&gt;

&lt;!Optional:&gt;

&lt;me:ResourceRef&gt;

&lt;!You may enter the following 2 items in any order&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;me:Resource schemeID="?" schemeAgencyID="?"&gt;C28L&lt;/me:Resource&gt;

&lt;/me:ResourceRef&gt;

&lt;!Optional:&gt;

&lt;me:SiteRef&gt;

&lt;me:Site&gt;SISL&lt;/me:Site&gt;

&lt;/me:SiteRef&gt;

&lt;/me:NcLog&gt;

&lt;/me:NCLogCompleteRequest&gt;

&lt;/me:NCLogCompleteRequest_sync&gt;

&lt;/soapenv:Body&gt;

&lt;/soapenv:Envelope&gt;

<br><br>Thanks

olivier_thiry
Participant
0 Kudos

I fixed my mistake, removing this tag : <BR><br>

&lt;me:ScrapComponentOption languageCode="?"/&gt;

<Br><br>

Now no more java dump...

Thanks for your (indirect) help, it guided me to find my error

Former Member
0 Kudos

Just in case, here are the values you can use for the ScrapComponentOption:

SCRAP_PARENT,

SCRAP_ALL,

SCRAP_AND_RETURN_COMP

I am glad you figured out the issue. You can still submit a ticket stating that the error message is obscure.

Thanks,

Mikhail