cancel
Showing results for 
Search instead for 
Did you mean: 

"cannot find symbol" error when call a method in other class

Former Member
0 Kudos

Hi,

I am facing a wired error. The Java application was created using JDK1.4.2 on portal 7.0. Portal 7.0 is used as web application server, no portal authorization was used.

Then portal was upgraded to 7.4. So this application was rebuilt using JDK 1.6.0 with no code change.

Now I am going to do a little enhancement on this application, but got compile error in JSP when ran on portal 7.4.

in JSP, before body tag,

<%

List appls = new ArrayList();

appls = new SQLDataManager().getApplicationAreas();

%>

In SQLDataManager.java,

public class SQLDataManager {

  private Connection getSQLConnection() throws NamingException,SQLException {

  Connection con = null;

  try{

  InitialContext ctx = new InitialContext();

  DataSource ds = (DataSource)ctx.lookup("jdbc/MSSQLDataSource");

  con = ds.getConnection();

  }catch (NamingException ne){

  ne.printStackTrace();

  throw ne;

  }catch (SQLException sqle){

  sqle.printStackTrace();

  throw sqle;

  }

  return con;

  }

  public List getApplicationAreas(){

  List applAreas = new ArrayList();

  Connection con = null;

  PreparedStatement  pstmt = null;

  ResultSet rs = null;

  try{

  con = getSQLConnection();

  if ( con != null ){

  pstmt = con.prepareStatement("{call dbo.sp_ri_getApplicationAreas}");

  rs = pstmt.executeQuery();

  if (rs!=null){

  while (rs.next()) {

  applAreas.add(rs.getString("application_area")) ;

  }

  }

  rs.close();

  }

  }catch (SQLException sqle){

  sqle.printStackTrace();

  }catch (NamingException ne){

  ne.printStackTrace();

  }catch (Exception e){

  e.printStackTrace();

  }finally {

  if (rs != null ) rs = null;

  if (pstmt != null) pstmt = null;

  try {

  if ( con != null ) { con.close(); con = null; }

  }catch (SQLException sqle){

  sqle.printStackTrace();

  }

  }

  return applAreas;

  }

  public List getSearchResults(String kdbNo, String title, String desc, String steps, String applicationArea, String author){

  List results = new ArrayList();

  Connection con = null;

  PreparedStatement  pstmt = null;

  ResultSet rs = null;

  if (kdbNo.equals("")) kdbNo = "%";

  else kdbNo = "%"+kdbNo+"%";

  if (title.equals("")) title = "%";

  else title = "%"+title+"%";

  if (desc.equals("")) desc = "%";

  else desc = "%"+desc+"%";

  if (steps.equals("")) steps = "%";

  else steps = "%"+steps+"%";

  if (author.equals("")) author = "%";

  else author = "%"+author+"%";

  //System.err.println("KDB SQL manager: " +kdbNo+","+title+","+desc+","+steps+","+applicationArea+","+author);

  try{

  con = getSQLConnection();

 

  if ( con != null ){

  pstmt = con.prepareStatement("{call dbo.sp_ri_searchDocRepository (?, ?, ?, ?, ?, ?)}");

  pstmt.setString(1, kdbNo);

  pstmt.setString(2, title);

  pstmt.setString(3, desc);

  pstmt.setString(4, steps);

  pstmt.setString(5, applicationArea);

  pstmt.setString(6, author);

  rs = pstmt.executeQuery();

  if (rs!=null){

  while (rs.next()) {

  RiSearchObject aResult = new RiSearchObject();

  aResult.setId(rs.getInt("id"));

  aResult.setKdbNo(rs.getString("KDB_Number"));

  aResult.setTitle(rs.getString("Title"));

  aResult.setDesc(rs.getString("Description"));

  aResult.setSteps(rs.getString("Steps"));

  aResult.setRefereceLinks(rs.getString("Reference_Links"));

  aResult.setApplicationArea(rs.getString("Application_Area"));

  aResult.setAuthor(rs.getString("Author"));

  aResult.setCreatedDate(rs.getString("Created_Date"));

  if (rs.getString("Changed_Date")==null)

  aResult.setChangedDate("");

  else

  aResult.setChangedDate(rs.getString("Changed_Date"));

  results.add(aResult);

  }

  }

  rs.close();

  }

  }catch (SQLException sqle){

  sqle.printStackTrace();

  }catch (NamingException ne){

  ne.printStackTrace();

  }catch (Exception e){

  e.printStackTrace();

  }finally {

  if (rs != null ) rs = null;

  if (pstmt != null) pstmt = null;

  try {

  if ( con != null ) { con.close(); con = null; }

  }catch (SQLException sqle){

  sqle.printStackTrace();

  }

  }

  return results;

  }

}

getApplicationAreas() method was the one newly added. getSearchResults() method ran fine. the default trace shows error as below:


com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error in executing the compilation process: [ Compilation Failed! Exit Code=1

Command line executed: /usr/sap/TD4/J00/exe/sapjvm_6/bin//javac @/usr/sap/TD4/J00/j2ee/cluster/server0/compilerTempDir/compiler_Apr_29_at_13.32.1_97/O1430328721029.txt @/usr/sap/TD4/J00/j2ee/cluster/server0/compilerTempDir/compiler_Apr_29_at_13.32.1_97/S1430328721029.txt

Raw command line executed: /usr/sap/TD4/J00/exe/sapjvm_6/bin//javac -source 1.5 -target 1.5 -encoding UTF-8 -d /usr/sap/TD4/J00/j2ee/cluster/apps/sap.com/RISearchEAR/servlet_jsp/RISearch/work -sourcepath "/usr/sap/TD4/J00/j2ee/cluster/apps/sap.com/RISearchEAR/servlet_jsp/RISearch/work/:" -classpath ".:/usr/sap/TD4/J00/exe/jstart71.jar:/usr/sap/TD4/J00/exe/sapjvm_6/lib/jvmx.jar:/usr/sap/TD4/J00/exe/sapjvm_6/lib/jvmx_tools.jar:/usr/sap/TD4/J00/exe/jre/lib/iqlib.jar:/usr/sap/TD4/J00/exe/sapjvm_6/lib/tools.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/boot/sap.com~tc~bl~jkernel_boot~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/boot/jaas.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~bytecode~library.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/boot/memoryanalyzer.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/jperflib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/jta.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~bytecode~library.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~cache_api~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~dsrhttpclient.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~frame~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~gui~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~iqlib~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jdsr~jdsr.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_cache~frame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_classload~frame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_cluster~frame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_configuration~frame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_database~frame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_licensing~frame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_locking~frame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_log~api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_pool~frame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_service~frame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_thread~frame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~jkernel_util~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~bl~opensqlkernel~implOpenSQLFrame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~exception~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~je~offline_deploy~frame.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~je~sessionmgmt~api_assembly.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~logging~java~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/system/sap.com~tc~logging~java~implPerf.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/activation_api_ri/lib/activation.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/servlet/lib/servlet.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/jaxrpc_api/lib/jaxrpc-api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~bcanalysis/lib/private/sap.com~tc~je~bcanalysis~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~bl~reference_graph/lib/tc~bl~reference_graph_api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/container_api/lib/private/sap.com~tc~je~container_api~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/webservices/lib/private/sap.com~tc~je~webservices_api~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/cross_api/lib/private/sap.com~tc~je~cross_api~API.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/core_lib/sap.com~tc~antlr~runtime.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/core_lib/sap.com~tc~bl~config~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/core_lib/sap.com~tc~bl~cpt~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/core_lib/sap.com~tc~bl~guidgenerator~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/core_lib/sap.com~tc~bl~jarm~jarm.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/core_lib/sap.com~tc~bl~opensqlkernel~implOpenSQL.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/core_lib/sap.com~tc~bl~opensqlkernel~implOpenSQLPort.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/core_lib/sap.com~tc~dd~db~dictionarydatabase~implDictionaryDatabase.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/core_lib/sap.com~tc~je~bootstrap_core_lib~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/core_lib/sap.com~tc~sec~secstorefs~java~core.jar:/usr/sap/TD4/J00/exe/db2jcc.jar:/usr/sap/TD4/J00/exe/db2jcc_license_cisuz.jar:/sapmnt/TD4/global/security/lib/engine/iaik_jce.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/log_api/lib/private/sap.com~tc~je~log_api~API.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/mail_api_ri/lib/mail.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/mail-activation-iaik/sap.com~tc~je~javamail_lib~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/mail-activation-iaik/iaik_jsse.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/mail-activation-iaik/iaik_smime.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/mail-activation-iaik/iaik_ssl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/mail-activation-iaik/w3c_http.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~i18n~verify~intf/lib/sap.com~tc~i18n~verify~intf~jar~IMPL.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~i18n~cache/lib/sap.com~tc~i18n~cache~jar~IMPL.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~i18n~calendar/lib/sap.com~tc~i18n~calendar~jar~ICU4J_IMPL.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~i18n~calendar/lib/sap.com~tc~i18n~calendar~jar~IMPL.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~i18n~cpbase/lib/sap.com~tc~i18n~cpbase~jar~IMPL.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/com.sap.security.api.sda/lib/private/sap.com~tc~sec~ume~api~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/com.sap.security.api.sda/lib/private/sap.com~tc~sec~ume~perm~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/sapxmltoolkit/lib/sap.com~tc~sapxmltoolkit~sapxmltoolkit.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/security_api/lib/private/sap.com~tc~je~security_api~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/transactionext_api/lib/private/sap.com~tc~bl~transactionext~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/jaxr_api/lib/jaxr-api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~bl~dsrhttpclient/lib/sap.com~tc~bl~dsrhttpsclient.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/httpclient/lib/sap.com~httpclient.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/p4lib/lib/sap.com~p4lib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/keystore_api/lib/private/sap.com~tc~je~keystore_api~API.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/shell_api/lib/private/sap.com~tc~je~shell_api~API.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/tc~sec~certrevoc~interface/lib/private/sap.com~tc~sec~certrevoc~interface~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/j2eeca/lib/connector.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/security.class/lib/sap.com~tc~sec~compat.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/security.class/lib/sap.com~tc~sec~csi.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/security.class/lib/sap.com~tc~sec~destinations~lib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/security.class/lib/sap.com~tc~sec~https.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/security.class/lib/sap.com~tc~sec~jaas.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/security.class/lib/sap.com~tc~sec~saml~toolkit.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/security.class/lib/sap.com~tc~sec~ssf.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/security.class/lib/sap.com~tc~sec~userstore.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/security.class/lib/sap.com~tc~sec~util0.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/security.class/lib/sap.com~tc~sec~xmlbind.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc.httpclient/lib/private/sap.com~tc~clients~http~all.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/tc~sec~destinations~interface/lib/private/sap.com~tc~sec~destinations~interface_api~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/javax~persistence~api/persistence-api-1.0.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/compilation_lib/lib/private/sap.com~tc~bl~compilation~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/javax~annotation~api/lib/annotation-api-1.0.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/jaxb20/lib/jaxb-impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/jaxb20/lib/jaxb-xjc.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~bl~base_webservices_lib/lib/jaxm-api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~bl~base_webservices_lib/lib/sap.com~tc~bl~base_webservices_lib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/ejb_api/lib/ejb-3_0-api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~sca~api/lib/sap.com~tc~je~sca_api_api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~sca~api/lib/sap.com~tc~je~sca_api_core.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/tc~bl~deploy_api/lib/sap.com~tc~bl~deploy~api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~jmx/lib/private/sap.com~tc~bl~pj_jmx~Impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/sdo/lib/sap.com~sdo.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/sdo/lib/sap.com~sdo~api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/sdo/lib/sap.com~sdo~api~extension.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/tc~je~sca~spi/lib/com.sap.tc.je.sca_spi.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/tc~je~sca~spi/lib/sap.com~tc~je~sca_gen_api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/tc~je~sca~spi/lib/sap.com~tc~je~sca_gen_core.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/appcontext_api/lib/private/sap.com~tc~je~appcontext_api~API.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/webservices_lib/lib/private/sap.com~tc~je~webservices_lib~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/jms_api/lib/jms.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/jms/lib/private/jmsclient.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/ejb20/lib/ejb20.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/shell/lib/private/sap.com~tc~je~shell~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/tc~bl~accounting_infra~srv/lib/tc~bl~accounting!impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/tc~bl~accounting_infra~srv/lib/tc~bl~accounting_infra~srv_api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/timeout/lib/private/sap.com~tc~je~timeout~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/p4/lib/private/sap.com~tc~je~p4~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/jmx_notification/lib/private/sap.com~tc~je~jmx_notification~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/runtimeinfo/lib/private/sap.com~tc~je~runtimeinfo~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/jmx/lib/private/sap.com~tc~je~jmx~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/jmx/lib/private/sap.com~tc~je~jmx~impl~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~jacc~plb/lib/jacc-1_1-fr-class.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~injection~lib/lib/tc~je~injection.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~mmodel~lib/lib/private/sap.com~tc~je~mmodel~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/naming/lib/private/sap.com~tc~je~naming~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~bl~txmanager~plb/lib/private/sap.com~tc~bl~txmanagerimpl~plb~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/jts/lib/jts.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/idl/lib/idl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/csiv2_api/lib/private/sap.com~tc~bl~csiv2~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/iiop/lib/private/sap.com~tc~je~iiop~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/file/lib/private/sap.com~tc~je~file~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/log_configurator/lib/private/sap.com~tc~je~log_configurator~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/configuration/lib/private/sap.com~tc~je~configuration~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/ejbormapping_api/lib/private/ejbormapping.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~j2eedescriptors~lib/lib/private/sap.com~tc~je~j2eedescriptors~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~ejb~metadata~model/lib/sap.com~tc~bl~ejb~metadata~model.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/orpersistence_client_lib/lib/orpersistence_client_lib_api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~orpersistence~metadata~model/lib/jpa2_xml_model.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~orpersistence~metadata~model/lib/sap.com~tc~bl~orpersistence~container~metadata~model.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~orpersistence~metadata~model/lib/sap.com~tc~bl~orpersistence~metadata~model.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~jlinee~lib/lib/sap.com~tc~jtools~jlinee~appclient.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~jlinee~lib/lib/sap.com~tc~jtools~jlinee~connector.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~jlinee~lib/lib/sap.com~tc~jtools~jlinee~ear.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~jlinee~lib/lib/sap.com~tc~jtools~jlinee~ejb.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~jlinee~lib/lib/sap.com~tc~jtools~jlinee~lib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~jlinee~lib/lib/sap.com~tc~jtools~jlinee~orpersistence.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~jlinee~lib/lib/sap.com~tc~jtools~jlinee~portalcontent.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~jlinee~lib/lib/sap.com~tc~jtools~jlinee~web.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~jlinee~lib/lib/sap.com~tc~jtools~jlin~core.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~jlinee~lib/lib/sap.com~tc~jtools~util.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/deploy/lib/private/sap.com~tc~je~deploy~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/resourceset_api/lib/private/sap.com~tc~bl~resourceset~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/resourcecontext_api/lib/private/sap.com~tc~bl~resourcecontext~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~SL~utility/lib/private/sap.com~tc~bl~sl~utility~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~bl~jarsap~sda/lib/private/sap.com~tc~bl~jarsap~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/antlr/sap.com~tc~antlr~runtime.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/txrmrepository_api/lib/private/sap.com~tc~bl~rm~repository~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/com.sap~tc~je~jmsapi/sap.com~tc~je~jmsapi~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~i18n~cp/lib/sap.com~tc~i18n~cp~jar~IMPL.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~i18n~decfloat/lib/sap.com~tc~i18n~decfloat~jar~IMPL.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~com.sap.conn.jco/lib/private/sap.com~tc~bl~jco_sapj2ee~runtime.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~i18n~saptimezone/lib/private/sap.com~tc~i18n~saptimezone~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/signature_lib/lib/signature.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/com.sap.ip.basecomps/lib/private/sap.com~tc~bl~basecomps~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~lm~nzdm~crrfrmwrk/lib/private/tc~lm~nzdm~crrfrmwrk_lib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/com.sap.security.core.sda/lib/private/sap.com~tc~sec~ume~core~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/com.sap.security.core.sda/lib/private/sap.com~tc~sec~ume~tpd~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/userstore/lib/private/sap.com~tc~je~userstore~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/txrmcontainerregistry_api/lib/private/sap.com~tc~bl~rm~container~registry~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/endpoint_api/lib/private/sap.com~tc~bl~endpoint~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/connector/lib/private/sap.com~tc~je~connector~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/dbpool/lib/private/sap.com~tc~je~dbpool~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/ts/lib/private/sap.com~tc~je~ts~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/locking/lib/private/sap.com~tc~je~locking~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/basicadmin/lib/jstartupapi.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/basicadmin/lib/jstartupimpl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/basicadmin/lib/private/sap.com~tc~je~basicadmin~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/adminadapter/lib/private/sap.com~tc~je~adminadapter~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/com.sap.mw.jco/lib/private/sap.com~tc~bl~jrfc~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/tc~sec~destinations~provider/lib/private/sap.com~tc~sec~destinations~provider~java~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/tc~lm~nzdm~crrsrv/lib/private/tc~lm~dbms~tmpl2_lib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/tc~lm~nzdm~crrsrv/lib/private/tc~lm~dbms~tpsql_lib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/tc~lm~nzdm~crrsrv/lib/private/tc~lm~nzdm~crrsrv_lib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/com.sap.security.core.ume.service/lib/private/sap.com~tc~sec~ume~service~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/security/lib/private/sap.com~tc~je~security~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/applocking/lib/private/sap.com~tc~je~applocking~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/ejbqlparser/sap.com~tc~bl~ejbqlparser~lib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/sqlmapper/lib/private/sap.com~tc~bl~ejbsqlmapper~implCommonSQLMapper.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/sqlmapper/lib/private/sap.com~tc~bl~ejbsqlmapper~implSQLMapperAPI.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/objectProfiler/lib/private/sap.com~tc~bl~objectProfiler~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/tc~je~cachemgmt~srv/lib/private/sap.com~tc~je~cachemgmt~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/ejbmonitor_api/lib/private/sap.com~tc~bl~ejbmonitor~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/ejb/lib/private/sap.com~tc~je~ejb~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/classpath_resolver/lib/private/sap.com~tc~je~classpath_resolver~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/schemaprocessor~srv/lib/private/sap.com~tc~je~schemaprocessor.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~exprlang~plb/lib/jee5_el.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/ec~java~jsf~api/lib/ec~java~jsf~api_api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/ec~java~jsf~api/lib/ec~java~jsf~tld.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/ec~java~jsf~api/lib/servlet.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/ec~java~jstl/lib/jstl-1_2.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/ec~java~jsf/lib/ec~java~jsf_api.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/ec~java~jsf/lib/private/ec~java~jsf_core.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/objectanalyzing/lib/private/sap.com~tc~je~objectanalyzing~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~xsrf~lib/lib/xsrf_lib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/tc~je~xsrf~lib/lib/xsrf_lib_rest.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/icm.bridge.lib/lib/sap.com~icm.bridge~lib.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/httpsfactory/lib/sap.com~tc~bl~httpsfactory.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/rcmlib/lib/sap.com~rcm.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/cross/lib/private/sap.com~tc~je~cross~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/http/lib/private/sap.com~tc~je~httpserver~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/ext/sap.com~tc~je~constants~lib/lib/tc~je~constants.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/interfaces/tc~je~webcontainer~api/lib/private/sap.com~tc~je~webcontainer~webcontainer_api_impl.jar:/usr/sap/TD4/J00/j2ee/cluster/bin/services/servlet_jsp/lib/private/sap.com~tc~je~webcontainer~impl.jar:/usr/sap/TD4/J00/j2ee/cluster/apps/sap.com/RISearchEAR/servlet_jsp/RISearch/root/WEB-INF/classes:/usr/sap/TD4/J00/j2ee/cluster/apps/sap.com/RISearchEAR/servlet_jsp/RISearch/work::" -nowarn -g "/usr/sap/TD4/J00/j2ee/cluster/apps/sap.com/RISearchEAR/servlet_jsp/RISearch/work/JEE_jsp_searchKDB_6423250_1430328717000_1430328721021.java"

Error stream contains:"/usr/sap/TD4/J00/j2ee/cluster/apps/sap.com/RISearchEAR/servlet_jsp/RISearch/work/JEE_jsp_searchKDB_6423250_1430328717000_1430328721021.java:74: cannot find symbol

symbol : method getApplicationAreas()

location: class com.xxx.ri.SQLDataManager

appls = new SQLDataManager().getApplicationAreas();

  ^

1 error

"].

at com.sap.engine.services.servlets_jsp.server.jsp.JavaCompiler.compileExternal(JavaCompiler.java:149)

at com.sap.engine.services.servlets_jsp.server.jsp.JavaCompiler.compile(JavaCompiler.java:232)

at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.compile(JSPProcessor.java:384)

at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:292)

at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.generateJavaFile(JSPProcessor.java:206)

at com.sap.engine.services.servlets_jsp.server.jsp.JSPProcessor.parse(JSPProcessor.java:138)

at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassName(JSPChecker.java:378)

at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.compileAndGetClassName(JSPChecker.java:307)

at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassNameForProduction(JSPChecker.java:237)

at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.processJSPRequest(JSPChecker.java:168)

at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.processJSPRequest(JSPChecker.java:115)

at com.sap.engine.services.servlets_jsp.jspparser_api.JspParser.generateJspClass(JspParser.java:156)

at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:193)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

There is no difference between method getApplicationAreas() and getSearchResults(). Why calling getApplicationAreas() in jsp gives compilation error, but calling getSearchResults() gives no error. How to get rid of this compilation error? Does it related to portal and jdk upgrade?

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

When your code is compiled, the compiler needs to work out what each and every identifier in your code means. As the compiler is going through the code it will find something and know what to do with it or not. Your Cannot find symbol error relates to the identifiers and means that Java cannot figure out what the "symbol" means.

The general causes for a Cannot find symbol error are things like:

  • Incorrect spelling.
  • Wrong case. Halo is different from halo.
  • Improper use of acceptable identifier values (letters, numbers, underscore, dollar sign), my-class is not the same as myclass.
  • No variable declaration or variable is outside of the scope you are referencing it in.
Enda
Product and Topic Expert
Product and Topic Expert
0 Kudos

Welcome and thanks for visiting SAP Community to get answers to your questions. Check out our tutorial to get started in SAP Community: https://developers.sap.com/tutorials/community-start.html By adding a picture to your profile you encourage readers to respond to your question. Learn more about your profile here: https://developers.sap.com/tutorials/community-profile.html

former_member193379
Active Contributor
0 Kudos

Hi Natalie,

Could you please call this method in another class instead of JSP to make sure that this problem is due something jsp or code is having something strange.

This will give some clue.

Thanks,

Hamendra