Posts by thiaguerd • 146 points
6 posts
-
2
votes1
answer4784
viewsA: Exception error in thread "main" java.lang.Nullpointerexception
The problem is here: this.vetor1[quantiadade] = vet1; this.vetor2[quantiadade] = vet2; You need to instantiate the vectors before using them. public Soma(int vet1, int vet2, int quantiadade) {…
-
0
votes2
answers3959
viewsA: Problems with UTF8 in postgres
In the glassfish-web.xml file that is in the WEB-INF folder add: <glassfish-web-app error-url=""> <parameter-encoding default-charset="UTF-8"/> ... </glassfish-web-app>…
-
3
votes3
answers670
viewsA: How to sort sql queries in the RUBY on Rails model?
If you have the Students model you don’t need to mount sql Students.where("registration = ?", params[:registration]).where("password = ?",params[:password]).order(:name) If you don’t have the…
-
0
votes2
answers3639
viewsA: Validation of digital signature
To calculate the Digestvalue 1 add the xmlns namespace with the value http://www.portalfiscal.inf.br/nfe in the tag infNFe 2 canonize the tag infNFe 3 Calculate Digest using SHA1 and convert the…
-
2
votes1
answer2258
viewsA: NFE Digital Signature(Electronic Invoice)
To calculate the Digestvalue 1 add the xmlns namespace with the value http://www.portalfiscal.inf.br/nfe in the tag infNFe 2 canonize the tag infNFe 3 Calculate Digest using SHA1 and convert the…
-
3
votes1
answer278
viewsA: How to access a Managedbean through an external js file?
creates a button where the action is what you want <h:commandButton action="#{cadastroMaterialController.salvar()}"/> creates an id for that button <h:commandButton…