Tag: runtimeexception

Application.Evaluate运行时错误types不匹配

我正在遇到这种运行时错误types不匹配在VBA下面的函数调用 Dim sTest As String sTest = "=Search(" & Chr(34) & "MyString" & Chr(34) & Chr(44) & "A2" & ")>0" ''the above evaluates to =Search("MyString",A2)>0 Application.Evaluate(sTest) 所以评估函数抛出一个运行时错误types不匹配 我试过了 sTest = "=Search(" & Chr(34) & "MyString" & Chr(34) & Chr(44) & Chr(34) "Test MyString" & Chr(34) ")>0" 还是一样的错误 当我在Excel的公式栏中使用上面的string,它的工作原理! 我试过了 sTest = "=Search(""MyString"", ""Test MyString"")>0" 它在VBA中工作 […]

java.lang.NoClassDefFoundError:org / apache / poi / ss / usermodel / Workbook

我使用maven来pipe理我的web项目依赖项。 我将apache poi依赖添加到我的pom文件中。 它在编译时不显示错误。 但是当它运行时,它会在我的MainApplication()类中抛出RuntimeException。 而它给出了java.lang.NoClassDefFoundError:org / apache / poi / ss / usermodel / Workbook 我有一个MainApplication类。 public class MainApplication extends Application { private Set<Class<?>> classes = new HashSet<Class<?>>(); HashSet<Object> singletons = new HashSet<Object>(); public MainApplication() { try { ClassPathXmlApplicationContext springContext = new ClassPathXmlApplicationContext("applicationContext.xml"); singletons.add(springContext.getBean("transformService", DataTransformService.class)); } public Set<Class<?>> getClasses() { return classes; } protected […]