Hello Zack,
Thanks. I coded SpiffyUINavigation panel 1 for Auth, panel2 for Forms and panel3 for Mvsb (fancier only).
I modified CrayonColors.java with the following code for authentication:
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException,
IOException
{
/**********************authentication********************************/
int result = 0;
String user = request.getPathInfo();
if (user.startsWith("/")) {
user = user.substring(1);
}
//registered users
JSONArray users = Users.getUserList();
int len = users.length();
try {
for (int i = 0; i < len; i++) {
if (!users.isNull(i) && user.equals(users.getJSONObject(i).getString("user"))) {
// found it!
result = 1;
}
}
} catch (JSONException je) {
LOGGER.throwing(User.class.getName(), "findUserInArray", je);
}
/***************************end**************************************/
if(result == 1) {
JSONArray fullColorArray;
String query = request.getParameter("q");
I get following error in eclipse:
14:44:17.932 [ERROR] [org.spiffyui.spiffynavigation.index] Uncaught exception escaped
java.lang.NullPointerException: null
at org.spiffyui.client.widgets.multivaluesuggest.MultivalueSuggestBoxBase.handleQueryResponse(MultivalueSuggestBoxBase.java:1001)
at org.spiffyui.client.widgets.multivaluesuggest.MultivalueSuggestBox$1.onSuccess(MultivalueSuggestBox.java:86)
at org.spiffyui.client.rest.RESTility$RESTRequestCallback.handleSuccessfulResponse(RESTility.java:1233)
at org.spiffyui.client.rest.RESTility$RESTRequestCallback.onResponseReceived(RESTility.java:1196)
at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:619)
I also attached image which hangs but normally should display some data.
This happens if userID is valid or not.
Please help.
regards.
AM Mohan Rao