webmethods - Error in compiling Java WebService in WEBSERVICES? -


i trying compile , test java services in webmethods. had reload method , tells me there error in code. not sure error on how find error because there no red rectangle on right side , there no error highlighted ont screen.

question: causing error in webmethods services?

class:

import com.wm.data.*; import com.wm.util.values; import com.wm.app.b2b.server.service; import com.wm.app.b2b.server.serviceexception; import java.io.bufferedreader; import java.io.bufferedwriter; import java.io.filereader; import java.io.filewriter; import java.*; import java.io.printwriter; import java.util.arraylist; import java.util.regex.matcher; import java.util.regex.pattern;  public final class createlistandwritefiles_svc  {      /**       * primary method java service      *      * @param pipeline      *            idata pipeline      * @throws serviceexception      */     public static final void createlistandwritefiles(idata pipeline)             throws serviceexception {         try {             idatacursor pipelinecursor = pipeline.getcursor();             //get input file name             string filename  = idatautil.getstring(pipelinecursor,"filename");             //get output directory             string outputdirectory  = idatautil.getstring(pipelinecursor,"outputdirectory");             //arraylist storing results              //actual java code starts here if wanted run in java test class             arraylist<string> listoffilenames = new arraylist<string>();             //open file             bufferedreader reader = new bufferedreader(new filereader(filename));             //new -- create later             printwriter writer = null;             //file line used read in text file.             string fileline = null;             //compile matcher searching through file             final string regex = ("(?i)^\\./\\s+add\\s+name\\s*=(\\s+)");             //will hold valid string pattern             pattern validstringpattern = pattern.compile(regex);               //loop through file             //main loop create files -- read until end of file             while ((fileline = reader.readline()) != null) {               //perform match on fileline of text               matcher matcher = validstringpattern.matcher(fileline);               //if header string found create new file -- else keep writing single line of new file                //until new file header found , true part of file matched                  if (matcher.find()) {                   //found match, add result list                   listoffilenames.add(matcher.group(1));                   //if file not equal null close                   if (writer != null){                       //important close file                       writer.close();                   }                   //creates new file name                   writer = new printwriter(new bufferedwriter(new filewriter(outputdirectory + matcher.group(1) + ".txt")));               } else if (writer != null) {                   //will write single line of text file if write not null                   writer.println(fileline);               }             }             //ends actual java code if wanted run in test class              //return list of results             idatautil.put( pipelinecursor,"listoffilenames",listoffilenames.toarray());             pipelinecursor.destroy();             reader.close();             writer.close();           } catch (java.io.ioexception e) {             //just pass exceptions calling service threw web methods throw new serviceexception(name of exception here)             e.printstacktrace();             throw new serviceexception(e);           }                  }      // --- <<is-begin-shared-source-area>> ---        // --- <<is-end-shared-source-area>> ---      /**      * service implementations given below read-only , show      * method definitions , not complete implementation.      */     public static final void filereadandwrite(idata pipeline)             throws serviceexception {     } } 

error:

the source saved, not compiled due following errors:  c:\softwareag\integrationserver\packages\dssaccessbackup\code\source\dssaccessbackup\services\java.java:109: cannot find symbol  symbol  : class io  location: class dssaccessbackup.services.java            } catch (java.io.ioexception e) {                         ^  1 error 

web screen shot of see in webmethods. top part of screen.

enter image description here

enter image description here

two of post below mentioned not posting class correctly. if class not named correctly or if there other place code hidden not certain. first webmethods project.

goto project menu , select clean option.

if issues still persist, ask admin out. may have check if classpath set correctly @ integration server level, or may re-start help.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -