Problem in editing a java file in Webdynpro

Hi All,
I have created a new dc and checked it in the DTR. Now, when I sync it from DTR, and again try to change the implementation of the view, it does not let me do it. I have to go to DTR>inactive dcs-> and explicitly edit the file. I am able to change the layout of the view but not the code.
Please guide me to resolve this issue.
Thanks

Just check that ou haven't checkd-in the content of gen_wdp folder. If you have revert them.
Second check: Insert values between //@begin and //@end tags in only. If you enter any where else, the code will be lost.
Select the java implementation and open the navigator view. You see the file selected in the left bowser. Check that the file is writable by clicking on File->Go to Properties-> Info
If it is writable change it to non-writable.
Best Regards,
Ashwani Kr Sharma

Similar Messages

  • I got ~M as EOL when I edit a java file in NetBeans

    Hi,
    When I edit a java file in the NetBeans editor, at the end of line, I got ~M (When viewed in a Unix environment) at end of every line. Pls help me get rid of that. It such a long file that I cannot delete it manually.
    Thanks,
    Guhan

    1) joe filename.java
    2) control+K F
    3) type `m (yes, that's a backwards apostrophe. Should be same key as ~)
    4) type R for replace
    5) hit enter to replace with EOL
    6) type R for rest of file.
    7) control +K X to save and exit.
    Any particular reason you can't do this with your global search and replace in netbeans? :P
    J

  • Getting problem while editing a binary file

    Hi All,
    I am trying to edit a binary file using Java.The file contain a string that I have to replace with some other string.For exanple let us assume following is the content of the file -
    õgëÓÌ©™ÿÿ ABC õgëÓÌ©™ÿÿ
    Here, I have to replace this ABC(a string) with some other string.Now,if the replace string length is more than 3(the length of exiting string) then, the binary file is generating some blank space at the end.
    My Code::
    //Here I am trying to insert "Hello" in place of "ABC".
    FileInputStream fis = null;
    fis = new FileInputStream(aFile);
    FileOutputStream to = new FileOutputStream(aF);
    byte[] aTes=new byte[1024];
    String str="Hello";
    aTes=str.getBytes();
    byte[] buffer = new byte[4096];
    int bytesRead;
    while ((bytesRead = fis.read(buffer)) != -1) {
    to.write(buffer, 0, 5);
    to.write(aTes);
    to.write(buffer, 5, bytesRead);
    Plesae guide me to solve this problem.
    Regards,
    Soumitra

    Okay. So was that code you posted supposed to be a failed answer to the question, and you need help with fixing it? Because to me it just looks like code which copies a file, with random modifications. It doesn't look for ABC in any way, it uses the magic number "5" for no apparent reason, and the other modifications are buggy too. So clarification of what the code is supposed to be would be helpful.

  • Problem accessing variables from java file to JSP page

    Hello Everyone,
    I have small problem accessing my method variables from my java bean file to a JSP page. can some please take a look and tell me why I can't populate my JSP page, I've been trying all day to get this done!!!
    This is my Java file
    package dev;
    import java.io.*;
    import java.util.*;
    public class RoundDetail2
    public String string_gameID;
    public int string_card1;
    public String readDetail_topLayer;
    public static final String SUITS[] = {" ", "Clubs", "Hearts", "Spades", "Diamonds", "Joker", "FaceDown"};
    public static final String VALUES[] = {"Joker ","Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack", "Queen", "King"};
    public static final String SuitVALUES[] = {" ","1","2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"};
    public RoundDetail2() throws FileNotFoundException
    DataInputStream inFile=
                 new DataInputStream(
                    new BufferedInputStream(
                   new FileInputStream("C:/apps/jakarta-tomcat-4.0.6/webapps/ROOT/WEB-INF/classes/dev/Data_452SY2.txt")));
    try { 
                 while((readDetail_topLayer = inFile.readLine()) != null)
              StringTokenizer tokenizer_topLayer = new StringTokenizer(readDetail_topLayer,"\t", true);
                   while  (tokenizer_topLayer.hasMoreTokens())
                        string_gameID = tokenizer_topLayer.nextToken();
         catch(IOException e)
                    System.out.println(e.getMessage());
         Thanks KT

    ......How are you declaring the class in your JSP? ... are you instantiating it as a bean using the useBean tag, or just instantiating it in your code like normal.
    Maybe you could post the relevant JSP code too?
    Hello again,
    Only the last string is populating after the file has be tokenized. What I'll like to accomplish is passing the very first string in the file. I did not get too far in the JSP file setup because the code is still in it's testing stage, but any help will be highly appreciated.
    Here is the JSP code
    <%@page import="dev.*" %>
    <%@page session="true" language="java" import="java.io.*" %>
    <jsp:useBean id="wagerhist" scope="request" class="dev.RoundDetail2" />
    <html>
    <head>
    <title>Round Detail</title>
    <body>
      <table width="530" bordercolor="#000000" valign="top">
        <tr>
              <td align="left"  width="19%">Game ID<%=wagerhist.string_gameID%></td>
              <td align="left"  width="30%">  </td>
              <td align="left"  width="20%">card1</td>
              <td align="left"  width="31%">  </td>
            </tr>
      </table>
    </body>
    </html>

  • Problem in compiling a java file

    hello...
    i placed all my java file in the folder C:\nmt
    and i run the following command to compile it...
    javac -sourcepath C:\nmt testabc.java
    now it showing an error..
    cannot read testabc.java
    javac -sourcepath C:\nmt -d C:\nmt testabc.java
    to produce the output in the C:\nmt folder but it shows the same message...pls tell what worng here??
    sam

    You don't have a testabc.java file in the directory.

  • Problem compiling a simple java file

    Hi,
    When I try to compile the following simple java file
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HowdyServlet extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    PrintWriter out = response.getWriter();
    response.setContentType("text/html");
    out.println("<html>");
    out.println("<body>");
    out.println("<center><h1>Hi</h1></center>");
    out.println("</body>");
    out.println("</html>");
    at the command prompt as follows
    C:\Shared\CBT\Java 2 JSP and Java Servlets\03\servlet1>javac -classpath
    "C:\Program Files\Java\j2re1.4.2_03\lib\ext\QTJava.zip" *.java
    Or
    C:\Shared\CBT\Java 2 JSP and Java Servlets\03\servlet1>javac *.java
    Or
    C:\Shared\CBT\Java 2 JSP and Java Servlets\03\servlet1>javac HowdyServlet.java
    I get the following errors and I cannot compile this java file -
    HowdyServlet.java:2: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    HowdyServlet.java:3: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    HowdyServlet.java:5: cannot find symbol
    symbol: class HttpServlet
    public class HowdyServlet extends HttpServlet {
    ^
    HowdyServlet.java:6: cannot find symbol
    symbol : class HttpServletRequest
    location: class HowdyServlet
    public void doGet(HttpServletRequest request,
    ^
    HowdyServlet.java:7: cannot find symbol
    symbol : class HttpServletResponse
    location: class HowdyServlet
    HttpServletResponse response)
    ^
    HowdyServlet.java:8: cannot find symbol
    symbol : class ServletException
    location: class HowdyServlet
    throws IOException, ServletException {
    ^
    6 errors
    I have installed the latest JEE 5 SDK on Win XP Home. I have the following variable set as follows,
    CLASSPATH = .;C:\Program Files\Java\j2re1.4.2_03\lib\ext\QTJava.zip
    PATH = C:\Sun\AppServer\jdk\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\QuickTime\QTSystem;C:\Sun\AppServer\lib\ant\bin
    ANT_HOME = C:\Sun\AppServer\lib\ant
    I have spent hours scratching my head but don?t have a clue. I was wondering if you have any idea as why I might be getting these errors.
    Thank you for your time.
    Green

    Hello, did you read the answers?
    You have to put j2ee.jar or servlet-api.jar in your classpath. Those JAR files are included in the Java EE package somewhere. Remove the QTJava.zip junk from the classpath.
    If you don't know what the classpath is and how to set it, read this:
    Setting the class path
    How Classes are Found
    And I'll repeat what the others say: if you are very new to Java, then Java EE will probably be way over your head. First learn the language and the standard API. If you understand that well, start with Java EE. Or do you already know what servlets are, and that you need a servlet container to run them, and how to deploy them etc.?

  • Problem on editing template   .dwt file

    I have a problem with dreamweaver template.
    When I edit a template in dreamweaver, and apply changes to all the pages , it propogates on all pages and .dwt file also ,
    but all the design or layout or graphics of the pages  are gone and everything gets messed up.
    Why it happens when I am editing a tamplate ?

    The problem is your link to CSS file.  Template is incorrectly pointing to files on your local hard drive.
         <link rel="stylesheet" href="file:///C|/wamp/www/mm_health_nutr.css" type="text/css" />
    The link must point to your site folder like this:
         <link rel="stylesheet" href="../mm_health_nutr.css" type="text/css" />
    Edit template.  Save & populate changes to your child pages.
    Nancy O.

  • Class tab when editing .java file

    In version 9.x of JDev, when editing a java file, along with 'Source' and 'Design' tabs at the bottom of the editor window, there was a 'Class' tab that let you manage the class' attributes,(methods, attributes...). In 10.1.3.0.3, this tab is missing. Where can one manage getter and setter attributes like previous versions?
    mike

    Thanks Shay. It seems I have to type in the declaration of the attributes before they show up in the Generate Accessors Dialog. Thsi approach is a big step backward!
    What happen to the 'Class' tab??!! Anyone know?
    I didn't get a vote on this!
    mike

  • How to load a java file into Oracle?

    Hello,
    I have some problem in loading a java file into Oracle 8i. I used "loadjava -user <userName/Password> -resolve <javaClassName>" command.
    JAVA Version used JDK 1.5
    When calling this class file from a trigger gives this error
    ORA-29541: class ANTONY1.DBTrigger could not be resolved.
    Can anyone help me to resolve this problem?

    Hello,
    Which username did you use to load the class, and which user is running the trigger?
    The default resolver searches only the current user's schema and PUBLIC so the java class needs to be loaded into one of these.
    cheers,
    Anthony

  • How to organize into smaller java files?

    I have a class which basically connects to a database and just about all of its methods query the database and return the results. The problem (which isn't actually a problem) is that the java file is getting so big because there are literally hundreds of methods representing different queries to the database.
    Does anyone has any idea how to break this class into smaller files? Is there a "include" statement of some sort that I can use to include these "sub-java" files?

    Does anyone has any idea how to break this class into smaller files? Is there a "include" statement of some sort that I can use to include these "sub-java" files?Different classes would still mean that user code would need to change.
    The problem (which isn't actually a problem) is that the java file is getting so big because there are literally hundreds of methods representing different queries to the database.Depending on how that is organized that isn't necessarily a problem. For instance if it did nothing but manage calls and not extraction then it isn't a terrible problem.
    If not then as previously suggested you break it by functional block. The closes model to what you have would be to break it into a class per each data model entity and then either add support classes for more complex support or add to one of the matching model entities.

  • Cannot Execute .java File..

    Hi,i'm really confused about this..it's so weird..
    i'm trying to execute (.java) file from another directory, but
    it can't,why? if i just compile that file from another directory
    there's no problem with that...
    ex : i have file named Hello.java which i save it on C:\Work
    i compile this file like this :
         C:\javac C:\Work\Hello.java
    there's no problem when i compile that file, but when i try to
    execute that file i got this messages :
    Exception in thread "main" java.lang.NoClassDefFoundError: C:\Work\Hello
    this is how i execute that file : C:\java C:\Work\Hello
    if i execute like this : C:\Work\java Hello, there's no problem..
    Why (.java) file cannot be execute from another directory...
    Thanks a lot..

    It considers the pathname to be part of the class name when you do it like that, and since you don't have a class named C:\Work\Hello (and can't, since you can't use colons or backslashes in the name), that's not gonna happen.
    Try this:
    java -classpath C:\Work\ Hello
    Note the space between C:\Work\ and Hello. Hope that helps :)

  • Problem in Uploading excel file using WebDynpro for Java

    Hi  All
    I have followed for Uploading excel file using WebDynpro for Java added by  Tulasi Palnati
    I done all, but I'm getting 500 Exception please contact u r system admin meag  at run time also  Jxl/Workbook class not found msag  but i downloaded Jxl.jar file and  there is no error signals  in coding part. How can I solve the Problem.
    Thanks
    Polaka

    Please ask the people in the Web Dynpro Java forum for a solution.

  • JDI: Cannot EDIT a java source file in a loaded, inactive DC

    I have finished JDI Scenario 2+.  I have since built a new workspace and imported my Development Configuration.  I would now like to edit the java code and do a re-deployment.
    Problem: I cannot Edit the file; it is read-only.  I was able to edit the file from a different workspace yesterday, at which time when I typed in the editor I was prompted to create and activity and I did.  I did NOT mark it for exclusive check-out.
    Since then I have done a REVERT on that activity,but I still cannot edit this file in my second new wrokspace.  In the context menus, in the DTR sub-menu, the EDIT selections are always grayed-out.
    So, can someone advise how I can get the EDIT selections to be not grayed-out so that I can edit this file in the Java editor?
    Thanks,
    Mike R.

    Hi Mike,
    You are right, and the instructions are wrong: the "Create Project" must be done from the "Inactive DCs" view (for the sources to be editable).
    The "Active DCs" view will give you sources from the "active" workspace (containing all "activated" sources), which is read-only. For DCs you work on (and modify), you should sync sources from the "Inactive DCs" view, and for DCs you depend on you should sync archives/sources from the "Active DCs" view.
    I have requested for a correction of this error in our documentation.
    Regards,
    Manohar
    PS: There is now a dedicated SDN forum for JDI (under WebAS) - so you can post your questions there in future.

  • Cannot open any Java files on my Mac OSX: Problem Solved

    Hello all,
    I have just begun an Introduction to Java class and I'm already having problems...namely, I cannot open .java files on my Mac.
    Whenever I try to open them, I get an error message that says: "You cannot use this version of the application Xcode with this version of Mac OS X."
    I'm running version 10.5.4 on a PowerPC Mac. It's a few years old, but I don't understand how it could already be so outdated as to not allow me to even use the application.
    I am 100% new to programming and don't really know at all what I'm doing. Apple says their JDK comes with every Mac and no one else seems to be having this problem. I don't really even know where to go to for updates, if that is what I need to do, or if I should just download a different JDK.
    This is an intensive (6-week) class and I don't want to fall behind, but it's halfway through the first week and I cannot even open files.
    Any suggestions greatly appreciated.
    EDIT: I figured out the problem by getting out my installation disks and I found the latest xCode tools app in the "optional packages" folder.
    Installed it and now I'm up and running.
    Edited by: chalks on Sep 17, 2008 10:09 AM

    You can download Adobe Reader from adobe.com.  The Mac OSX uses its "reader" to open PDF files without the Adobe Reader.  If you downloader adobe reader, it should open all PDF files.  Hope this helps.

  • Problem - Scanner.java file not found

    Hello all, I've been having a problem with a Java installation on windows vista. I've installed both the Java 2 1.4.2_16 sdk, and the Java EE 5 update 3 sdk. However, neither install contains the Scanner.java file... On my desktop running XP, this is not the case. I've tried reinstalling but to no avail. My classpath is set correctly because my programs compile that import java.util.*; But when I create a scanner object I get the dreaded can't resolve symbol error, but only when I compile under vista... Any suggestions? Thanks in advance :)

    Scanner was implemented beginning with v1.5x, and comes in the JDK SE, not the EE.

Maybe you are looking for

  • Mid 2014 13" rMBP full charge gives 4:49 minutes of use

    Hello- This is my first Macbook purchase. It is 2 weeks old, refurbished from Apple. rMBP 13" 3.0 GHz i7 16gb 128. I received it and it was at 53% with 4 cycles. It adds cycles without even being plugged in to charge. It looses about 1% a minute. I h

  • How do I extract a set of rows from a table based on specified criteria?

    I am using Numbers '08. I have a table that looks like this: I would like to, programmatically, find the MAX amount of all the 'Clothing' category items. More generally I'd like it to work like the COUNTIF function where I can do this: MAX(INCLUDEIF(

  • Error while generating report by fragmenting two cubes.

    I have two Essbase cubes 'bas_reg'(current) and 'basreg09'(history) combined them into one in BMM layer by fragmentation based on Quarter of the Year. This two cubes have 3 unconfirmed dimensions . But for this report i am using the all fields from f

  • The problem with speakers

    when i call some one and i put him on speaker his sound coming but my voice not going. it seems my microphone has some problem .

  • Sparse table with many columns

    Hi, I have a table that contains around 800 columns. The table is a sparse table such that many rows contain up to 50 populated columns (The others contain NULL). My questions are: 1. Table that contains many columns can cause a performance problem?