Ticket #282 (closed: fixed)

Opened 4 years ago

Last modified 4 years ago

cannot add sample (Add Sample page)

Reported by: zak Owned by: watera2
Priority: normal Milestone:
Component: Database Version:
Severity: major Keywords: RESOLVED
Cc:

Description

I fill out all the required info and hit save. I get this error:

com.google.gwt.user.client.rpc.StatusCodeException?: The call failed on the server; see server log for detailsThe call failed on the server; see server log for details

tomcat log says:

java.lang.NullPointerException?

at edu.rpi.metpetdb.server.security.permissions.PermissionInterceptor?.isPublic(PermissionInterceptor?.java:98) at edu.rpi.metpetdb.server.security.permissions.PermissionInterceptor?.checkPermissions(PermissionInterceptor?.java:59) at edu.rpi.metpetdb.server.security.permissions.PermissionInterceptor?.onFlushDirty(PermissionInterceptor?.java:141)

this is on my local machine

Change History

Changed 4 years ago by watera2

make sure the file is up to date, the method should look like

private boolean isPublic(String[] propertyNames, Object[] state) {

for (int i = 0; i < propertyNames.length; ++i) {

if (propertyNames[i].equals("publicData")) {

if (state[i] != null)

return Boolean.parseBoolean(state[i].toString());

else

return false;

}

} return false;

}

Changed 4 years ago by zak

i have the latest from the repo. does it work for you?

Changed 4 years ago by watera2

i was able to reproduce it, fix will be committed later

Changed 4 years ago by watera2

  • keywords RESOLVED added
  • owner set to watera2
  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.