Win a copy of Fixing your Scrum this week in the Agile forum!

virat dhoni

Greenhorn
+ Follow
since Feb 11, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by virat dhoni

below is my encryption file where at x****** iam getting this error

package com.masa.utils;
import java.io.InputStream;
import java.security.MessageDigest;
import java.util.Arrays;
import java.util.Properties;

import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;

import sun.misc.BASE64Decoder;



public class Des_3_Algo {

 public static byte[] encrypt(String message) throws Exception {
       final MessageDigest md = MessageDigest.getInstance("md5");
       final byte[] digestOfPassword = md.digest("HG58YZ3CR9"
               .getBytes("utf-8"));
       final byte[] keyBytes = Arrays.copyOf(digestOfPassword, 24);
       for (int j = 0, k = 16; j < 8;) {
           keyBytes[k++] = keyBytes[j++];
       }

       final SecretKey key = new SecretKeySpec(keyBytes, "DESede");
       final IvParameterSpec iv = new IvParameterSpec(new byte[8]);
       final Cipher cipher = Cipher.getInstance("DESede/CBC/PKCS5Padding");
       cipher.init(Cipher.ENCRYPT_MODE, key, iv);

       final byte[] plainTextBytes = message.getBytes("utf-8");
       final byte[] cipherText = cipher.doFinal(plainTextBytes);

       return cipherText;
   }

   public static String decrypt(byte[] message) throws Exception {
       final MessageDigest md = MessageDigest.getInstance("md5");
       final byte[] digestOfPassword = md.digest("HG58YZ3CR9"
               .getBytes("utf-8"));
       final byte[] keyBytes = Arrays.copyOf(digestOfPassword, 24);
       for (int j = 0, k = 16; j < 8;) {
           keyBytes[k++] = keyBytes[j++];
       }

       final SecretKey key = new SecretKeySpec(keyBytes, "DESede");
       final IvParameterSpec iv = new IvParameterSpec(new byte[8]);
       final Cipher decipher = Cipher.getInstance("DESede/CBC/PKCS5Padding");
       decipher.init(Cipher.DECRYPT_MODE, key, iv);
     
       final byte[] plainText = decipher.doFinal(message);--------->x******

       return new String(plainText, "UTF-8");
   }
   
 
}
1 month ago
iam now facing this issue The method getStudentByCourse(String) is undefined for the type StudentRepositoryImpl
1 month ago
now showing this log org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'studentController': Unsatisfied dependency expressed through field 'service'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'studentService': Unsatisfied dependency expressed through field 'repo'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'studentRepository' defined in com.example.emp.repository.StudentRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested exception is org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract java.util.List com.example.emp.repository.StudentRepository.findbystudentname(java.lang.String)! Reason: Failed to create query for method public abstract java.util.List com.example.emp.repository.StudentRepository.findbystudentname(java.lang.String)! No property findbystudentname found for type Student!; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.example.emp.repository.StudentRepository.findbystudentname(java.lang.String)! No property findbystudentname found for type Student!
1 month ago
thank you very much for the for the reply and sorry for the late reply this issue was resolved thank you very much i appreciate your effort and time
1 month ago
means i want to ask about jasper as this error is coming inside jasper file
1 month ago
sure this is my stacktrace

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. The operator + is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal
               value = new Double( (((java.lang.Double)parameter_conversionRate.getValue()).doubleValue()) > 0 ? (((java.lang.String)parameter_currencySymbol.getValue())+" "+ String.format("%.2f",new Double( ((java.math.BigDecimal)field_amount_due.getValue()).doubleValue() + ((java.math.BigDecimal)field_balance_due.getValue()).doubleValue())* ((java.lang.Double)parameter_conversionRate.getValue()).doubleValue())) :  ( ((java.lang.String)parameter_currencySymbol.getValue())+" "+String.format("%.2f",((java.math.BigDecimal)field_amount_due.getValue()) + ((java.math.BigDecimal)field_balance_due.getValue())))); //$JR_EXPR_ID=40$
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       <-------------------------------------------------------------------------------------------------------->
2. The operator + is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal
               value = new Double( (((java.lang.Double)parameter_conversionRate.getValue()).doubleValue()) > 0 ? (((java.lang.String)parameter_currencySymbol.getValue())+" "+ String.format("%.2f",new Double( ((java.math.BigDecimal)field_amount_due.getOldValue()).doubleValue() + ((java.math.BigDecimal)field_balance_due.getOldValue()).doubleValue())* ((java.lang.Double)parameter_conversionRate.getValue()).doubleValue())) :  ( ((java.lang.String)parameter_currencySymbol.getValue())+" "+String.format("%.2f",((java.math.BigDecimal)field_amount_due.getOldValue()) + ((java.math.BigDecimal)field_balance_due.getOldValue())))); //$JR_EXPR_ID=40$
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             <-------------------------------------------------------------------------------------------------------------->
3. The operator + is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal
               value = new Double( (((java.lang.Double)parameter_conversionRate.getValue()).doubleValue()) > 0 ? (((java.lang.String)parameter_currencySymbol.getValue())+" "+ String.format("%.2f",new Double( ((java.math.BigDecimal)field_amount_due.getValue()).doubleValue() + ((java.math.BigDecimal)field_balance_due.getValue()).doubleValue())* ((java.lang.Double)parameter_conversionRate.getValue()).doubleValue())) :  ( ((java.lang.String)parameter_currencySymbol.getValue())+" "+String.format("%.2f",((java.math.BigDecimal)field_amount_due.getValue()) + ((java.math.BigDecimal)field_balance_due.getValue())))); //$JR_EXPR_ID=40$
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       <-------------------------------------------------------------------------------------------------------->
3 errors
.
1 month ago
+ is undefined for the argument type(s) java.math.bigdecimal java.math.bigdecimal error in jasper how can i resolve it while performing adding of expression
1 month ago
javax.servlet.ServletException: Circular view path [error]: would dispatch back to the current handler URL [/error] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)

iam getting this error can anybody help me in this
if you need mroe information kindly tell
2 months ago
iam getting this error friends please help
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [error], template might not exist or might not be accessible by any of the configured Template Resolvers

if you want more info please ask
2 months ago
even after entering the username and password iam still facing the issue
2 months ago
this is my application .properties file

`    server.context-path=/moneymonster
management.security.enabled=false

#spring.datasource.url=jdbc:mysql://localhost:3306/money_monster?zeroDateTimeBehavior=convertToNull&createDatabaseIfNotExist=true
spring.datasource.url=jdbc:sqlserver://localhost:1433;databaseName=projej30521
spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.datasource.username=
spring.datasource.password=

#Jpa
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect

#batch
spring.batch.job.enabled=false

#security.user.password=password

#jsp
spring.mvc.view.prefix: /view/
spring.mvc.view.suffix: .jsp`



the application.propeties file consist of configuration of hibernate and jpa and sql server 12 configuration kindly help if within the community anyone want more information
2 months ago
thank you sir for your support
2 months ago
how to copy a folder from remote desktop connection 1 to remote desktop connection 2
3 months ago