Android Studio plays video and audio files and solves the project error java.lang.RuntimeException: java.io.IOException: setDataSource failed.

1: Use MediaPlayer to play audio files to achieve play, pause, and replay functions. 1. Create a new blank project MediaPlayer, create a new directory raw under res, and put music.mp3 into the raw directory, as shown in the following figure: 2.activity_main.xml Use linear layout LinearLayout, arrange vertically android:orientation=”vertical”, and place three buttons. The code […]

RuntimeException and Exception in Java

In Java’s exception class system, Error and RuntimeException are unchecked exceptions, and others are checked exceptions. All methods can throw RuntimeException and its subclasses without declaring throwsNon-RuntimeException cannot be thrown without declarationSimply put, non-RuntimeException must be handled by writing a catch block yourself. RuntimeException will cause the program to be interrupted if it is not […]

FlinkFlinkRuntimeException: Cannot read the binlog filename and position via ‘SHOW MASTER STATUS’

Execute flinkcdc to report an error Error details: io.debezium.DebeziumException: org.apache.flink.util.FlinkRuntimeException: Cannot read the binlog filename and position via ‘SHOW MASTER STATUS’. Make sure your server is correctly configured at com.ververica.cdc.connectors.mysql.debezium.task.MySqlSnapshotSplitReadTask.execute(MySqlSnapshotSplitReadTask.java:120) at com.ververica.cdc.connectors.mysql.debezium.reader.SnapshotSplitReader.lambda$submitSplit$0(SnapshotSplitReader.java:130) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) at java.util.concurrent.FutureTask.run(FutureTask.java) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.flink.util.FlinkRuntimeException: Cannot read the binlog filename and position via […]

Solved java.lang.RuntimeException: java.lang.RuntimeException: org.codehaus.plexus.compon (with maven download and configuration method)

In the grain mall project, a maven problem was encountered in the process of aggregating services in the idea. Solution: After changing the maven path, mirror address, and jdk version, I found that it was not just a maven configuration problem (the root logo was also displayed in gulimall-member), so I deleted the wrong branch […]

io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 4.999895300s

Description of the problem Recently, I encountered a problem of Grpc calling in the project, which has not been solved for a long time. The scene is like this: The Java program calls the C++ service through Grpc, and there are interfaces between multiple modules in Java to communicate through Grpc. When the Grpc service […]

Hive reports java.lang.RuntimeException: Map operator initialization failed

Hive reports java.lang.RuntimeException: Map operator initialization failed java.lang.RuntimeException: java.lang.RuntimeException: Map operator initialization failed at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor(TezProcessor.java:296) at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.run(TezProcessor.java:250) at org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOProcessorRuntimeTask.java:381) at org.apache.tez.runtime.task.TaskRunner2Callable$1.run(TaskRunner2Callable.java:75) at org.apache.tez.runtime.task.TaskRunner2Callable$1.run(TaskRunner2Callable.java:62) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1729) at org.apache.tez.runtime.task.TaskRunner2Callable.callInternal(TaskRunner2Callable.java:62) at org.apache.tez.runtime.task.TaskRunner2Callable.callInternal(TaskRunner2Callable.java:38) at org.apache.tez.common.CallableWithNdc.call(CallableWithNdc.java:36) at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57) at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: Map operator initialization failed […]

java.lang.RuntimeException: java.sql.SQLException: Cannot create com.iflytek.bms.domain.ChatObject:

Question Jdbc performs data query, and the console terminal reports an error java.lang.RuntimeException: java.sql.SQLException: Cannot create com.iflytek.bms.domain.ChatObject: com.iflytek.bms.domain.ChatObject Query: SELECT * FROM chatobject where myId = ? Parameters: [2 ] Detailed error author query statement @Override public List<ChatObject> selectChatObjectByMyId(Integer myId) {<!– –> String sql = “SELECT * FROM chatobject where myId = ?”; try {<!– […]

[Java Exception System] (3) Analysis of RuntimeException in the exception system…

RuntimeException in Java exception system 1. RuntimeException 1. ArithmeticException Mathematical operation exception 2. ConcurrentModificationException concurrent modification exception 3. ClassCastException class conversion exception 4. ClassNotFoundException class not found exception 5. IllegalArgumentException Illegal parameter exception 6. IndexOutOfBoundsException index out of bounds exception 7. MissingResourceException resource missing exception 8. NoSuchElementException element missing exception 9. NullPointerException null pointer exception […]

io.grpc.StatusRuntimeException: CANCELLED: io.grpc.Context was canceled without error

May 17, 2023 2:00:44 PM io.grpc.netty.shaded.io.grpc.netty.NettyServerHandler onHeadersRead WARNING: Expected header TE: trailers, but null is received. This means some intermediate proxy may not support trailers 2023-05-17 14:00:44,842 INFO [grpc-default-executor-3] PopulationFaceServiceImpl-save req:face_url: “rj-resident/face/1684303242444.jpg” people_id: “355521113008173375” 2023-05-17 14:01:14,829 ERROR [grpc-default-executor-3] PopulationFaceServiceImpl-save exception info io.grpc.StatusRuntimeException: CANCELLED: io.grpc.Context was canceled without error at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:262) ~[grpc-stub-1.31.1.jar!/:1.31.1] at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:243) ~[grpc-stub-1.31.1.jar!/:1.31.1] at […]