点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)您好, 我们有一个自定义的发票...
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)您好, 我们有一个自定义的发票...
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
您好,
我们有一个自定义的发票实现,我正在尝试使用以下表达式:
我在服务器启动过程中看到以下错误,
2018-04-30 16:44:38,059 [DEBUG] [chdeliCanonicalModelLoader]加载规范属性Attribute {name ='documentType',model = null,transforms = Transformations {transformation = [Transformation {rawSource ='RawINVOIC', expression ='Expression {value ='#root.getField('E1EDK14-QUALF')=='015'吗? #root.getField('E1EDK14-ORGID'):null',spel ='true'},覆盖='false,disabled ='false}]}} 2018-04-30 16:44:38,060 [DEBUG] [chdeli CanonicalModelLoader]创建属性TransformationCanonicalTransformationData {rawItemType ='RawINVOIC',expression ='#root.getField('E1EDK14-QUALF')=='015'吗? #root.getField('E1EDK14-ORGID'):null',override ='false',disabled ='false',spel ='true'} 2018-04-30 16:44:38,100 [ERROR] [chdeliDefaultExtensionLoaderService] 无法在com.hybris.datahub.validation.AbstractValidator处加载扩展名XXXXXXInvoiceHistory-raw com.hybris.datahub.validation.ValidationException:[ValidationFailure {FATAL,rawAttribute:"无法修改规范属性转换CanonicalInvoiceHistory,documentType,RawINVOIC"}}。 (AbstractValidator.java:32)〜[datahub-service-6.6.0.0-RC4.jar:6.6.0.0-RC4] at com.hybris.datahub.facade.metadata.DefaultTransformationItemClassFacade.createNewAttribute(DefaultTransformationItemClassFacade.java:42)〜[ datahub-service-6.6.0.0-RC4.jar:6.6.0.0-RC4]在com.hybris.datahub.facade.metadata.DefaultTransformationItemClassFacade.createNewAttribute(DefaultTransformationItemClassFacade.java:32)〜[datahub-service-6.6.0.0-RC4 .jar:6.6.0.0-RC4],位于com.hybris.datahub.facade.metadata.AbstractItemClassFacade.createAttribute(A bstractItemClassFacade.java:36)〜[datahub-service-6.6.0.0-RC4.jar:6.6.0.0-RC4]在sun.reflect.GeneratedMethodAccessor222.invoke(未知源)〜[na:na]在sun.reflect.DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:43)〜[na:1.8.0_151]在java.lang.reflect.Method.invoke(Method.java:498)〜[na:1.8.0_151]在org.springframework.aop.support .orgoptil.invokeJoinpointUsingReflection(AopUtils.java:333)〜[spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) 〜[spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)〜[spring-aop-4.3.11.RELEASE .jar:4.3.11.RELEASE],位于org.springframework.transaction.interceptor.TransactionInterceptor $ 1.proceedWithInvocation(TransactionInterceptor.java:99)〜[spring-tx-4.3.11.RELEASE.jar:4.3.11.RELEASE] org.springframework.transaction.in terceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)〜[spring-tx-4.3.11.RELEASE.jar:4.3.11.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96 )〜[spring-tx-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)〜[spring-aop-4.3.11。 在org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)〜[spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE]中的RELEASE.jar:4.3.11.RELEASE] com.sun.proxy。$ Proxy180.createAttribute(未知来源)〜[na:na] at com.hybris.datahub.extension.load.impl.CanonicalModelLoader.loadAttributeTransformations(CanonicalModelLoader.java:104)〜[datahub-extension-loader -6.6.0.0-RC4.jar:6.6.0.0-RC4],位于com.hybris.datahub.extension.load.impl.CanonicalModelLoader.createCanonicalAttribute(CanonicalModelLoader.java:90)〜[datahub-extension-loader-6.6.0.0- RC4.ja r:6.6.0.0-RC4],位于com.hybris.datahub.extension.load.impl.CanonicalModelLoader.lambda $ loadCanonicalItemType $ 0(CanonicalModelLoader.java:59)〜[datahub-extension-loader-6.6.0.0-RC4.jar: 6.6.0.0-RC4]在java.util.ArrayList.forEach(ArrayList.java:1255)〜[na:1.8.0_151]在com.hybris.datahub.extension.load.impl.CanonicalModelLoader.loadCanonicalItemType(CanonicalModelLoader.java: 59)〜[datahub-extension-loader-6.6.0.0-RC4.jar:6.6.0.0-RC4] at java.util.ArrayList.forEach(ArrayList.java:1255)〜[na:1.8.0_151] at com。 hybris.datahub.extension.load.impl.CanonicalModelLoader.loadCanonicalItems(CanonicalModelLoader.java:46)〜[datahub-extension-loader-6.6.0.0-RC4.jar:6.6.0.0-RC4]在com.hybris.datahub.extension .load.impl.DefaultExtensionImportService.loadExtension(DefaultExtensionImportService.java:44)〜[datahub-extension-loader-6.6.0.0-RC4.jar:6.6.0.0-RC4] at sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)〜 [na:1.8.0_151]位于sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp l.java:62)〜[na:1.8.0_151] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)〜[na:1.8.0_151] at java.lang.reflect.Method.invoke(Method。 java:498)〜[na:1.8.0_151] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)〜[spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE ]在org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)〜[spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.aop.framework.ReflectiveMethodInvocation .proceed(ReflectiveMethodInvocation.java:157)〜[spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.transaction.interceptor.TransactionInterceptor $ 1.proceedWithInvocation(TransactionInterceptor.java:99)〜 [spring-tx-4.3.11.RELEASE.jar:4.3.11.RELEASE]位于org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)〜[spring-tx-4.3.11.RELEASE。 罐子:4 .3.11.RELEASE]在org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)〜[spring-tx-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.aop .framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)〜[spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java: 213)〜[spring-aop-4.3.11.RELEASE.jar:4.3.11.RELEASE]在com.sun.proxy。$ Proxy186.loadExtension(未知源)〜[na:na]在com.hybris.datahub。 extension.load.impl.DefaultExtensionLoaderService.loadExtension(DefaultExtensionLoaderService.java:86)〜[datahub-extension-loader-6.6.0.0-RC4.jar:6.6.0.0-RC4]在java.util.Iterator.forEachRemaining(Iterator.java) :116)〜[na:1.8.0_151] at java.util.Spliterators $ IteratorSpliterator.forEachRemaining(Spliterators.java:1801)〜[na:1.8.0_151] at java.util.stream.ReferencePipeline $ Head.forEachOrdered(ReferencePipeline .java:590)〜[na:1.8.0_151] at com .hybris.datahub.extension.load.impl.DefaultExtensionLoaderService.loadExtensionsInOrder(DefaultExtensionLoaderService.java:78)〜[datahub-extension-loader-6.6.0.0-RC4.jar:6.6.0.0-RC4]位于com.hybris.datahub。 extension.load.impl.DefaultExtensionLoaderService.loadExtensions(DefaultExtensionLoaderService.java:71)〜[datahub-extension-loader-6.6.0.0-RC4.jar:6.6.0.0-RC4]位于com.hybris.datahub.extension.load.impl .DefaultExtensionLoaderService.loadExtensionsFromClasspath(DefaultExtensionLoaderService.java:44)〜[datahub-extension-loader-6.6.0.0-RC4.jar:6.6.0.0-RC4]位于com.hybris.datahub.spring.ContextRefreshedEventListener.onApplicationEvent(ContextRefreshedEventListener.java: 43)com.hybris.datahub.spring.ContextRefreshedEventListener.onApplicationEvent(ContextRefreshedEventListener.java:25)上的[classes/:na] org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster。 java:172)〜[spring-context-4.3.11.RELEASE.jar:4.3.11.R ELEASE]在org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)〜[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.context.event。 SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)〜[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)〜 org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)上的[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]〜[spring-context-4.3.11.RELEASE。 jar:4.3.11.RELEASE]在org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883)〜[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org。 springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)〜[spring-con text-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)〜[spring-web-4.3.11.RELEASE.jar:4.3 .11.RELEASE]在org.springframework.web.org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)〜[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE] .context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)〜[spring-web-4.3.11.RELEASE.jar:4.3.11.RELEASE]在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java: 5068)在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)〜[catalina.jar:7.0.68]在org.apache.catalina.util处的[catalina.jar:7.0.68]。 LifecycleBase.start(LifecycleBase.java:147)〜[catalina.jar:7.0.68] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)〜[catalina.jar:7.0.68] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)〜[c atalina.jar:7.0.68]在org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)〜[catalina.jar:7.0.68]在org.apache.catalina.startup.HostConfig.deployWAR( HostConfig.java:1091)〜[catalina.jar:7.0.68] at org.apache.catalina.startup.HostConfig $ DeployWar.run(HostConfig.java:1980)〜[catalina.jar:7.0.68] at java。 util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)〜[na:1.8.0_151] at java.util.concurrent.FutureTask.run(FutureTask.java:266)〜[na:1.8.0_151] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)〜[na:1.8.0_151] at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)〜[na:1.8.0_151 ] at java.lang.Thread.run(Thread.java:748)〜[na:1.8.0_151]
如果要从中获取CanonicalItem的属性值 仅当E1EDK14-QUALF等于015时E1EDK14-ORGID段,否则为null,使用
的第一种方法应适用于以下SPEL表达式:
但是,如果仅当E1EDK14-QUALF段等于015时才想组成CanonicalItems,则需要编写CompositionHandler来实现。
一周热门 更多>