Author Archives: Robins

Failed to get D-Bus connection: No such file or directory

when running centos7 image in docker, error
[root@2181bc14e47f /]# systemctl list-units
Failed to get d-bus connection: No such file or directory
d-bus allows the program to register on it to provide services to other programs. It also provides the possibility for the client program to query what services are available. Applications can also be registered to wait for kernel events, such as hardware hotplug. It is a three-tier inter-process communication (IPC) system, including:
function library libdbus, used for calling contacts and interacting messages between two applications. A message constructed based on libdbus, the bus daemon can connect to multiple applications simultaneously and can route messages from one application to 0 or more other programs. A series of Wrapper libraries based on specific application frameworks. D-bus is designed for two specific situations:
communication between two desktop applications within the same desktop session, allowing the desktop session to be integrated as a whole to solve problems related to the process lifecycle. Communication between a desktop session and an operating system, where the operating system generally includes the kernel and system daemons.
after the docker exit
$docker run — br> $docker run –privileged/ti-e “container=docker” centos7-base /usr/sbin/init
-privileged docker introduction, using this parameter, the root in the container has the real root privilege, otherwise, the root in the container is just an external ordinary user privilege. The container that the Privileged starts can see a lot of equipment on host and mount can be performed.
even allows you to start a docker container in a docker container. -e “container=docker” sets the environment variable that processes inside the container can get directly.
can now execute the systemctl command

/root @ bd5aa199dbc9 ~ # systemctl status SSHD
low SSHD. Service – the OpenSSH server daemon
the Loaded: the Loaded (/ usr/lib/systemd/system/SSHD. Service; enabled; Vendor pre: enabled)
Active: inactive (dead)
Docs: man: SSHD (8)
man:sshd_config(5)

Runtime Error 1004 Method ‘VBProject’ of object ‘_Workbook’ failed

症状

在Enterprise Performance Foundation Administrator中,当尝试使用位于“Configuration Rules”的“Create from Spreadsheet”按钮导入维度成员时;“维度”比;”成员”,以下错误发生时,您打开WebADI.xls

运行时错误’1004′:

方法’VBProject’的对象’_Workbook’失败

你在打开电子表格时选择了“启用宏”按钮。另外,在Excel 2003中,如果你打开“工具”>“宏”比;”安全…”,安全级别为”中等”.

解决方案

在Excel 2003中,转到“Tools”>“宏”比;“安全”,并选择“可信来源”选项卡。选中“信任访问Visual Basic项目”旁边的复选框。

(注意:还应选中“信任所有已安装的外接程序和模板”框。
在Excel 2007中,使用以下导航:

办公室李

    <>点击按钮在左上角李 <李>单击Excel选项按钮李 <>李在左边,点击信任中心李 <李>单击信任中心设置按钮李 <>李在左边,点击宏设置李 <李>单击“信任访问VBA项目对象模型”李

    转自:https://support.oracle.com/CSP/main/article?cmd=show&类型= NOT& id = 376013.1

Installation error: install_ FAILED_ VERSION_ DOWNGRADE

1. Problem tip

2. Solution

is because you have installed an application with the same package name on your phone or emulator, and the current versionCode you are running is less than the versionCode of the application you have installed, so you will be prompted that the installation fails!

solution:

1. Uninstall the Apk that has been installed before.

2. Raise the value of android:versionCode in the manifest profile!

resources: http://stackoverflow.com/questions/13808599/android-emulator-installation-error-install-failed-version-downgrade

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0

1。问题描述

利用maven导包,运行Mybatis案例的主要函数时报的错。

[ERROR] 执行目标org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (default-cli)项目mybatis_annotation:命令执行失败。:进程退出错误:1(退出值:1)->
[ERROR]
[ERROR]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[ERROR]使用-X开关重新运行Maven以启用完整的调试日志记录。
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

2。解决办法(三种可参考的方法)

方法一:<字体>在pom.xm中添加以下内容——<代码> exec-maven-plugin

 <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.6.0</version>
<!--                <executions>-->
<!--                    <execution>-->
<!--                        <goals>-->
<!--                            <goal>java</goal>-->
<!--                        </goals>-->
<!--                    </execution>-->
<!--                </executions>-->
                <configuration>
                    <classpathScope>test</classpathScope>
<!--                    <mainClass>com.itheima.test.MybatisTest</mainClass>-->
                </configuration>
            </plugin>
        </plugins>
    </build>

annotation section can not add

method 2: modify code

note: this error will sometimes occur after adding ** check the code section of the main function for errors. ** if the resource is closed before the method is called, etc.

method three: reference source inside the. Idea file to replace their own creation maven project. Idea file.

can also solve the problem of confused Chinese code, which can be seen as the reason for the initial configuration of idea. I haven’t found the specific configuration method yet, please inform me if there are specific configuration change steps or other reasons. Thanks for

here


. Analyze the reason

I replaced the main function with @test to run the Test method. The code can run normally, but it still won’t work if I replace it with the main function again. Two plugins need to be introduced here: maven-compiler-plugin and Exec-Maven-Plugin.
**maven-compiler-plugin: ** compiling Java code, you can specify the JDK version of the project source code, the compiled JDK version, and the code
exec-maven-plugin : to execute the class file, where the plug-in configuration should specify the path to execute the class. Only the exec-maven-plugin

is concerned here
4. Call database Chinese garbled code problem

1. The first type: in setting-> maven-> Runner-> VM Options
enter -dfile.encoding =gb2312
the first method is not bad, and the second method is not good, but I think it will be used in other places, code here first
2. The second type: po. XML type to add

<properties>
	<!-- 文件拷贝时的编码 -->
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	<!-- 编译时的编码 -->
    <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
</properties>

5. Internal label analysis

1.< goal > The exec consists of two goals :exec :exec and exec: Java. How should you choose?First, you need to remember that exec:exec is always more powerful and flexible than ExEC: Java, except that the main difference between the two is in thread management: Exec: Exec always starts a new thread and exits (closes the application) from the VM when only daemon threads are left. For exec: Java, when all non-daemon threads terminate, the daemon thread is interrupted by Joine or interrupt and should not be closed. But for the average user, the difference doesn’t matter. For both options, in general, if your project is very easy to start without setting JVM parameters, system properties, or command-line arguments, use exec: Java,

2.< classpathScope >

compile
is compile by default, so we don’t configure anything, so we just mean compile. Compile means that the dependent project needs to participate in the compilation of the current project. Of course, subsequent tests, the run cycle also participate in the compilation, so it is a strong dependency. When packing, you usually need to include it.

test
scope for test indicates that the dependent project only participates in test-related work, including compiling and executing the test code. Typical examples are junit.

Runntime indicates that the dependent project does not need to participate in compiling the project, but it does need to participate in the later test and run cycles. Compared to compile, we skip compilation, which, frankly, isn’t very different from compile in terminal projects (non-open source, internal enterprise systems). Relatively common implementation such as JSR×××, the corresponding API JAR is compile, the specific implementation is runtime, compile only needs to know the interface is enough. A good example is the Oracle JDBC driver package, which generally has a scope of runntime. In addition, the dependency of runntime is usually used with optional, which is true. I can do it with A, or I can do it with B.

Provided provided means you can package it without having to package it, and other facilities (Web Container) provide it. In fact, this dependency can theoretically be involved in compiling, testing, running, and so on. So we compile, but we do exclude in the packaging phase.

In terms of engagement, it also provides the same. However, dependencies are not captured from maven repository, but from local file system, which must be used with the systemPath attribute.

Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.

using jquery. Datetimepicker. Full. Min. Js error

error operation procedure:

operation time control, switch to other pages, open the console, pull the console zoom size, this time will find that the error

The

error was caused because, while dragging the console, the root element of the control could not be retrieved and the control could not be located

view error message

window.getComputedStyle(e), prompt e is not an element, print null

in the source code to add the following code, solve the problem

if(!e) { 

    return false;

} 


Completely solve install_ FAILED_ UPDATE_ Incompatible installation error, the installation package is not consistent with the previous installation package signature on the device

thoroughly resolves the installation error of INSTALL_FAILED_UPDATE_INCOMPATIBLE installation packages signed with those on previous devices

ps: I finally changed the package name… Don’t offer such services such as nacionbolinblog/p/5402652.html

sometimes development problems: will encounter in the company work, the company’s IDE can run the program, copy the program home, run again, will appear the following error:

INSTALL_FAILED_UPDATE_INCOMPATIBLE

reason: your installation package is not signed with the previous installation package on the device. At Baidu, some people said: running too many times will also appear above problems, but I have not encountered.

simple processing:

if your program is just a running game, not a very important program, then you can just change the package name. I’ve done this before.

steps: as shown in figure:

but in actual work, we are not allowed to change the package name, such as associated with WeChat, alipay, baidu map, etc., our package name is submitted to their official website.

so what do we do?

provides a crappy way to compare: if you’re testing the phone, format the test phone.

the following is a more complete screening process:

problem: when debugging, it USES the default signature (that is, the debug signature), while when exporting, it USES its own debug signature, which cannot be installed on the same phone.

solution:

if your previous program USES the default signature (i.e., debug signature), once the new signature application will not be able to overwrite the installation, you must uninstall the original program to install.

– & gt; Everyone else uninstalls and installs, but my phone doesn’t.

– & gt; Me: Uninstall the old one, also root, and delete the data/data/ package name.

– & gt; Installation tip: Replace app, sales assistant 1.0 replace 1.0.. Prompt program not installed.

– & gt; Does the system hold the relevant package name and signature information?

– & gt; If be, also Baidu does not put where this information.

continue to baidu: find the package name information stored in the/data/system/packages. The XML, need root cell phone only can see the file from a mobile phone.

– & gt; Just delete the package name information that the application contains.

step:

  1. uninstall the previous installation package with “adb uninstall package name”, then try to install it, if not, proceed to the next step.

  2. in/data/system/packages. The XML file containing the application’s package name information

    my practice: 2.1 root mobile phone, is my meizu, directly to the root. After installing RE manager, enter/data/system/packages. The XML copy the file to the other place, share to the computer, computer modified, covered in the original file.

    reference practice: my mobile phone does not work. 2.2 use adb pull command to export the file, modify it, and import it with adb push.

    2.3 the above steps do not work, first adb remount (means to remount the system partition) and then adb pull command export the file, complete the modification, and import with adb push.

    2.4 the above steps do not work,

     ---> 执行  adb shell  命令  -- 执行的是Linux的命令
    
     ---> su (手机应该会弹出权限信息提示~~告诉你需要管理权限,并确认)  -- 获得超级权限
    
     ---> ls -l (查看当前目录下所有可见文件的详细属性)  drwxrwx--x   (d--文件夹)
    
    
    
           这边怎么跑出一个system?回答:没有听说过Android除了Root还有system权限  你说的是user权限吧
    
           参考:http://bbs.csdn.net/topics/360175988
    
     ---> mount -o remount,rw /data (重新将文件夹为可读可写。)  我的手机出现( Operation not permitted),没办法下一步
    
     ---> chmod 777 /data 
    
     或者参考别人的做法:http://blog.sina.com.cn/s/blog_4ba5b45e0102ek4k.html 
    

    2.5 does not work, using the 2.1 method.

  3. reinstall the new application can be

reference: http://blog.csdn.net/philofly/article/details/8090210

Samba error: session setup failed: NT_ STATUS_ LOGON_ FAILURE

On the command line, type the command:

~ $smbclient – L \ \ 127.0.0.1

session setup failed: NT_STATUS_LOGON_FAILURE

this is because the user ID executing the smbclient command is not a user of the samba service. The solution is as follows:

add the changed user ID to samba

~$smbpasswd -a user ID

set password as required

so that the user ID becomes a user of the samba service, enter the command

~ $smbclient – L \ \ 127.0.0.1

Domain = = [Example] the OS/Unix Server = [Samba 3.6.3]

Sharename Type the Comment

— — — — — — — — — — — — — — — — —

print $Disk Printer Drivers

cdrom Disk Samba server’s cd-rom

Music Disk Music files

IPC$IPC IPC Service (Samba File Server)

Domain = = [Example] the OS/Unix Server = [Samba 3.6.3]

Server Comment

— — — — — — — — — — — — — — — –

Test1 Samba File Server

Test2

Workgroup Master

— — — — — — — — — — — — — — — –

Example Test2

problem solved.



=============================================================



1. Session setup failed: NT_STATUS_LOGON_FAILURE
this error means that the user is wrong, it may be that the user does not exist, it may also be that the password is wrong, or the user exists in one of the users of samba and the system,
in a word is that the user and password have problems
. The NT_STATUS_BAD_NETWORK_NAME
error indicates that the Shared directory does not exist, or that the permissions are not right
, as in my case. I have a user named xiaowang. In the home directory of xiaowang, I created a new share directory,
, and added share to smb.conf to make it myshare. However, I have designated the valid user of this Shared directory as guest(also a user in the system). Now I have the share directory under home.

==================================================================================

the solution in the latest centos is to run the following command to resolve the samba NT_STATUS_BAD_NETWORK_NAME problem:
setsebool -p samba_enable_home_dirs=1

viewing the logs caused by the samba process being blocked by SELinux from accessing the home directory:
Feb 26 22:56:22 igosvr setroubleshoot: SELinux is preventing the samba daemon from reading users’ home directories. For complete SELinux messages. run sealert -l 6e7522fa-f56c-400e-9e04-3722033573b5


confirm that the SMB service above REDHAT has started and IPTABLES has closed

RabbitMQ login failed

rabbitMQ logon failure

check log found error

tail /var/log/rabbitmq/rabbit\@VM-OR-rabbit-MQ.log

=ERROR REPORT==== 12-Mar-2019::10:13:56 ===

webmachine error: path=”/api/whoami”

“Unauthorized”

solution:

look at the list of users

[root@VM-OR-rabbit-MQ ~]# rabbitmqctl list_users

Listing users …

guest (administrator)
Create an admin user with a password of admin

[root@VM-OR-rabbit-MQ ~]# rabbitmqctl add_user admin admin

Creating user “admin” …

is set to administrator

[root@VM-OR-rabbit-MQ ~]# rabbitmqctl set_user_tags admin administrator

Setting tags for user “admin” to [administrator] …

[root@VM-OR-rabbit-MQ ~]# rabbitmqctl list_users

Listing users …

admin/administrator

guest (administrator)
Restart the rabbitmq service:

[root@VM-OR-rabbit-MQ ~]# service rabbitmq-server restart

Restarting rabbitmq-server: SUCCESS

rabbitmq-server.

retest rabbitMQ login success

Forced shutdown of VMware wrokstation error (failed to get exclusive lock on the configuration file —)

today I accidentally shut down the VMware. Exe process in the process. It doesn’t matter if I shut it down.

said that a running process was using the “configuration” file and was unable to obtain the lock for the configuration file, causing a failure.

know the error, we can solve the problem, there is a process using this file, then we go to the process to look, of course, the first thing we think of is, is the virtual machine process. Three virtual machine processes were actually found in the process manager,

vmware – usbarbibrator. Exe

vmware – unity – helper. Exe

vmware – VMX. Exe

my first instinct was vmware. Exe,kill it, really, the virtual machine is up.

Server Tomcat v7.0 server at localhost failed to start

maybe everyone will encounter Server Tomcat v7.0 Server at localhost failed to start,

after many studies, Delete the @webservlet (” /AddServlet “) sentence from the servlet file (generally under Java Resources\ SRC \ package name \ servletnaming. Java) and run the program again to eliminate the problem of Tomcat startup failure. There is another situation . Tomcat cannot be started in eclipse when the tomcat service in the server is started. Step – open task manager – click on the service options – find tomcat7 – right click to stop.

There are two other possibilities:
> when you create a servlet file in your project, a tag will automatically appear @webservlet (” /** “) // drop this tag around the class definition to see if you can fix the problem;
if you are using the campus network to run the agent, is not allowed, you need to turn off the agent before you can;