Help: Method Error

Hi:
I trying to develop a method in a program but I keep getting the following error message:
Monoalphabet.java:59: Method void encrypt() requires a method body. Otherwise declare it as abstract.
public static void encrypt();
Can someone please tell me why I am getting the error message and how can I correct it?
Thanks.
import java.io.*;
class Monoalphabet {
  public static void main(String args[]) {
    String keyword = args[0];
    try {
     int positionOfA = 'a';
     String incoming = "";
     String temp = "";
     String outgoing = "";
     char[] cypher = makeCypher(removeDups(keyword));
      // Create a file reader
      FileReader f = new FileReader(args[1]);
      BufferedReader infile  = new BufferedReader(f); 
      // Create a file writer
      FileWriter f1 = new FileWriter(args[2]);
       while((temp = infile.readLine()) != null)
          for (int k = 0; k < temp.length(); k++)
          char whatever = temp.charAt(k);
          char ch = cypher[(int)whatever -  positionOfA];
          String chs = new Character (ch).toString();
           outgoing = outgoing + chs;
      f1.write(outgoing);
      // Close the file writer
      f1.close();
      // Close file reader
      f.close();
    catch(Exception e) {
      System.out.println("Exception: " + e);
  public static void encrypt();
  {  System.out.println("Test");
  public static String removeDups(String keyword)
  { String remove = "";
    keyword = keyword + "zyxwvutsrqponmlkjihgfedcba";
   for(int i = keyword.length()-1; i > -1 ; i--)
   if(i == keyword.indexOf(keyword.charAt(i)))
    remove = keyword.charAt(i)+ remove;
    return remove; 
  public static  char[] makeCypher(String remove)
      char Array [];
      Array = remove.toCharArray();
      return Array;
}

public static void encrypt();
{  System.out.println("Test");
}Remove the ';' from the line -
public static void encrypt();
That should solve the problem.
-Manish.

Similar Messages

  • Server error: Class: UCF Acroform Method error Message: Could not send mess

    Hi Gurus,
    I'm having a problem with displaying PDF file in the portal. I tried reinstalling Adobe 9. Tick and untick the option Display PDF in browser. But still encountering the error. Is it something to do with IE version? Please Help. Thanks in advance.
    Server error: Class: UCF Acroform Method error Message: Could not send message

    Hi,
        Please speify the system information so that I can help you
    Regards
    Sharanya.R

  • HTTP GET method error

    I've created a simple web page that contains a text box in which the user enters an URL. And also have a servlet to take this address and do something "useful" with it. The Servlet has a doPost method to get this address, and the web page also has the corresponding method
    (<FORM method="POST" ACTION="../fyp/AddressServlet" >).
    I'm using a j2ee server, which runs fine, as does the deploytool.
    However, when I attempt to open the web page in my browser, I get the following error,
    "HTTP Status 405-HTTP method GET is not supported by this URL"
    I don't know why I'm getting a GET method error, when it's a POST method I'm using.
    Any help would be appreciated,
    thanks,
    ahhfor

    Hi !
    You're using the POST method to call the servlet when you submit the HTML page. However, when you try to load your HTML page into the browser, this is done with GET !
    Check your server.xml file in the /conf directory and see if your application context is correctly defined. And then check the web.xml file in your application's WEB-INF directory. Finally, check your path to the servlet in your HTML file.

  • Search help: Internal Error.

    Hi,
    I am getting information message : 'Search help: Internal Error' after incorporating code in RETURN event. My aim was to populate the value from Hit list to Value with restriction field and then by removing some search select criteria, again display the hit list. It is coming back to the value with restriction field screen  also populating the fields properly, below 1 information message is coming 'Search help: Internal Error'. If I remove some field from selection and again press the go button, it is doing nothing and system is hanging. The details are given below.
    I have created one search help ZTMVGR1 having the following details:
    Search help type : Elementary.
    Selection Method : MVKE
    Search help exit:  ZF4_MATGRP_EXIT1.
    Display value with restrictions : A
    Field          Import           EXPORT   LPOS      SPOS   SDis     Data Element
    MATNR       X                   X              5             5                     MATNR               
    VKORG      X                   X              1              1                     VKORG
    VTWEG      X                   X              2              2                     VTWEG
    MVGR1      X                   X               3             3                      MVGR1
    KONDM      X                   X               4             4                      KONDM
    MAKTX      X                   X               6              0                     MAKTX
    In the search help exit ZF4_MATGRP_EXIT1 I have used three events:
    1) PRESEL : Purpose of using this was I was not able to see F4 help for few fields in value with restriction screen . I found out that in SHLP-INTERFACE-F4FIELD is equal to 'X', sometimes in search help if that field's value is 'X' , F4 help does not come even if check table exists for that field.
    2) DISP : Purpose, I want to fetch material description field in exit only. MAKTX does not exist in MVKE, so either I need to create a view containing all my fields, or populate the one which is not there in selection method in exit.
    3) Return : Purpose,  I want to put VKORG, VTWEG and MATNR ( MATNR has collective search help, based on material description , we can put material ) . The hit list we get contains VKORG, VTWEG, MATNR, KONDM, MVGR1 and MAKTX. When we double click on hitlist the value returns , I want to populate these entries in value with restriction field. So KONDM and MVGR1 field will be populated. Now I will remove the value of material-low  from selection screen and find out for VKORG, VTWEG and MVGR1/KONDM what materials are there. But after writing the code for event RETURN I am getting information message 'Search Help: Internal Error'.
    My code snippet is given below.
    <removed by moderator>
    Moderator message: please post only relevant code parts, your posts must contain less than 5000 characters to preserve formatting.
    Edited by: Thomas Zloch on May 13, 2011 1:35 PM

    HI,
    In search help exit you need to use the below mentioned function modules
    'F4UT_PARAMETER_ALLOCATE'          For allocating fields
    'F4UT_PARAMETER_VALUE_GET'       Get Value
    'F4UT_PARAMETER_RESULTS_PUT'     put Value
    In the same order.
    Thanks & regards,
    Bhargav.

  • No such method error when launching the Interactive form

    Hi Experts,
    I have developed a simeple Java Webdynpro application and added an Interactive form without any controls in it. Created the context with one value node and a binary value attribute.
    I have assigned  value node to datasource and binary attribute to pdfSource. When I launch the application I am getting the following no such method error.
    java.lang.NoSuchMethodError: com/sap/tc/webdynpro/clientserver/uielib/adobe/api/IWDInteractiveForm.setTemplateSource(Ljava/lang/String;)V
    The currently executed application, or one of the components it depends on, has been compiled against class file versions that are different from the ones that are available at runtime.
    If the exception message indicates, that the modified class is part of the Web Dynpro Runtime (package com.sap.tc.webdynpro.*) then the running Web Dynpro Runtime is of a version that is not compatible with the Web Dynpro Designtime (Developer Studio or Component Build Server) which has been used to build + compile the application.
    My NWDS is of Version 7.0.06
    and J2EE Engine is of Version 6.40.
    any guess why I am getting this error.
    Thanks
    Chinna.

    Issue solved. Compatablility issue NWDS 2.0 Version should use for NW 2004.

  • Abstract Method Error and XML Parsing

    I am using wl6sp1. I am parsing an XML file from within the
    servlet using jaxp1.1 and crimson.
    Following is code:
    1- SAXParserFactory spf = SAXParserFactory.newInstance();
    2- sp = spf.newSAXParser();
    3- xr = sp.getXMLReader();
    4- xr.setContentHandler(new ParseXML());
    5- xr.parse( new InputSource("Example3.xml"));
    This program works fine when execute from command line but in servlet on line
    3 it says:
    "Abstract Method Error"
    I have created XML Registry to use Crimson as XML parser rather than default.
    I think somehow wl is still using jaxp1.0 which is built in
    support in wlsp1.
    Whats wrong with the code...or what configuration i am missing???

    I'm assuming you have already put crimson.jar first in the classpath for the java
    command you use to start WebLogic. If so, have you tried putting the servlet in
    a .war file with the crimson.jar in its' WEB-INF/lib directory?
    Regards,
    Mike Wooten
    "anyz" <[email protected]> wrote:
    >
    I am using wl6sp1. I am parsing an XML file from within the
    servlet using jaxp1.1 and crimson.
    Following is code:
    1- SAXParserFactory spf = SAXParserFactory.newInstance();
    2- sp = spf.newSAXParser();
    3- xr = sp.getXMLReader();
    4- xr.setContentHandler(new ParseXML());
    5- xr.parse( new InputSource("Example3.xml"));
    This program works fine when execute from command line but in servlet
    on line
    3 it says:
    "Abstract Method Error"
    I have created XML Registry to use Crimson as XML parser rather than
    default.
    I think somehow wl is still using jaxp1.0 which is built in
    support in wlsp1.
    Whats wrong with the code...or what configuration i am missing???

  • Help with error 16820

    help with error 16820 with trying to update acrobat

    Please refer to following links, might be helpful.
    http://answers.acrobatusers.com/While-updating-acrobat-error-code-showd-16820-solve-q7115. aspx
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/acrobat-co m-will-not-update-getting-error-16820/7bbbef64-df3e-4fbd-b552-fc1c7a5983c3?msgId=dcf838d8- a198-4a3a-b034-94a07c2e8648
    If this doesn't work, we need more information here.

  • Abstract Method Error in retrieving Blob

    Hi!
    while (rs.next())
    Blob blob=rs.getBlob(1);
    throws Abstract Method Error
    why?
    Thanxs in advance

    You'll probably find that the JDBC driver that you are using doesn't support blobs. Check the documentation that comes with your driver, it should tell you what parts of the JDBC specification it supports.
    Col

  • RoboHelp Server 7 Help System Errors

    Whenever I publish my RH 7 Help project to server, I check
    the RoboHelp Server Web Administrator for errors. I always get Help
    System Error "Requested file cannot be found" for a file called
    bsscfp.txt. To my knowledge, this is a control file generated
    during the publishing process. If this is the case why is an error
    being generated for a file I have no control over? Also, I find the
    Troubleshooting section of RoboHelp Server Web Administrator to be
    rather useless in correcting issues. Is there any reference
    documentation that explains some of the cryptic error messages that
    appear in the Server Web Administrator screen?

    Hi, ouque and welcome to the forum.
    Just to clarify your setup. When you say "Project pane" are
    you referring to the Configuration Manager on the server itself.
    Or, are you referring to something you are seeing from the RoboHelp
    authoring client app's Server Administration pane?
    If you have access to the actual server desktop and view the
    Configuration Manager, sometimes on a new installation, you can do
    a "refresh" and the project will show up.
    A few more questions:
    Have you tried accessing the website and does the project
    come up in the web browser?
    On what kind of web server did you install RHS7? Windows
    2003, etc.?
    Is Microsoft Indexing Services turned on?
    Apparently you were able to successfully publish your project
    to the server so there is "communication" between your desktop and
    the server I gather.
    A few more details and we'll try to help.
    Thanx,
    john

  • Please Help - "page error" / a system error occurred

    I am very basic with Coldfusion Developed websites and pretty awesome on HTML and PHP. While working on a website I made an HTML change and added a line to a page. All works well on the test website/server but after uploading the changed page the page went offline/errored a day later.
    I have an error receipt and am hoping to resolve this issue with some insight from a good Coldfusion Developer or Programmer.
    PLEASE HELP, see error below.
    A system error occurred: http://www.mix.co.zm/mix_schools.cfm?
    Error - struct
    Detail    Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc. <br> Using relative paths (for example, template="index.cfm" or template="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.
    Message    Could not find the included template components/mix_documents2.cfm.
    MissingFileName    components/mix_documents2.cfm
    StackTrace    coldfusion.tagext.lang.IncludeTag$NoSuchIncludeTemplateException: Could not find the included template components/mix_documents2.cfm. at coldfusion.tagext.lang.IncludeTag.setTemplate(IncludeTag.java:349) at cfmix_schools2ecfm527774291.runPage(D:\hshome\mixnet\mix.co.zm\mix_schools.cfm:15) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:360) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at com.intergral.fusionreactor.filter.FusionReactorFilter.i(FusionReactorFilter.java:566) at com.intergral.fusionreactor.filter.FusionReactorFilter.c(FusionReactorFilter.java:258) at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReactorFilter.java: 164) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    TagContext    Error - array
    1    Error - struct
    COLUMN    0
    ID    CFINCLUDE
    LINE    15
    RAW_TRACE    at cfmix_schools2ecfm527774291.runPage(D:\hshome\mixnet\mix.co.zm\mix_schools.cfm:15)
    TEMPLATE    D:\hshome\mixnet\mix.co.zm\mix_schools.cfm
    TYPE    CFML
    TagName    CFINCLUDE
    Type    MissingInclude

    With LR closed move the preferences file to the Trash as described at the below link. You will lose your Preferences settings, so you may want to record them if unsure what you have changed from the default settings.
    http://helpx.adobe.com/lightroom/kb/error-changing-modules-lightroom
    DO NOT RESTART LR!
    Next uninstall LR and then completely shutdown your system and turn the power OFF. Your catlog(s) will not be removed, so no worries.
    Restart your system and reinstall LR using the latest version download available (LR5.4, LR4.4).
    What version of LR and OS X are you using?

  • My macbook pro intel core duo 2 keeps restarting intermittenly. Help with error code.

    I have run a Hardware Test, and it gives the follwing error code. Can anyone tell me what this is? I recently had my logic board replaced within the last 3 months, so it shouldn't be a problem there.
    Thank you very much for any and all help.
    Error code:
    4SNS/I/40000000:TGOH-128.00

    Online references possible memory issue? Sensors?
    https://discussions.apple.com/thread/3140607?start=0&tstart=0
    Keep taking it back and they keep switching parts until the problem is gone.

  • Need help with error message 213:8

    Need help with error message 213:8, this error message prompted after re-installing CS5.5 on the same machine (W7 Pro)
    Thanks.

    Hi TKA_,
    Please try the solutions mentioned on following forum thread.
    http://support.muse.adobe.com/thread/1305941?start=0&tstart=0
    Let me know if it works?
    Regards,
    Sumit Singh

  • How to explicitely write PLSQL code for "Help - Display Error"? [SOLVED]

    I'm using menu DEFAULT&SMARTBAR and I'd like to write command in PLSQL code for "Help - Display Error" to display error. Has anyone any idea how to do this? I can not find syntaks in form help for this.
    Message was edited by:
    marussig

    Display_Error;

  • Organization Payment method Error

    Dear All,
    When I trying to attach a bank account in cash management Tab im getting following error.
    APP-PAY-34070:the bank account does not uniquely map to cash management account
    If anybody faced similar issue please let me know the solution you have implemented.
    Regards,
    Jithin dev

    962274 wrote:
    Dear All,
    When I trying to attach a bank account in cash management Tab im getting following error.
    APP-PAY-34070:the bank account does not uniquely map to cash management account
    If anybody faced similar issue please let me know the solution you have implemented.
    Regards,
    Jithin devPlease see these docs.
    Defining Organizational Payment Method, Errors: APP-PAY-34070: The Bank Account Does not Uniquely map to Cash Management Account. [ID 1106723.1]
    Costing of Payment : Can We Populate Control Account With Multiple Liability Accounts ? [ID 1266020.1]
    Thanks,
    Hussein

  • HELP PLEASE - ERROR ON PANSONIC P50VT20B AND Panso...

    HELP PLEASE - ERROR ON PANSONIC P50VT20B AND Panasonic HOME CINEMA SC-BTT775.
    the moment i login using the tv or blu-ray i cannot choose anything other than ' Back to homepage ' message which is displayed under my contactlist on tv... at times it says too many contacts... Kindly help... the camera is skyoe ty-cc10w for panasonic tv's and blu-ray...

    Same issue

Maybe you are looking for