Hi, i'm working with a javascript function that fires a netbeans function (deployed through glassfish) that stores data in 119 columns in a postgresql database. My URL right now is:
that is like 2568 characters long, and since i use Apache 2.2.15 (for windows 2008 server edition), i get error on the first time i click. So I would like to change the length of my URL with something like this:
that is 1990 characters long. The problem is that I have been able to change &usuario= to &u= without problem, but then when i tried to change &gano_sal_neto= to &gsn= i get error. I changed gano_sal_neto to gsn in these files:
- the javascript file of the webpage;
- the netbeans files;
- the php code on the drupal page;
- i created a new column in postgresql.
What am I missing to make this change work and get a new and shorter URL working?
If you are sending such a long query string, you might want to consider posting that data instead even though the max number of characters in a URL is 2083.
As to the renaming of of query string parameters, I see no reason why you cannot change gano_sal_neto to gsn. It's not a reserved as far as I know. There source of the error is certainly somewhere else.
By the way, what does the error message say?
error:
java.lang.NullPointerException
at com.mirodinero.web.calculos.Calculos.getTotalGano(Calculos.java:182)
at com.mirodinero.web.calculos.CalcularSegmentos.ejecutar(CalcularSegmentos.java:65)
at com.mirodinero.web.servlets.setMisDatos.actualizarSegmentos(setMisDatos.java:543)
public void ejecutar() {
boolean existe = true;
DatosUsuario datosUser = datosUsuarioFacade.findById(atributosUsuario.getIdUsuario());
if (datosUser != null) {
List<Cartera> lc = carteraFacade.findByIdUsuario(atributosUsuario.getIdUsuario());
Calculos c = new Calculos(datosUser, accionesDatosFacade, fondosDatosFacade, bonosDatosFacade, lc);
ahorroLiquido = c.getTengoDisponible() / c.getTotalGasto();
ingresoAnual = c.getTotalGano(); /*this is line 65 */
diferenciaGanoGasto = c.getSupDefTotal();//indica lo que gano menos lo que gasto
modificarAtributos(c, datosUser);
}
and actualizarSegmentos is:
private void actualizarSegmentos(String usuario) {
AtributosUsuario a = atributosUsuarioFacade.find(usuario);
if (a != null) {//lista vacia
new CalcularSegmentos(a, segmentosUsuarioFacade, datosUsuarioFacade, carteraFacade, accionesDatosFacade, fondosDatosFacade, bonosDatosFacade, atributosUsuarioFacade).ejecutar();
}
}
on the postgres log file, i get:
Code:
2012-05-22 11:10:46 CESTLOG: could not receive data from client: Unknown winsock error 10061
2012-05-22 11:10:46 CESTLOG: unexpected EOF on client connection
2012-05-22 11:19:12 CESTLOG: CreateProcess call failed: Unknown winsock error 10004 (error code 1115)
2012-05-22 11:19:12 CESTLOG: could not fork autovacuum worker process: Unknown winsock error 10004
but i don't know what does it mean. Maybe is there something i should do with pgadmin to "upgrade" the database to the changes:i added a column named gsn -real and default 0 like gano_sal_neto-, without deleting the gano_sal_neto (that still has stored the data of the users).
Bookmarks