Monday, November 19, 2007

CANNOT_PLAY_SCRIPT

If you get this error :
An internal error occurred during: "Launching baru".
Can't find resource for bundle java.util.PropertyResourceBundle, key CANNOT_PLAY_SCRIPT

Just restart your developer suit

It works for me :D

Friday, November 16, 2007

Prefix URL

We should declare prefix URL as global variable
For example :
public final static byte[] prefix = { '/', 'm', 's', 'g' };

this prefix will be called by one or more html pages
Here is example for form with post action
action="msg"
or href URL :
href="msg"

Afterwards, we should add it in SCWS container. Type it in your servlet constructor.
servletContainer.add(this, new ByteString(prefix));

Put your sensitive variable in RAM

// declare variable
byte[] requestParameterBuffer;
// allocate it in RAM , ensure the memory length
requestParameterBuffer = JCSystem.makeTransientByteArray(
(short) (queryString.length() * 2), JCSystem.CLEAR_ON_RESET);

JCSystem reset / clean memoryOptions :
  • JCSystem.CLEAR_ON_DESELECT
  • JCSystem.CLEAR_ON_RESET