windows registry file to write the script writing

In doing openmeetings in windows server running on 2003, we found the following errors always occur.

[WARN] [NioSocketAcceptor-1] org.apache.mina.util.DefaultExceptionMonitor - Unex
pected exception.
org.apache.mina.core.RuntimeIoException: java.net.SocketException: Invalid argum
ent: no further information
        at org.apache.mina.transport.socket.nio.NioSocketSession$SessionConfigIm
pl.setTrafficClass(NioSocketSession.java:227) ~[mina-core-2.0.5.jar:na]
        at org.apache.mina.transport.socket.AbstractSocketSessionConfig.doSetAll
(AbstractSocketSessionConfig.java:68) ~[mina-core-2.0.5.jar:na]
        at org.apache.mina.core.session.AbstractIoSessionConfig.setAll(AbstractI
oSessionConfig.java:63) ~[mina-core-2.0.5.jar:na]
        at org.apache.mina.transport.socket.nio.NioSocketSession.<init>(NioSocke
tSession.java:62) ~[mina-core-2.0.5.jar:na]
        at org.apache.mina.transport.socket.nio.NioSocketAcceptor.accept(NioSock
etAcceptor.java:176) ~[mina-core-2.0.5.jar:na]
        at org.apache.mina.transport.socket.nio.NioSocketAcceptor.accept(NioSock
etAcceptor.java:51) ~[mina-core-2.0.5.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.proce
ssHandles(AbstractPollingIoAcceptor.java:520) ~[mina-core-2.0.5.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(A
bstractPollingIoAcceptor.java:461) ~[mina-core-2.0.5.jar:na]
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnabl
e.java:64) [mina-core-2.0.5.jar:na]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1110) [na:1.7.0_09]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:603) [na:1.7.0_09]
        at java.lang.Thread.run(Thread.java:722) [na:1.7.0_09]
Caused by: java.net.SocketException: Invalid argument: no further information
        at sun.nio.ch.Net.setIntOption0(Native Method) ~[na:1.7.0_09]
        at sun.nio.ch.Net.setSocketOption(Net.java:279) ~[na:1.7.0_09]
        at sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:175) ~[
na:1.7.0_09]
        at sun.nio.ch.SocketAdaptor.setIntOption(SocketAdaptor.java:300) ~[na:1.
7.0_09]
        at sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:400) ~[na
:1.7.0_09]
        at org.apache.mina.transport.socket.nio.NioSocketSession$SessionConfigIm
pl.setTrafficClass(NioSocketSession.java:225) ~[mina-core-2.0.5.jar:na]
        ... 11 common frames omitted

 

For a long time, as long as the original and add a key value to the registry on it, but add a lot of trouble, and if so want to be a registry script, double-click on it.

Online to find some information. Specific as follows:

First create a REG file, and the file suffix .reg

You can then use Notepad to open the file for editing

REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters]
"DisableUserTOSSetting"=dword:00000000

  Double click to add to the registry.

Drop Primary:

REG file delete use a primary key in the registry, the file body portion "[]" in front of the primary key enclosed path with a "-" symbol to delete the primary key operation will also delete all the child in the primary key keys and key projects, so this is a more dangerous commands, and must pay great attention. For example, to delete the primary key we just added, as follows:
REGEDIT4 
 blank line 
[-HKEY_LOCAL_MACHINE\Software\ UESTC]

To delete a key:

REGEDIT4

[hkey_local_machine\software\name] 
"abc"=- 

Creating a key:

REGEDIT4

[HKEY_LOCAL_MACHINE\software\name]
"abc1"=hex:61
"abc2"=dword:00000064

abc1 type is "binary" binary value

abc2 value type is dword

[Path] (note and letters)

"Keys" = "key" (for string key) 

"Keys" = hex: key (key for the binary type) 
"key name" = dword: key (for DWORD key)

  

Reproduced in: https: //www.cnblogs.com/feiyuliu/archive/2012/12/04/2801213.html

Guess you like

Origin blog.csdn.net/weixin_34043301/article/details/94176236