Category Archives: How to Fix

java.sql.SQLException : IO exception: socket read timed out

[Con.err] Java.sqlexception: [con.err] Socket read timed out
the 2010-07-20 12:02:23 error [con. Err] at oracle.. JDBC driver. DatabaseError. ThrowSqlException (DatabaseError. Java: 112)
[con. Err] at the 2010-07-20 12:02:23 mistake Oracle, the JDBC driver. DatabaseError. ThrowSqlException (DatabaseError. Java: 146)
[con. Err] at the 2010-07-20 12:02:23 mistake Oracle, the JDBC driver. DatabaseError. ThrowSqlException (DatabaseError. Java: 255)
[con. Err] at the 2010-07-20 12:02:23 mistake Oracle, the JDBC driver. T4CStatement. ExecuteForDescribe (T4CStatement. Java: 806)
[con. Err] at the 2010-07-20 12:02:23 mistake Oracle, the JDBC driver. OracleStatement. ExecuteMaybeDescribe (OracleStatement. Java: 1031)
[con. Err] at the 2010-07-20 12:02:23 mistake Oracle, the JDBC driver. T4CStatement. ExecuteMaybeDescribe (T4CStatement. Java: 830)
[con. Err] at the 2010-07-20 12:02:23 mistake Oracle, the JDBC driver. OracleStatement. DoExecuteWithTimeout (OracleStatement. Java: 1124)
[con. Err] at the 2010-07-20 12:02:23 mistake Oracle, the JDBC driver. OracleStatement. ExecuteQuery (OracleStatement. Java: 1264)
the 2010-07-20 12:02:23 error [con. Err] at com. Apusic. JDBC. Adapter. StatementHandle. ExecuteQuery (Unknown Source)
.
.
.
Solutions:
Socket connection timeout try small file

Reproduced in: https://blog.51cto.com/8231017/1395064

XAException occurred. Error code is: XAER_RMERR


Problem: IBM Portal USES the built-in DB2 database by default. After performing the migration operation to Oracle, the portal process cannot be stopped normally. The following error message is reported:
[12/18/09 19:18:39:289 CST] 00000028 InternalOracl I DSRA8203I: Database product name : Oracle
[12/18/09 19:18:39:289 CST] 00000028 InternalOracl I DSRA8204I: Database product version : Oracle Database 10g Enterprise Edition Release 10.2.0.4.0- 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
[12/18/09 19:18:39:289 CST] 00000028 InternalOracl I DSRA8205I: JDBC driver name : Oracle JDBC driver
[12/18/09 19:18:39:290 CST] 00000028 InternalOracl I DSRA8206I: JDBC driver version : 10.2.0.1.0
[12/18/09 19:18:39:290 CST] 00000028 InternalOracl I DATA_STORE_HELPER_NAME
[12/18/09 19:18:39:290 CST] 00000028 WSRdbDataSour I DSRA8208I: JDBC driver type: “”
[12/18/09 19:18:39:294 CST] 00000028 WSRdbXaResour E DSRA0304E: XAException occurred. XAException contents and details are: The cause is : null.
[12/18/09 19:18:39:294 CST] 00000028 WSRdbXaResour E DSRA0302E: XAException occurred. Error code is: XAER_RMERR (-3). Exception is:
[12/18/09 19:18:39:295 CST] 00000028 XARminst E WTRN0037W: The transaction service encountered an error on an xa_recover operation. The resource was com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl@15d2dc71. The error code was XAER_RMERR. The exception stack trace follows: javax.transaction.xa.XAException at oracle.jdbc.xa.OracleXAResource.recover(OracleXAResource.java:526)
at com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl.recover(WSRdbXaResourceImpl.java:992)
at com.ibm.ws.Transaction.JTA.XARminst.recover(XARminst.java:137)
at com.ibm.ws.Transaction.JTA.XARecoveryData.recover(XARecoveryData.java:690)
at com.ibm.ws.Transaction.JTA.PartnerLogTable.recover(PartnerLogTable.java:514)
at com.ibm.ws.Transaction.JTA.RecoveryManager.resync(RecoveryManager.java:1896)
at com.ibm.ws.Transaction.JTA.RecoveryManager.run(RecoveryManager.java:2608)
at java.lang.Thread.run(Thread.java:571)
Solutions:
Grant select on dba_pending_transactions to; –USER is the name of the USER you want to connect to Oracle DB
Method 2: Update the JDBC driver to 10.2.0.4
 
 
 

From “ITPUB blog” link: http://blog.itpub.net/10537377/viewspace-623219/, if you want to reprint, please indicate the source, otherwise will be investigated for legal responsibility.

Reproduced in: http://blog.itpub.net/10537377/viewspace-623219/

call to member function bind_param() on boolean………..

Fatal error: Uncaught Error: Call to a member function bind_param() on boolean in …. Stack trace: #0 {main} thrown in……… This error is usually caused by the wrong database table name, resulting in the previous parameter could not get the correct value, you can check the parameter value correctly by typing var_dump(param_name)

Reproduced in: https://blog.51cto.com/haiyanyuan/1731256

ERROR: You must wait longer to change your password passwd: Authentication token manipulation error

Linux users encountered an error message when changing their passwords:

[monitor@monitor1 etc]$ passwd
Changing password for user monitor.
Changing password for monitor
(current) UNIX password:
You must wait longer to change your password
passwd: Authentication token manipulation error
Linux Version: Red Hat EnterpriseLinux Server Release 5.7 (Tikanga)

Fix: Linux has a limit on the amount of time you can change your password again. If the number of days is 5, the user in Linux cannot change his password for 5 days. You can change this setting in the /etc/shadow file: the fourth field is the number of days it will take to change the password again.

The icawebwrapper plug-in cannot be found when the Citrix receiver virtualization environment logs in

Today, I encountered a problem when I was working on Citrix project, which was that I couldn’t get into the system after I entered the correct account password when logging in.
The popover indicates that you cannot access the network location of the function you are trying to use. The following means that the path to the folder where icaWebwrap.msi is located could not be found.
 
Solutions:
It took a while, but eventually, after reinstalling the software, the problem was solved…
However, after some time, it was found that the problem occurred again. It was not a solution to always reinstall. After Baidu had searched some data, it tried to unzip Citrix Receiver. done
 
Finally pay attention to Citrix Receiver version!!
 
Feel the article useful friends, click the like to go again.

Error: Could not find or load main class ***

Question:
Javac compiles the source code and executes the Java Mainclassname Error: Could not find or Load main class *** Error
The reason:
The runtime cannot find the main class, either because it did not write the full name of the main class (it requires the full package name) or because it wrote the wrong name of the main class (not the name of the main class, but the file name of the main class), or because it did not specify a directory with the classpath.
Solution 1:
Java classpath – [classpath directory] package1, package2. Mainclassname
Such as:
Run the command as in ***/target/classes/hello directory
java -cp ../hello/HelloWorld
or
java -cp ../hello. The HelloWorld
(-classpath here can also be -cp.)
Note that the path after 1: -classpath is in the directory of the top-level package name (package1) and in the directory of the package1 folder (if the source program does not start with any packages, that is the current compiled directory, -cp./ The current path can be without specifying the -cp parameter), or.. Relative or absolute paths to /target/classes/
Note 2: run the file must be full name, to add all the package name (if you have any package program starts packagename) until the main class name, such as: packagename. Mainclassname (note that there is the main class name for the file name is not the main class, also is not generated by the * * *. The class files, is the main method in the name of the class)
Solution 2
The directory from CD to the classpath, if there is a package name (the directory where the top-level package name package1 folder is located, or.. If the source program does not have a package at the beginning, run the following command in the path of the ***.class file after compilation.
Java package1. Package2. Mainclassname
Such as:
Run the following command in the ***/target/classes directory where the package name hello resides
Java hello/HelloWorld
or
Java hello. The HelloWorld
Conclusion:
The problem is that the main class cannot be found, it must run with the full main class name including the package name, and it needs to specify the directory of the class path.
Appendix:
Java usage methods and parameters table after running Java-help
Usage: java [-options] class [args…]
(to execute a class)
or Java [-options] -jar jarfile [args…]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to Select the “server” VM
the default VM is server.
– cp & lt; class search path of directories and zip/jar files>
– the classpath & lt; class search path of directories and zip/jar files>
A: separated list of directories, JAR archives,
and ZIP archives to search for class files. name> =< value>
set a system property
-verbose :[class|gc|jni]
enable verbose output
-version print product version and exit
-version :< value>
Warning: This feature is deprecated and will be removed
in a future release.
requires the specified version to run
-showversion print product version and Restrict-search continue
-re-search restricb-no-re-search
Warning: continue
-re-search restricb-search Removed
in a future release.
include/exclude user private JREs in the version search
-?-help print this help message
-x print help on non-standard options
-ea [:<packagename>…|:<classname> classname>] [: & lt;
– enableassertions packagename>… | : & lt; classname>]
enable assertions with specified granularity
-da [:<packagename>…|:<classname>] [: & lt;
the -disableassertions packagename>… | : & lt; classname>]
disable assertions with specified coverage
-esa | -enablesystemassertions
enablesystem enabling
-dsa |-disablesystemassertions
Disable the system assertions
– agentlib: & lt; libname> [=<options>]
load native agent library < libname> -agentlib:hprof
see also, -agentlib: JDWP =help and -agentlib:hprof=help
-agentpath :< pathname> [=<options>]
load native agent library by full pathname
-javaagent :< jarpath> [=<options>]
load Java programming language agent, see java.lang. Instrument
-splash :< imagepath>
show splash screen with the specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
Helloworld.java :(notice the package name)

package hello;

public class HelloWorld {
    public static void main(String[] args) {
        Greeter greeter = new Greeter();
        System.out.println(greeter.sayHello());
    }
}

Greeter.java

package hello;

public class Greeter {
    public String sayHello() {
        return "Hello world!";
    }
}

Reference:
https://stackoverflow.com/questions/18093928/what-does-could-not-find-or-load-main-class-mean

Problems in the construction of CUDA environment (GPU parallel programming)

Installation environment: ubuntu14.04 + Hasee k550-i7 d1. Unique display: Nvidia GTX950. There’s also an integrated graphics card.
1. Install the cuda
1. Download CUDa Toolkit from nvidia official website, such as download runFile type. Installation steps. Complete the selection according to resources:

    Run ‘sudo sh cuda_8.0.61_375.26_linux.run’ Follow the command-line prompts

2. Since the Nouveau driver (nvidia open source driver) is installed by default on Linux system, it will conflict with cudA drivers, so nouveau driver needs to be disabled. Follow Resources -4.1.2.2. Runfile Installer.

Q1: After installing CUDA environment in accordance with the tutorial, the sample can be compiled, but it cannot be run. If the error is reported, the driver version is invalid for the running version. If the driver is replaced, the screen will be black. The reason is that my laptop is a dual graphics card and requires nvidia-Prime to perform the default driver selection. When the DPKG has Nvidia-Settings, it can also be executed to switch.
After installing Nvidia-Prime and Nvidia-Settings, it is found that the default driver is Nouveau. If the manual change is invalid, nouveau will be selected automatically. Changing Blacklist.conf to add it to the blacklist is also invalid, so the problem becomes how to disable nouveau driver and use the installed Nvidia driver.

List of questions:
Insufficient RUNNING of compiled CUDa sample: Cuda driver version is insufficient for CUDa runtime version
2. Download the new CUDA8.0 installation file and check checksum to be inconsistent. damn
3. My N card and integrated video card cannot be identified in the nvidia-Settings installation.

Reinstall 1. Change the default driver to X.Org Xserver(in system Settings -> Software and updates -& GT; Additional drive; Or search driver – & gt; As you can see, it should be set to Nouveau.
2. Switch to command line mode (CTRL + Alt +f1, aka tty1),log in; Sudo Service LightDM Restart. if restart to lightdm,open a terminal and use the next step,if not,use tty1, as before;

3. Delete Nvidia related files.

sudo apt-get remove –purge nvidia-*
4. Check for nvidia related file residue

DPKG –get-selection | grep nvidia ensures there are no nvidia residues

5. Look at the additional drivers again and select the one that is most available.

6.go back to tty1 and issue sudo service lightdm restart, lightdm should restart and you should have the latest driver, for your system.

___

7. Because my laptop is a dual video card, which is a very painful thing, I need to install nvidia-prime and nvidia-settings to switch the video card. (During installation, go to YouTube and listen to Linus say it again: “So fuck you, Nividia!” )

Note: another way mentioned to disable nouveau is to change the boot mode in grub. To:

edit /etc/default/grub file.

—-

the For Ubuntu 12.04 the setting is stored in/etc/default/grub. You add it to the line titled GRUB_CMDLINE_LINUX_DEFAULT. If the line says:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”

you would change it to:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash nomodeset”

After adding NOMODESET to this line you should run sudo update-grub to allow grub2 to see it the next time you boot.

——

### error message after changing the use of video card in nvidia-settings:

ERROR: NVIDIA driver is not loaded

ERROR: Error querying enabled displays on GPU 0 (Missing Extension).

ERROR: Error querying connected displays on GPU 0 (Missing Extension).

** Message: PRIME: Requires offloading

** Message: PRIME: is it supported?yes

ERROR: nvidia-settings could not find the registry key file. This file should

have been installed along with this driver at

/usr/share/nvidia/nvidia – application profiles – key – documentation. The

application profiles will continue to work, but values cannot be

prepopulated or validated, and will not be listed in the help text.

Please see the README for possible values and descriptions.

execute prime-select query to get information: unknow

finally passed
Prime -select Nvidia completed the selection of N card compiled to run CUDA samples through.

— — –

Cuda installation verifies the pre-installation conditions, such as whether the GPU is supported, whether the OS is supported, etc. It should be noted that this machine is a dual graphics card, which is specifically mentioned in the installation tutorial:

If the target system includes both an integrated GPU (iGPU) and a discrete GPU

(dGPU),
the –no-opengl-libs option must be used. Otherwise, the openGL library used

by the graphics driver of the iGPU will be overwritten and the GUI will not work. In

addition, the xorg.conf update at the end of the installation must be declined.

installation files: cuda-tookit and Nvidia drivers and official files are in the removable hard drive.

reference tutorial:

1. Runfile installation and disable nouveau driver: http://blog.csdn.net/masa_fish/article/details/51882183

[C + +] G + + compiler class template error message: template argument 1 is invalid

template< typename T>

NamedObject< typename T> ::NamedObject(const char *name, const T& The definition format of value can be compiled smoothly in VS,

but error: template argument 1 is invalid in GCC and should be defined as removing the second typename

template< typename T>

NamedObject< T> ::NamedObject(const char *name, const T& value)

Performance Clarke error grid analysis

This is an analysis of the accuracy of the parity blood sugar prediction, as shown in the picture below. A lot of blood sugar monitors will say what’s the probability that our device is level A, which is the area A in the picture below, which is A very good area. In fact, it is very simple to draw such a graph. The Y-axis represents the predicted blood sugar value, and the X-axis is the reference value, which is generally considered to be the accurate value. Generate Clarke error network analysis chart matlab procedures can be private I oh, matlab. As a result of somebody else paper in, so post directly not good.