This discussion is archived
0 Replies Latest reply: Feb 2, 2013 4:42 AM by AtulSingh RSS

Error - cannot be dereferenced

AtulSingh Newbie
Currently Being Moderated
I am using a piece of code to type cast a value to an ID -
Code :
for(DataElement itrDataEle : de.getList("ENRL_FLD").getDataElements()){
                         
                         if(((OrderField_Id)itrDataEle.getPrimaryRow().getId()).getSequence().equals(empTypeSeq))
                              if(((OrderField_DTO)itrDataEle.getPrimaryRow()).getCharacteristicValue().trim().equals(Constants.EMPLOYEE_CHAR_VAL))
                                   isEmployee = true;
                              else
                                   isEmployee = false;

                         if(((OrderField_Id)itrDataEle.getPrimaryRow().getId()).getSequence().equals(empNumSeq)) {
                              enteredEmpNum = ((OrderField_DTO)itrDataEle.getPrimaryRow()).getAdhocCharacteristicValue().trim();
                         }
                    }



This code is working fine in local system (Windows OS), but when I am deploying this code in LINUX, weblogic server it is giving cannot be dereferenced. Any body have any idea regarding this --


[java] - 2013-02-02 23:48:44,245 [main] WARN (tools.artifactgen.MaintenanceObjectValidator) MaintenanceObject 'F1-BUS SVC ' has errors:
[java] - 2013-02-02 23:48:44,245 [main] WARN (tools.artifactgen.MaintenanceObjectValidator) Table F1_SCHEMA defined on MaintenanceObject is not an owned child in the annotation for businessService
[java] - 2013-02-02 23:48:44,257 [main] INFO (tools.artifactgen.ArtifactGenerator) Done -, time 14,926.205 ms
[echo] ...Finished generate artifacts

compile:
[echo] ...Compile cm
[javac] Compiling 327 source files to /ccbapp/CCBDEV/java/target/cm
[javac] /ccbapp/CCBDEV/java/source/cm/com/splwg/cm/domain/customerinfo/order/CmEnrollmentServiceExt.java:95: com.splwg.base.api.DataTransferObject<? extends com.splwg.base.api.BusinessEntity> cannot be dereferenced
[javac] if(((OrderField_Id)itrDataEle.getPrimaryRow().getId()).getSequence().equals(empTypeSeq))
[javac] ^
[javac] /ccbapp/CCBDEV/java/source/cm/com/splwg/cm/domain/customerinfo/order/CmEnrollmentServiceExt.java:101: com.splwg.base.api.DataTransferObject<? extends com.splwg.base.api.BusinessEntity> cannot be dereferenced
[javac] if(((OrderField_Id)itrDataEle.getPrimaryRow().getId()).getSequence().equals(empNumSeq)) {
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors

BUILD FAILED
/ccbapp/CM_packaging/etc/CMbuild.xml:90: Compile failed; see the compiler error output for details.

Total time: 24 seconds
130202:234851 <crit> ant build /ccbapp/CM_packaging/etc/CMbuild.xml failed. Exiting.
130202:234851 <crit> Log file is /ccbapp/CMExtarct/CM2.14.1-12-06-02-1614/applyCM.CCBDEV.CCBDEV2.log
[ccbadm@CCBDEV2 CM2.14.1-12-06-02-1614]$


Thanks,
@tul.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points