Oracle Coherence is a JVM-based Clustering technology. sometimes, when you start the jvms on windows environment, you may get some strange error. like this,
java.net.SocketException: Unrecognized Windows Sockets error: 0
: Cannot bind
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:108)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCl
uster.CDB:3)
at com.tangosol.coherence.component.util.SafeCluster.restartCluster(Safe
Cluster.CDB:7)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluste
r(SafeCluster.CDB:27)
at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.C
DB:2)
at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:998)
at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(Defaul
double check you config file, it’s all correct.
then check whether you have enabled some network acceleration solution, Like Microsoft ISA Client, or Google Accelerator. they try to hooked up with windows socket provider. disable them, then problem gone.
have fun.
coherence user guide: http://coherence.oracle.com/display/COH35UG/Coherence+3.5+Home
some other googled exception:
Friday, April 16, 2010
Wednesday, April 14, 2010
Unable to open trace file '/sdcard/Mytwitter.trace': Permission denied
in android, you can enable trace by adding code like
Debug.startMethodTracing("mm.trace");
then the system will dump one big tracefile to /sdcard/mm.trace
at first, you may get error like
Unable to open trace file '/sdcard/mm.trace': Permission denied
when you view the permission, it's fine.
the trick is that start from 1.6, it need one permission so tat you could write something to sdcard
the permission is
android.permission.WRITE_EXTERNAL_STORAGE
public static final String WRITE_EXTERNAL_STORAGE
Since: API Level 4
Allows an application to write to external storage
Constant Value: "android.permission.WRITE_EXTERNAL_STORAGE"
Debug.startMethodTracing("mm.trace");
then the system will dump one big tracefile to /sdcard/mm.trace
at first, you may get error like
Unable to open trace file '/sdcard/mm.trace': Permission denied
when you view the permission, it's fine.
the trick is that start from 1.6, it need one permission so tat you could write something to sdcard
the permission is
android.permission.WRITE_EXTERNAL_STORAGE
public static final String WRITE_EXTERNAL_STORAGE
Since: API Level 4
Allows an application to write to external storage
Constant Value: "android.permission.WRITE_EXTERNAL_STORAGE"
Monday, April 12, 2010
WARNING: Application does not specify an API level requirement
when you forget to specify the minimum SDK version during the project setup, you may get the WARNING like
WARNING: Application does not specify an API level requirement
fix is easy, put the minimum SDK version into the manifest file
<uses-sdk minsdkversion="7"/>
WARNING: Application does not specify an API level requirement
fix is easy, put the minimum SDK version into the manifest file
<uses-sdk minsdkversion="7"/>
Tuesday, July 31, 2007
WCF 3.5 Beta2
in WCF 3.5 beta2 , there is a built-in support for Json/Pox support. the service can intercept the client request and bring the Json style object to the client. here is a 5 minutes demo.
first. Add a ajax enabled WCF Service.

then. implement a service which return a object

first. Add a ajax enabled WCF Service.

then. implement a service which return a object

in the webpage, you can add a service reference to the scriptmanager.
which will render a script proxy to invoke the service .
then in code, can call the wcf service.
function ShowfamousPerson()
{ tempuri.org.HelloWorld.FamousPerson(0, OnComplete); } //you can change the namespace by adding a attribute
function OnComplete(obj) { alert("welcome : " + obj.Name); }
Thursday, July 19, 2007
next week 8/7C
After 4 weeks stay at USA, I find a strange pattern to tell the forcast time schedule in TV. they always say something like the program will be on next Monday, 8/7c. (eight , seven centrol)
So what's the exect time of the forcast means?
try google it, there are two answers.
If the example is 8/7c. Then the program airs at 8 o'clock Eastern and 7 o'clock Central.
Another say the program airs at 8 o'clock you local time and 7 o'clock Central. which one is correct?
the united states mainland has four time zones:
Eastern(-5), Central(-6), Mountain(-7), Pacific(-8).
So what's the exect time of the forcast means?
try google it, there are two answers.
If the example is 8/7c. Then the program airs at 8 o'clock Eastern and 7 o'clock Central.
Another say the program airs at 8 o'clock you local time and 7 o'clock Central. which one is correct?
the united states mainland has four time zones:
Eastern(-5), Central(-6), Mountain(-7), Pacific(-8).
Subscribe to:
Comments (Atom)