小编san*_*eep的帖子

添加可选参数后System.MissingMethodException

我在一个组件中有一个可选参数之后得到System.MissingMethodException的错误,并且调用它的另一个组件没有构建,因为它使用旧的参数调用它.

只有添加了参数的组件才会构建部署为补丁.调用组件是旧的,因为它没有变化.

当调用组件运行时,它会给出错误:

例外信息

异常类型:System.MissingMethodException消息:找不到方法:'LabelURLs IPSD.BnB.Transaction.Postage.GetLabelURLs(System.String)'.数据:System.Collections.ListDictionaryInternal TargetSite:Void GenerateScanForm(Int32,Int32)HelpLink:NULL源:BnBDispenseQueueProcess

据我所知,它不应该引发错误,因为新参数是可选的.还有一件事是调用组件(EXE)作为Windows服务运行.

我们找到了一个非常有线的解决方法来让它运行.通过删除更改的组件一次并运行调用组件,它将说找不到DLL.再次放置相同的DLL并调用组件工作正常:).

我想我错过了.net的一些内部.

如果需要更多信息,请告诉我.

.net c# missingmethodexception optional-parameters vb.net-2010

24
推荐指数
1
解决办法
7762
查看次数

Spring批量仅限制单个作业实例

我有一个春季批处理作业,可以通过休息URL踢.我想确保只允许一个作业实例运行.如果另一个实例已经运行,那么不要启动另一个 即使参数不同.

我搜查了一下,没有找到任何解决方案.考虑扩展SimpleJobLauncher.检查作业的任何实例是否正在运行.

java spring-batch

8
推荐指数
2
解决办法
7545
查看次数

Camel无法选择0字节文件

我已配置camel从ftp中选择文件.但是如果放置任何空文件,它将无法选择它并连续记录同一事件:

2015-07-14 19:53:11,005 WARN  [org.apache.camel.component.file.remote.strategy.FtpChangedExclusiveReadLockStrategy] (Camel (camel-1) thread #0 - ftp://abc.com/responsefiles) Cannot acquire read lock within 20000 millis. Will skip the file: RemoteFile[REFUND07102015.141730.csv]
Run Code Online (Sandbox Code Playgroud)

我的骆驼配置是:

sftp://[servername]/responsefiles?username=[username]&password=[password]&readLock=changed&readLockCheckInterval=5000&noop=false&preMove=.processing&move=.done
Run Code Online (Sandbox Code Playgroud)

file-io sftp apache-camel

5
推荐指数
1
解决办法
1360
查看次数

弹簧批次集成1.2.2与弹簧批次2.2.2不兼容

我有一个春季批量项目,它正在运行良好的旧版本:

  • 春季3.1.2.RELEASE
  • 春季批次2.1.9.RELEASE
  • spring-batch-integration 1.2.0.RELEASE

当我升级所有依赖项新版本的版本时,它停止工作:

  • 春天3.2.5.RELEASE
  • 春季批次2.2.2.RELEASE
  • spring-batch-integration 1.2.2.RELEASE

应用程序日志说:

Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.integration.config.ServiceAct ivatorFactoryBean#0': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/batch/retry/RetryException
Run Code Online (Sandbox Code Playgroud)

从2.2.0开始,重试功能从Spring Batch中撤出.它现在是Spring Retry新库的一部分.但是spring-batch-integration是指较旧的spring-batch并导致此错误.class ChunkProcessorChunkHandler有import语句import org.springframework.batch.retry.RetryException;

我想知道如何克服这个错误?是否有任何新版本的spring-batch-integration的计划.

java spring spring-integration spring-batch

3
推荐指数
1
解决办法
503
查看次数

单页中使用 Angular 元素开发的多个自定义元素

我在不同的 Angular 元素项目中开发了 2 个自定义元素,当我尝试在单个 html 中使用它们时,出现错误“无法在‘CustomElementRegistry’上执行‘定义’:此名称已与此注册表一起使用”如何关注此链接开发https://medium.freecodecamp.org/how-to-create-angular-6-custom-elements-web-components-c88814dc6e0a

我知道它与加载两次打包在两个自定义元素中的库有关。如何解决这个问题?

谢谢

custom-element angular angular-elements

2
推荐指数
1
解决办法
7090
查看次数