Java uses the com.jacob package and runs normally in the Windows 10 development environment, but throws an exception in Windows server 2008.

Java uses the com.jacob package and runs normally in the Windows 10 development environment, but throws an exception in Windows server 2008. com.jacob.com.ComFailException: Invoke of: AudioOutputStream Source: Description: com.jacob.com.ComFailException: Invoke of: AudioOutputStream Source: Description: at com.jacob.com.Dispatch.invokev(Native Method) at com.jacob.com.Dispatch.invokev(Dispatch.java:625) at com.jacob.com.Dispatch.invoke(Dispatch.java:498) at com.jacob.com.Dispatch.putRef(Dispatch.java:819) at net.bjnblh.dc.textToSpeech.service.MSTTSSpeech.saveToWav(MSTTSSpeech.java:274) at net.bjnblh.dc.textToSpeech.service.impl.NoteReadingServiceImpl.makeWavAndReturnUrl(NoteReadingServiceImpl.java:70) at net.bjnblh.dc.textToSpeech.service.impl.NoteReadingServiceImpl.docToHtml(NoteReadingServiceImpl.java:53) at net.bjnblh.dc.textToSpeech.service.impl.NoteReadingServiceImpl$$FastClassBySpringCGLIB$$9c509776.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) […]

ByteD2: A thread in the thread pool throws an exception, how to deal with it?

Welcome to join Xiaoha’s Planet, you will get: Exclusive project practice/Java learning route/One-to-one questions/Learning check-in Currently, I am leading my friends to work on the first project within Planet: Back-end separation blog, hands-on, back-end + front-end full-stack development, explaining the development steps of each function point from 0 to 1. 1v1 Q&A until the project […]

Shiro custom exception cannot be caught and always throws AuthenticationException solution

Problem description After configuring Realm, it is found that the exception thrown in Realm cannot be caught and an AuthenticationException exception is thrown. For example, the token received by the request is invalid, etc., which results in a large number of such exception stack information appearing in the log file. Our system will detect the […]

The custom filter throws an exception and does not use the global custom exception.

Problem description Tips: Describe the problems encountered in the project here: Exceptions thrown by custom filters do not use custom global exceptions Cause analysis: The exception thrown when customizing the filter cannot go to the controller, so it will not go to the custom global exception. {<!– –> “timestamp”: “2023-09-06 16:29:30”, “status”: 500, “error”: “Internal […]

Exception (middle) Create custom exceptions, throw, throws keywords throw exceptions

Article Directory foreword 1. Create a custom exception 2. Throw an exception in the method 1. Use the throw keyword to throw an exception 2. Use the throws keyword to throw an exception Summarize Foreword This article introduces the creation of custom exceptions in Java, so that we can create an exception by ourselves to […]

[JavaSE column 69] throw, throws keywords to achieve elegant exception throwing

Author Homepage: Designer Xiaozheng About the author: 3 years of JAVA full-stack development experience, focusing on JAVA technology, system customization, remote guidance, dedicated to enterprise digital transformation, certified lecturer of CSDN College and Blue Bridge Cloud Course. Main direction: Vue, SpringBoot, WeChat applet This article explains the concept of throwing exceptions in Java, demonstrates the […]