Some bug summaries in NC development __nc

Source: Internet
Author: User
Tags one table
One, memory overflow
(1) Restart Eclipse
(2) or look at the set of parameters, (-xms256m-xmx512m-xx:permsize=256m-xx:maxpermsize=256m),
Nchome, Bin/ncsysconfig.
eclipse-Window-Preferences-installed jre-edit jre-default VM Parameters
Right key to the project point-debug Mode-debug-Self variable-VM self variable
Second, all information will be output to the console
(1) The SQL day to all dozen out, nc_home/ierp/bin/logger-config.properties name changed,
So that all the information is output to the console,
After you click on the button, look at the background output of SQL, is to have updated which tables
(2) Modify
D:\ufsoft\ufnc502\ierp\bin\logger-config.properties
Will
Anonymous.level=error
Anonymous.pattern=[%t]%x{remoteaddr}%x{remoteport}%d{yyyy/mm/dd HH:mm:ss} [%A]%p-%m%n
Anonymous.file=./nclogs/${server}/anony-log.log
Anonymous.size.maxsize=5mb
Anonymous.size.maxindex=20
Amended to
Anonymous.level=trace
Anonymous.pattern=[%t]%x{remoteaddr}%x{remoteport}%d{yyyy/mm/dd HH:mm:ss} [%A]%p-%m%n
Iii. Finding mistakes
There's a mistake. Clean the console first, then trigger the wrong event, and then look for errors from the console's server side
Four, the configuration file path
Nchome\ierp\bin\prop.xml
Five, the account sets management path
Nchome\ierp\bin\account.xml
V. Module Registration disorder
Use group login, two development tools-system administration Tools-Custom menus-Restore default structure
In two development tools-system administration tools-custom menus can customize the structure
At the time of interruption, sometimes the information is too much, there is omission.
With System.out.print (information)
Seven, the middle can't start up
(1) Remove the opening module of HR
(2) Change a UFJDK
Eight, straight up nchome show 4 lines will not continue
Server IP changed to 127.0.0.1
Ix. Get Nchome Folder
Runtimeenv.getinstance (). Getnchome ()
Ten, read the NC server information
String url = "http://" +invocationinfoproxy.getinstance (). Getserverhost () + ":" +invocationinfoproxy.getinstance (). Getserverport ();
Exception occurred in main () of Xi. Javax.swing.JPanel
Java.lang.noclassdeffounderror:netscape/javascript/jsobject
At JAVA.LANG.CLASS.FORNAME0 (Native method)
At Java.lang.Class.forName (class.java:164)
At Nc.starter.test.JStarter.StartNC (jstarter.java:111)
At Nc.starter.test.JStarter.main (jstarter.java:373)
No jar packages imported into plugin
12, Nc.bs.framework.exception.componentnotfoundexception:component:nc.itf.pd.inner.ipubfreeze,detail message:
Can not find component (both in Jndi and ESA)
EJB problem, delete ejb temp file, reboot Middle key
object is not a instance of declaring class
It is possible that interfaces, implementation methods are undefined, and then redeployed
13, the various paths in Java
public static void Main (string[] args) {
System.out.println (New file ("Column2.txt"). GetAbsolutePath ());//file path
System.out.println ("Java Runtime Environment version: \ n" +system.getproperty ("java.version"));
System.out.println ("Java Runtime Environment vendor: \ n" +system.getproperty ("Java.vendor"));
System.out.println ("Url:\n of Java Vendor" +system.getproperty ("Java.vendor.url"));
System.out.println ("Java installation directory: \ n" +system.getproperty ("Java.home"));
System.out.println ("Java Virtual machine spec version: \ n" +system.getproperty ("java.vm.specification.version"));
System.out.println ("Java class format version number: \ n" +system.getproperty ("java.class.version"));
System.out.println ("Java classpath: \ n" +system.getproperty ("Java.class.path"));
SYSTEM.OUT.PRINTLN ("List of paths to search when loading library: \ n" +system.getproperty ("Java.library.path"));
SYSTEM.OUT.PRINTLN ("Default temporary file path: \ n" +system.getproperty ("Java.io.tmpdir"));
System.out.println ("The name of the JIT compiler to use: \ n" +system.getproperty ("Java.compiler"));
SYSTEM.OUT.PRINTLN ("Path of one or more extended directories: \ n" +system.getproperty ("Java.ext.dirs"));
System.out.println ("Name of the operating system: \ n" +system.getproperty ("Os.name"));
SYSTEM.OUT.PRINTLN ("Architecture of the operating system: \ n" +system.getproperty ("Os.arch"));
System.out.println ("version of the operating system: \ n" +system.getproperty ("os.version"));
System.out.println ("File delimiter (in UNIX system is"/"): \ n" +system.getproperty ("File.separator"));
SYSTEM.OUT.PRINTLN ("The Path delimiter (in UNIX system is:"): \ n "+system.getproperty" ("Path.separator"));
System.out.println ("n" on UNIX system): \ n "+system.getproperty" ("Line.separator"));
System.out.println ("User's account name: \ n" +system.getproperty ("User.Name"));
System.out.println ("User's home directory: \ n" +system.getproperty ("User.home"));
System.out.println ("User's current working directory: \ n" +system.getproperty ("User.dir")); }
14, port number

/**
Nchome55\conf
folder under
Server.xml file
Search
Define a Non-ssl http/1.1 Connector
Here's the port.
*/
16, the table tree sorting error
The table body tree does not support sorting, disables table body sorting, and calls Getbillcardpanel () in Initselfdata (). getbilltable (Table Encoding). SETSORTXXX (false), note that the corresponding list interface also prohibits sorting
17, Access Limited
Configure access rules--edit--add--the resolution changed to accessible, rule mode write **--OK
18, the difference between java.lang.ClassNotFoundException and Java.lang.NoClassDefFoundError
These 2 things should be very common in Java, very simple, they are all related to classpath settings, but the difference is where. We all know that there are two ways to generate objects in Java:
1:object obj = new ClassName (); Direct new An Object
2:class clazz = Class.forName (ClassName);
Object obj = clazz.newinstance (); Dynamically load a class through class loader, and then get an instance of this class
The same is the build object, 1 checks classpath during compilation, and if there is no class definition, compilation cannot pass. 2 is not checked during compilation, but it needs to be thrown or catch classnotfoundexception. During run time, if 1 compile-time dependent classes are not in classpath (causing the ClassLoader mount to fail), the exception thrown at this point is noclassdeffounderror. And if 2 of the classes that need to be loaded during the run are not in Classpath, the ClassNotFoundException is thrown.
19, development environment, the interface appears garbled
Reason: Eclipse did not add a resource ID.
Delete the code in the workspace working environment and re-create the project.
21, there is a blank button
Reason: Ncsso itself in the UAP, may be mistakenly moved out.
Solution: The Ncsso module in the nchome will be deleted.
22, Oracle One table field, update another table field report NOT NULL
Updates another table field through one table field in Oracle, sometimes not in the report, and cannot be empty.
The specific reason is not to delve into, but can solve this problem by establishing an intermediate column;
Such as:
Table A: Field Id,code, name
Table B: Field B1,B2,B3
Update table A's ID field as table B's B1 field, provided that the a.id=b.b3;
In this case, the ID is both an update field and a conditional field, which requires an intermediate column;
Update Tb_role_user Set mm= (select Mm1 from mmtes333 where trim (userid) =trim (MM3))
Update Tb_role_user set userid=mm where mm is not null
23, the operation of the user has reached the maximum number of authorized
Bin under the License1 and Lib under the UF deleted

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.