Author Archives: Robins

launch file Run Error: Resourcenotfound: XXX [How to Solve]

launch File run Error:

Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 308, in main
    p.start()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/parent.py", line 268, in start
    self._start_infrastructure()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/parent.py", line 217, in _start_infrastructure
    self._load_config()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/parent.py", line 132, in _load_config
    roslaunch_strs=self.roslaunch_strs, verbose=self.verbose)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/config.py", line 451, in load_config_default
    loader.load(f, config, verbose=verbose)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 750, in load
    self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 722, in _load_launch
    self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 686, in _recurse_load
    val = self._include_tag(tag, context, ros_config, default_machine, is_core, verbose)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 95, in call
    return f(*args, **kwds)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 589, in _include_tag
    inc_filename = self.resolve_args(tag.attributes['file'].value, context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/xmlloader.py", line 183, in resolve_args
    return substitution_args.resolve_args(args, context=context.resolve_dict, resolve_anon=self.resolve_anon)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 370, in resolve_args
    resolved = _resolve_args(resolved, context, resolve_anon, commands)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 383, in _resolve_args
    resolved = commands[command](resolved, a, args, context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 151, in _find
    source_path_to_packages=source_path_to_packages)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/substitution_args.py", line 197, in _find_executable
    full_path = _get_executable_path(rp.get_path(args[0]), path)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 207, in get_path
    raise ResourceNotFound(name, ros_paths=self._ros_paths)
ResourceNotFound: lslidar_c16_decoder
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/lskk/lego_loam_ws/src
ROS path [2]=/opt/ros/kinetic/share

 

 

Solution:
For ResourceNotFound: xxx class issues. If it is an installation package, perform the corresponding installation; for this error, the file is not found, check the lslidar_c16_decoder item in launch and modify it.

 

[Solved] CommandWithNoStdoutInvokationFailure Unable to start ADB server.

Error: CommandWithNoStdoutInvokationFailure: Unable to start ADB server. Please make sure the Android SDK is installed and is properly configured in the Editor
Error:

CommandWithNoStdoutInvokationFailure: Unable to start ADB server. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
UnityEditor.Android.Command.RunWithShellExecute (System.String command, System.String args, System.String workingdir, System.String errorMsg) (at <61e151d28db74087bf4788498b7351e6>:0)
UnityEditor.Android.ADB.StartServer () (at <61e151d28db74087bf4788498b7351e6>:0)
UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <61e151d28db74087bf4788498b7351e6>:0)
UnityEditor.Android.AndroidDeploymentTargetsExtension.GetKnownTargets (UnityEditor.DeploymentTargets.IDeploymentTargetsMainThreadContext context, UnityEditor.ProgressHandler progressHandler) (at <61e151d28db74087bf4788498b7351e6>:0)
UnityEditor.Android.PostProcessor.Tasks.CheckDevice.GetTargetDevices (UnityEditor.Android.ADB adb) (at <61e151d28db74087bf4788498b7351e6>:0)
UnityEditor.Android.PostProcessor.Tasks.CheckDevice.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <61e151d28db74087bf4788498b7351e6>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <61e151d28db74087bf4788498b7351e6>:0)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

 

Solution:

This problem is only applicable to windows, if it is linux or mac, please follow the relevant instructions to use the shell statement to configure in the termination.
If the sdk is installed on Windows, enter cmd in the run, call up the windows command line, enter adb, and the system feedback says that it is not a system command. . . . .
The solution is simple:
Go to the tools directory under the Android sdk directory, find two files, adb.exe and AdbWinApi.dll, select them, copy them, and paste them in the system directory /windows/system32/.
Then enter adb in the command line, the problem is solved!

[Solved] UE4 Error: Serial loading Unknown structure

Background: when compiling UE4 C + + project, there are unknown structure and other errors;

After the query, it is found that after the structure defined in C + + is exposed to the blueprint, a new container is re created, including many structures. The data type of this container is defined as: allzmqdatapool

Define a new variable in gameinstance. The variable type is allzmqdatapool; Create a method to quickly get variables in common func.

The above problem occurs when packaging after compilation.

Less nonsense, the solution is as follows:

1. Directly modify the name of the structure container; After modifying the name, recompile from the C + + project, then reopen the project, package and solve it;

2. If there are only a few sporadic errors and you don’t want to change your name, you can select refresh all nodes in the blueprint of the error report through the “file” option, and then compile again, repackage and solve it;

Basically, the above two methods are easy to use.

CRA 5.0.0 Add Proxy Project Start Error [How to Solve]

Problem Description:
https://github.com/facebook/create-react-app/issues/11762#issue-1080972271
i.e.
Set the proxy in package.json, and then start the project through npm start or yarn start, the error is as follows:

>yarn start
yarn run v1.22.10
$ react-scripts start
Attempting to bind to HOST environment variable: test.localhost
If this was unintentional, check that you haven't mistakenly set it in your shell.
Learn more here: https://cra.link/advanced-config

Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
 - options.allowedHosts[0] should be a non-empty string.
error Command failed with exit code 1.

Solution: Don’t set the proxy in package.json, but set it in src/setupProxy.js, and delete the proxy in package.json, and finally restart npm start.

[Solved] Hbase-shell 2.x Error: Unhandled Java exception: java.lang.IncompatibleClassChangeError: Found class jline.Terminal…

I. Error message:

Unhandled Java exception: java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected

II. Solution
hadoop/share/hadoop/yarn/lib/ Replace jline-0.9.94.jar package with jline-2.12.jar if you have it, or upload jline-2.12.jar if you don’t

Note: How to obtain jline-2.12.jar:
Can be obtained from the hive package
hive package download: https://downloads.apache.org/hive/hive-2.3.9/apache-hive-2.3.9-bin.tar.gz

[Solved] IDEA try-with-resources Error: AutoCloseable

IDEA try-with-resources error: AutoCloseable

try (HttpPost post = new HttpPost(url)){
    ...
}catch(... | ... ){
}

Editor tip: incompatible types: try with resources is not applicable to variable types

Reason: the httppost used does not implement closeable and is not supported. The compiler automatically helps us complete close(), which is not available in httppost. If you want to test the writing method, you can use: closeablehttpclient, bufferedinputstream and so on. Finally, decompile it.

try (CloseableHttpClient client =HttpClients.createDefault();){
...
}...

Main Use connect Error: without object [How to Solve]

//mytest::mytestShowChanged Note that the function cannot be added (), otherwise an error is reported: C:\Users\xutie\Desktop\qtthread\main.cpp:36: error: cannot call member function 'void mythread1::mythread1show()' without object
QObject::connect(&mytest1,&mytest::mytestShowChanged(),&mythread1Object1,&mythread1::mythread1show());

Modify as:
QObject::connect(&mytest1,&mytest::mytestShowChanged,&mythread1Object1,&mythread1::mythread1show);

[Solved] com.highgo.jdbc.util.PSQLException:bad value for long

environment
system platform: Galaxy Kirin u system (CPU Feiteng) 4
version: 4.3.4.5
symptom
application error:

com.highgo.jdbc.util.PSQLException:bad value for long:{"w":1341,"h":700,"widgets":[{"id":1,"c":1,"r":1,"x":24,"y":27},{"id":2,"c":25,"r":1,"x":51,"y":54},{"id":3,"c":25,"r":55,"x":51,"y":32},{"id":4,"c":1,"r":28,"x":24,"y":27},{"id":5,"c":76,"r":1,"x":25,"y":26},{"id":6,"c":76,"r":55,"x":25,"y":32},{"id":7,"c":76,"r":27,"x":25,"y":28},{"id":8,"c":1,"r":55,"x":24,"y":32}]}

Cause of the problem
MyBatis in the query for select mapping, the return type can be used resultTy, investigation and analysis found that the customer’s program to return the field type is longvarchar, so take the jar package within the tolong method, causing errors.

Solution
Modify the return field type longvarchar to varchar in the program.

Error code

com.highgo.jdbc.util.PSQLException:bad value for long

tf.nn.dilation2d Call Error: TypeError: dilation2d_v1() got an unexpected keyword argument ‘data_format’

Error Messages:

Traceback (most recent call last):
  File "Test.py", line 10, in <module>
    c1 = tf.nn.dilation2d(a, b, strides=[1,1,1,1], padding="SAME", data_format="NHWC", dilations=[1,1,1,1])
TypeError: dilation2d_v1() got an unexpected keyword argument 'data_format'

Solution: Delete data_format="NHWC"

How to Solve freemaker null Error

Error analysis

Today, I encountered a problem. When I get the parent ID , I found that if it is a parent classification, an error will be reported when I go back to the parent ID

the following styles fail directly.

Solution:

Add a default value of 0. The code is as follows:

var cate_parentId = ${category.parentId ! 0};

PhpllyAdminSqlParser\Exceptions\LoaderException:Specifed context xampp phpadmin & MySQL Error

1、PhpllyAdminSqlParser\Exceptions\LoaderException:Specifed context (“PhpMyAdminlSqlParserContextslContextMariaDb100422”) does not exist. i
Click mysql–>Admin Error:
PhpllyAdminSqlParser\Exceptions\LoaderException:Specifed context (“PhpMyAdminlSqlParserContextslContextMariaDb100422”) does not exist. in

Solution:

2. Error: Error: MySQL shutdown unexpectedly
20:49:25 [mysql] This may be due to a blocked port, missing dependencies,
20:49:25 [mysql] improper privileges, a crash, or a shutdown by another method.
20:49:25 [mysql] Press the Logs button to view error logs and check
20:49:25 [mysql] the Windows Event Viewer for more clues
20:49:25 [mysql] If you need more help, copy and post this
2. Error:
Error: MySQL shutdown unexpectedly.
20:49:25 [mysql] This may be due to a blocked port, missing dependencies,
20:49:25 [mysql] improper privileges, a crash, or a shutdown by another method.
20:49:25 [mysql] Press the Logs button to view error logs and check
20:49:25 [mysql] the Windows Event Viewer for more clues
20:49:25 [mysql] If you need more help, copy and post this

Solution:

These two are the database I built before, just in case, the above files will be replaced after the two also deleted, and later put back to try, just need to back in the file to overwrite the data in the file can

[Solved] kafka Error: java.net.UnknownHostException: kafkahost

 

Problem phenomenon:

Today, I wanted to debug the service on my computer. I found that when calling the interface through the gateway, an error related to Kafka was reported, as follows:

java.net.UnknownHostException: kafkahost


Problem analysis:

It can be seen from the error message that the host named kafkahost cannot be recognized.

By viewing the configuration of a service instance of Kafka cluster configuration on Linux server, you can find:

listeners=PLAINTEXT://kafkahost:0091

This configuration uses the {kafkahost} mentioned in the error message. You can see that this service instance listens to the IP port} kafkahost: 0091; By viewing the/etc/hosts file of the Linux server, you can see:

Kafkahost points to the Linux server IP.

Since I accessed the Kafka service on the Linux server in the native service, I naturally could not resolve to kafkahost. Therefore, you need to add the corresponding configuration in the hosts file of this machine!


Solution:

Find the hosts file path of this machine:

C:\Windows\System32\drivers\etc

Add the following configuration at the end of the file to identify kafkahost as the Linux server IP:

Restart the local service and call the interface again without any error: