george.gu的博客
george.gu · 共 52 篇文章
javax.naming.CommunicationException: remote side declared peer gone on this JVM.
javax.naming.ServiceUnavailableException [Root exception is java.net.UnknownHostException: XXXXX001] javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://X.X.X.X:8101: Bootstrap to X.X.X.X/X.X.X.X:8101 failed. It is likely that the remote side declared peer gone on…
Generate special format numbers
DecimalFormat df = new DecimalFormat("999000"); df.format(10); will output "999010"
Singleton Service in Weblogic Cluster
http://blog.csdn.net/mobicents/article/details/6285932
java.util.ConcurrentModificationException
Where ConcurrentModificationException raised Case 1: update value Entries during traverse Map in same Thread java.util.ConcurrentModificationException will be raised in following java code: Map<String, String> pendingCorrelations = new Hashtable<String, String>(); pendingCorrelations.put("a", "a1")…
Scheduled ThreadPool Executor suppressed or stopped after error happen
ScheduledThreadPoolExecutor Execution periodic Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given period; that is executions will commence after initialDelay then initialDelay+period, then initialDelay + 2 * period, and s…
Memory Leak analyze
Shallow Heap Size Shallow size is the amount of memory allocated to store the object itself, not taking into account the referenced objects. Retained Heap Size Retained size of an object is its shallow size plus the shallow size of the Objects that are accessible, directly or indirectly, only from …
Wheels: Common utilities reuse and design
Search-->Copy-->Small Modification-->Delivery with product...-->Search again-->Copy and modify again-->...Or Rewrite-->Test-->delivery with product...Rewrite-->Test-->delivery with product-->... We experience the infinitely cycle in different projects when coding some utility functions. Sometimes, …
2012-02-18 05:57 · Project Management · Java · 评论(0)
Java Exception Design
Talk something used to happen in projects. Java basic Exception Struts global exception handler design.
Batch Processing
Batch Processing has to be concerned during enterprise application design and integration test. Batch Processing Concerns Normally, it refer to three problems. Memory Resource consuming There could be Memory Leak, OutOfMemoryException or consume bulk heap size to slow down the platform response tim…
2012-02-18 05:34 · Hibernate and ORM · 评论(0)
JMX in Weblogic
Here I would like to list some topics I used to search or study. MBean Servers in Weblogic The JVM for an Administration Server maintains three MBean servers provided by BEA and optionally maintains the platform MBean server, which is provided by the JDK itself: Domain Runtime MBean Server : MBeans…
Clean Code (1): Meaningful Method Signature
Remove useless method Remove method never referenced If method or API is not used any more, it is better to remove them rather than keep them. Version control/management tools should/will keep old version for you. Method naming shortly and easy to understood its propose Attributes in signature shou…
2012-02-10 21:31 · Project Management · 评论(0)
Answer Questions or Give solutions Consistent and Entirely
Before answer a technical problem or give workaround to a issue, make sure: Understand the context of people who ask questions. Where the issue comes from or where it could from. Find out solution Impact on other components Sometimes, answers in general workds could solve the problem. But if the ba…
2012-02-10 18:59 · Project Management · 评论(0)
Continuous Improvement (1): Delivery Features as Easy and Stable as possible
We should delivery features as easily as possible. We should delivery features as stable as possible. In development phase, make sure all error use case coverred and valid before submitting. Sometimes, two more line code could improve User Experience a lot.
2012-02-10 18:22 · Project Management · 评论(0)
Java String Charset Encoding
Charset Charset is a named mapping between sequences of sixteen-bit Unicode code units and sequences of bytes. 1 byte = 8 bits, byte represent the int value from 0x00 through 0xFF. In ASC-II, we use a mapping to represent characters. For example, Charsets are named by strings composed of the follow…
Weblogic 11g JSP cache
Normally, jsp_servlet classes will be cached by Weblogic 11g in: {BEA_WLS}\user_projects\domains\yourdomain\servers\yourserver\tmp\_WL_user\your_app_name We always meet a strange problem: why JSP page is not up to date even after restart/redeploy application? This is mainly because the cache is not…