Category Archives: Error

How to Sovle expdp/impdp Data Pump Error

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at “SYS.UTL_FILE”, line 536
ORA-29283: invalid file operation

Cause: Oracle failed to read the default backup directory

Solution:

1. Recreate the logical directory with an administrator such as system (if you want to have the same name as the original logical directory, you need to delete the directory and recreate it first)

Create directory mydata as’ logical directory path ‘;

For example: create directory mydata as’/data/Oracle/mydata ‘;

Delete directory:   drop directory   mydata

2. Check whether the logical directory is created successfully

select * from dba_directories

3. Re expdp export or impdp import data. If the default logical directory used before needs to specify the directory

impdp system/ ddddd@orcl remap_schema=mydb:testdb   directory=mydata DUMPFILE=data1.dmp table_exists_action=replace

How to Solve Altium designer Rule Check Without an Error Issue

Today, I found my ad lying flat on the drawing board. No matter how inhumane I operate, I won’t display a green fork to report an error.

Reason 1: press the shortcut key D + R to check whether enable in rules and constraints is checked

Reason 2: the shortcut key t + D determines whether all rules in the rules to check of the rule checker are online. My ad doesn’t know when the online tick is gone, so the rule checker directly fishes, resulting in no error reporting.

[Solved] Pytorch loading model specified GPU card number error or failed to specify

According to the pytorch document, when loading the model, you can specify to load the tensor of the model to a specific target GPU
the loading methods are:

>>> torch.load('tensors.pt')
# 1. Load all tensors onto the GPU 0
>>> torch.load('tensors.pt', map_location=torch.device('cuda:0'))
# 2. Load all tensors onto GPU 1
>>> torch.load('tensors.pt', map_location=lambda storage, loc: storage.cuda(1))
# 3. Map tensors from GPU 1 to GPU 0
>>> torch.load('tensors.pt', map_location={'cuda:1':'cuda:0'})

The actual measurement shows that
method 1 is not loaded into the target card at all. The original card on which the model was trained is still loaded into the original old card number, so the assignment fails
in method 3, errors are reported between codes. Location. Startswitch (‘cuda ‘): attributeerror:’ nonetype ‘object has no attribute’ startswitch ‘. After analyzing the code, it is found that this is a bug of torch itself! Pit father
method 2: normally load the tensors on cuda1.

Kafka Creates and Writes Logs Error [How to Solve]

Kafka creates and writes logs with an error

Running bin\windows\kafka-server-start.bat config\server.properties reports an error when creating logs, but viewing the directory file has been created successfully. Error reason: no permission.

Solution: modify the folder permissions

Run bin\windows\kafka-server-start.bat config\server.properties to report an error when creating logs, but check that the directory file has been created successfully

Error reporting reason: no permission

Solution: modify folder permissions

How to Solve AOP error in Spring

Error Messages:

java.lang.NoSuchMethodError: org.springframework.aop.scope.ScopedProxyUtils.isScopedTarget(java/lang/String;)Z

at org.springframework.context.event.EventListenerMethodProcessor.afterSingletonsInstantiated(EventListenerMethodProcessor.java:79)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:781)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.wt.test.AopTest.test1(AopTest.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)。

Solution:

Upgrade the AOP dependency in POM. It must be above version 4.0

 <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-aop</artifactId>
      <version>4.2.2.RELEASE</version>
    </dependency>

[Solved] VirtualBox + Vagrant Error: VirtualBox host only Ethernet adapter

VirtualBox and vagrant are installed in the win10 system, but the virtual machine cannot be started when it is started later. The error code “VirtualBox host only Ethernet adapter” appears

Solution:

In the control panel = => network and Internet = => network and sharing center = => change adapter settings = => there is a VirtualBox host only Ethernet adapter inside. After finding it, disable it first, and then right-click the properties to find the VirtualBox ndis6 bridged networking driver, uncheck it, highlight it, enable it again, check it, and then exit.

[Solved] Maven executes servlet error: HTTP Status 500

An error is reported when the servlet executes and the dependency range is not written

Solution:

add the following code to pom.xml, mainly the dependency range provided

<dependencies>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

[Solved] java.lang.reflect.InaccessibleObjectException: Unable to make protected java.net.http.HttpRequest()…

Error message:

Page:

Back end:

java.lang.reflect.InaccessibleObjectException: Unable to make protected java.net.http.HttpRequest() accessible: module java.net.http does not "opens java.net.http" to unnamed module @621f89b8

Solution:

Change the parameters passed in the controller:   HttpRequest   ——》  HttpServletRequest

Appium Top 10 Common Error [How to Solve]

(1) Appium service is not started

[error message] urllib.error.urlerror: & lt; Urlopen error [winerror 10061] unable to connect because the target computer actively refused.

[solution] after clicking the start appium button, the [appium] welcome to appium v1.7.2 prompt appears, and then run the script

(2) Session conflict

Error: failed to start an appium session, err was: error: requested a new session but one was in progress

[solution] restart the appium service, start the appium service, check the allow session override option in the advanced interface, restart the appium test, and add driver. Quit() in afterclass at the end of the test

(3) Device not connected

[error message] selenium. Common. Exceptions. Webdriverexception: Message: an unknown server side error occurred while processing the command. Original error: could not find a connected Android device

[solution] ADB ensure that the device is connected

(4) Java not installed or version problem

[error message] selenium.common.exceptions.webdriverexception: Message: a new session could not be created. (original error: ‘Java – version’ failed. Error: command failed: C: \ windows \ system32 \ cmd.exe/S/C “Java – version”“

[solution] check Java environment variables

(5) The launchable activity value is written incorrectly

[error message] activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launching activity

[solution]  correct the misspelling of launch activity.

(6) System permission problem

[error message] failure [install_failed_user_restricted])

[solution] 1. USB installation management permission limit. Just close it. 2. Turn on the option to allow unknown source app installation

(7) Appium service exception

[error message] an unknown server side error occurred while processing the command “while opening the app

[solution] restart appium service

(8) JRE environmental issues

[error message] are you sure you have installed JDK/JRE?

[solution] check whether there is JRE in the same level directory of JDK, and check the environment variable configuration of JDK

(9) Android SDK environment

[error message] no such file or directory “E: \ android_sdk”

[solution] check the environment variable configuration of Android SDK, especially android_home

(10) Uiautomator error

[error message] uiautomator version is too low/high

[solution] add “automationname”: “uiautomator2” to the capability configuration information

[Solved] Error updating system (error: GPGME error: No data

Solution:

First make sure the first mirror in [sudo vim /etc/pacman.d/mirrorlist] is whitelisted
Then:

sudo rm -R /var/lib/pacman/sync

If you use e2guardian, make sure ‘blanket block for SSL’ is not enabled in [examplef1.story].
Then

sudo -E pacman -Syu

Note: I don’t understand the meaning of the above two sentences. I’m in raspberry pie (armv7). An error occurred in the title after installing archlinux. Found a lot of methods, did not find a solution. Finally, I saw something about this website. Just give it a try. But I don’t know what he said..