Compile error in paint() method while trying to draw graphics

Hi ,
I am trying to draw two lines given the sceen coordinated through a mouse click. I am getting the following error
Pos.java:90: illegal start of expression
public void paint(Graphics g)
^
Pos.java:102: ';' expected
^
2 errors
My code is as follows:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.geom.*;
public class Pos extends Container {
//public void paint(Graphics);
public static void main(String args[]) {
Pos p = new Pos();
     p.getPosition();
JButton bn = new JButton("Draw Line");
int posx=0;
int posy=0;
int i=0;
int x[] = new int[4];
int y[] = new int[4];
public void getPosition() {
JFrame frame = new JFrame("Mouse Position");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel label = new JLabel();
label.setHorizontalAlignment(JLabel.CENTER);
/*MouseMotionListener mouseMotionListener = new MouseMotionListener() {
public void mouseDragged(MouseEvent e) {
public void mouseMoved(MouseEvent e) {
          MouseListener mouseListener = new MouseListener(){
               public void mouseEntered(MouseEvent evnt){
               public void mouseExited(MouseEvent evnt){
               public void mousePressed(MouseEvent evnt){
               public void mouseReleased(MouseEvent evnt){
               public void mouseClicked(MouseEvent evnt) {
                    showMousePos(evnt);
                    //mon.setText("("+MouseInfo.getPointerInfo().getLocation().x+","+
                                        //MouseInfo.getPointerInfo().getLocation().y+")");
               private void showMousePos(MouseEvent evnt) {
JLabel src = (JLabel)evnt.getComponent();
               posx = MouseInfo.getPointerInfo().getLocation().x;
               posy = MouseInfo.getPointerInfo().getLocation().y;
System.out.println("x-coordinate="+posx);
               System.out.println("y-coordinate="+posy);
               x=posx;
               y[i]=posy;
               i=i+1;
          label.addMouseMotionListener(mouseMotionListener);
          label.addMouseListener(mouseListener);
          label.addActionListener(actionListener);
frame.add(label, BorderLayout.CENTER);
          bn.setSize(10,10);
          frame.add(bn, BorderLayout.NORTH);
frame.setSize(300, 300);
frame.setVisible(true);
     ActionListener actionListener = new ActionListener(){
               public void actionPerformed(ActionEvent ae)
                    Object o = ae.getSource();
                    if (o==button)
                         public void paint(Graphics g)
                              Graphics2D g2D = (Graphics2D)g;
                              //int p[]=new int[4];
                              g2D.setColor(Color.red);
                              //for (int j=0;j<2;j++)
                                   //Point2D.Int p[j]= new Point2D.Int(x[j],y[j]);                              
                              //Line2D line = new Line2D.Int(p[0],p[1]);
                              g2D.drawline(x[0],y[0],x[1],y[1]);
                              i=0;
Please tell me what the mistake is.
lakki

Thank you all for the sggestions. The error was exactly due to what you mentioned above. I fixed that by drawing the lines on another JPanel and it is working now.
But I have a bigger problem. How to make a JPanel transparent. I have to draw lines on a video. The panel for drawing lines is opaque and so I can draw lines only if I am able to see the video. setOpaque(false) does not seem to work. I am posting my code below. Please see if you can help me out.
import javax.media.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
import java.lang.Math;
import javax.media.control.FramePositioningControl;
import javax.media.protocol.*;
import javax.swing.*;
class MPEGPlayer2 extends JFrame implements ActionListener,ControllerListener,ItemListener
     Player player;
     Component vc, cc;
     boolean first = true, loop = false;
     String currentDirectory;
     int mediatime;
     BufferedWriter out;
     FileWriter fos;
     String filename = "";
     Object waitSync = new Object();
     boolean stateTransitionOK = true;
     JButton bn = new JButton("DrawLine");
     MPEGPlayer2 (String title)
          super (title);
          addWindowListener(new WindowAdapter ()
               public void windowClosing (WindowEvent e)
                    dispose ();
            public void windowClosed (WindowEvent e)
                    if (player != null)
                    player.close ();
                    System.exit (0);
          Menu m = new Menu ("File");
          MenuItem mi = new MenuItem ("Open...");
          mi.addActionListener (this);
          m.add (mi);
          m.addSeparator ();
          CheckboxMenuItem cbmi = new CheckboxMenuItem ("Loop", false);
          cbmi.addItemListener (this);
          m.add (cbmi);
          m.addSeparator ();
          mi = new MenuItem ("Exit");
          mi.addActionListener (this);
          m.add (mi);
          MenuBar mb = new MenuBar ();
          mb.add (m);
          setMenuBar (mb);
          setSize (500, 500);
          setVisible (true);
     public void actionPerformed (ActionEvent ae)
                    FileDialog fd = new FileDialog (this, "Open File",FileDialog.LOAD);
                    fd.setDirectory (currentDirectory);
                    fd.show ();
                    if (fd.getFile () == null)
                    return;
                    currentDirectory = fd.getDirectory ();
                    try
                         player = Manager.createPlayer (new MediaLocator("file:" +fd.getDirectory () +fd.getFile ()));
                         filename = fd.getFile();
                    catch (Exception exe)
                         System.out.println(exe);
                    if (player == null)
                         System.out.println ("Trouble creating a player.");
                         return;
                    setTitle (fd.getFile ());
                    player.addControllerListener (this);
                    player.prefetch ();
     }// end of action performed
     public void controllerUpdate (ControllerEvent e)
          if (e instanceof EndOfMediaEvent)
               if (loop)
                    player.setMediaTime (new Time (0));
                    player.start ();
               return;
          if (e instanceof PrefetchCompleteEvent)
               player.start ();
               return;
          if (e instanceof RealizeCompleteEvent)
               vc = player.getVisualComponent ();
               if (vc != null)
                    add (vc);
               cc = player.getControlPanelComponent ();
               if (cc != null)
                    add (cc, BorderLayout.SOUTH);
               add(new MyPanel());
               pack ();
     public void itemStateChanged(ItemEvent ee)
     public static void main (String [] args)
          MPEGPlayer2 mp = new MPEGPlayer2 ("Media Player 2.0");
          System.out.println("111111");
class MyPanel extends JPanel
     int i=0,j;
     public int xc[]= new int[100];
     public int yc[]= new int[100];
     int a,b,c,d;
     public MyPanel()
          setOpaque(false);
          setBorder(BorderFactory.createLineBorder(Color.black));
          JButton bn = new JButton("DrawLine");
          this.add(bn);
          bn.addActionListener(actionListener);
          setBackground(Color.CYAN);
          addMouseListener(new MouseAdapter()
                        public void mouseClicked(MouseEvent e)
                    saveCoordinates(e.getX(),e.getY());
     ActionListener actionListener = new ActionListener()
          public void actionPerformed(ActionEvent aae)
                    repaint();
     public void saveCoordinates(int x, int y)
          System.out.println("x-coordinate="+x);
               System.out.println("y-coordinate="+y);
               xc=x;
          yc[i]=y;
          System.out.println("i="+i);
          i=i+1;
     public Dimension getPreferredSize()
return new Dimension(500,500);
     public void paintComponent(Graphics g)
super.paintComponent(g);
          Graphics2D g2D = (Graphics2D)g;
          //g2D.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR, 0.0f));
          g2D.setColor(Color.GREEN);
          for (j=0;j<i;j=j+2)
               g2D.drawLine(xc[j],yc[j],xc[j+1],yc[j+1]);

Similar Messages

  • Error HTTP Status 500 - while trying to invoke the method java.util.Properties.entrySet() of a null object loaded from local variable 'globalProperties'

    Hi,
    I installed BI platform SBOP BI PLAT 4.1 and was able to log in to CMC and BI Launchpad. Post this, I installed SBOP DATA SERVICES 4.2 SP01 PATCH 3 WINDOWS 64B and am getting the above error while trying to open CMC and BI Launchpad.
    Please help

    Thanks Jawahar, re deploying web apps helped.

  • Error in the procedure while tried to increment the seq

    Hello ,
    I tried the following but giving the errors..
    Plz help me in this..
    CREATE OR REPLACE PROCEDURE Seq_inc AS
       vmaxarrec number(10);
       vseq number(10);
          select max(recid) into vmaxarrec from acc_rec;
          select SEQ_ACC_REC.currval into vseq from dual;
        BEGIN
          FOR i IN vseq .. vmaxarrec  LOOP
            select SEQ_ACC_REC.nextval  from dual;
          END LOOP;
        END ;And giving the following errors...
    LINE/COL ERROR
    4/7 PLS-00103: Encountered the symbol "SELECT" when expecting one of
    the following:
    begin function package pragma procedure subtype type use
    <an identifier> <a double-quoted delimited-identifier> form
    current cursor
    The symbol "begin" was substituted for "SELECT" to continue.
    11/9 PLS-00103: Encountered the symbol "end-of-file" when expecting
    one of the following:
    begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
    LINE/COL ERROR
    <an identifier> <a double-quoted delimited-identifier>
    <a bind variable> << close current delete fetch lock insert
    open rollback savepoint set sql execute commit forall merge
    Thanks

    smile wrote:
    SQL> CREATE OR REPLACE PROCEDURE Seq_inc AS
    2     vmaxarrec number(10);
    3     vseq number(10);
    4       
    5      BEGIN   
    6      select max(recid) into vmaxarrec from acc_rec;
    7      select SEQ_ACC_REC.currval into vseq from dual;
    8       
    9        FOR i IN vseq .. vmaxarrec  LOOP
    10          select SEQ_ACC_REC.nextval  from dual;
    11        END LOOP;
    12   
    13      END ;
    14  /
    Warning: Procedure created with compilation errors.
    SQL> sho err
    Errors for PROCEDURE SEQ_INC:
    LINE/COL ERROR
    10/9     PLS-00428: an INTO clause is expected in this SELECT statementI tried with the above correction ..and still errorsIt looks to me like you're trying to reset the sequence number to a new starting value. In reality there's very little point in doing this, though I've come across a few test scenarios where it's good to start with the same sequence number each time.
    The logic for changing a sequence to a particular value is along the lines of:
    SQL> select test.nextval from dual;
       NEXTVAL
           125
    SQL> var v_inc number;
    SQL> var v_resetno number;
    SQL> exec :v_resetno := 50;
    PL/SQL procedure successfully completed.
    SQL> exec execute immediate 'select -(test.nextval-:x)-1 from dual' into :v_inc using :v_resetno;
    PL/SQL procedure successfully completed.
    SQL> exec execute immediate 'alter sequence test increment by '||:v_inc;
    PL/SQL procedure successfully completed.
    SQL> select test.nextval from dual;
       NEXTVAL
            49
    SQL> alter sequence test increment by 1;
    Sequence altered.
    SQL> select test.nextval from dual;
       NEXTVAL
            50
    SQL> select test.nextval from dual;
       NEXTVAL
            51
    SQL>Note: In your code you are reading the currval of the sequence before you know that you've read the nextval. That will give an error, because the currval is only known within the current session after a nextval has been obtained.
    So, as a procedure, you want something like:
    CREATE OR REPLACE PROCEDURE Seq_inc AS
      v_maxarrec number;
      v_inc      number;
      v_seq      number;
    BEGIN   
      select max(recid)+1 into v_maxarrec from acc_rec; -- get the required sequence value
      select -(seq_acc_rec.nextval-v_maxarrec)-1 into v_inc from dual; -- determine the difference
      execute immediate 'alter sequence seq_acc_rec increment by '||v_inc; -- alter the sequence
      select seq_acc_rec.nextval into v_seq from dual; -- query the sequence to reset it
      execute immediate 'alter sequence seq_acc_rec increment by 1'; -- alter the sequence to increment by 1 again
    END ;(+untested+)

  • Getting error "Error connecting to MDEX" while trying to open micro browser

    Hi,
    I am using endeca Tools and framework 3.1.0 and MDEX 6.3.0.
    While trying to open micro browser from Workbench UI to create page template configurations,I am getting following message in popout:
    Error connecting to MDEX. The data service associated with this editor is not correctly configured.
    Please guide the if you have any clue.
    Thanks,
    Mayank Batra

    I have successfully configured RecordSpotlight editor to use a different endeca instance. What I did is modify apps\[your app name]\config\editors_config\services\dataservice.json file with updated endeca search configuration, save the file, and run apps\[your app name]\control\set_editros_config.bat to apply the change.
    To verify, you can run apps\[your app name]\control\export_site.bat command to export your site configuration, the updated data service config should show in the site xml file exported.
    Hope it helps,
    Michelle

  • Sender RFC adapter Error- request was null while trying to extract it.

    Hi All,
    I  have a scenario running in Production(PI 7.0 system) where SAP ECC sends RFC request through sender RFC adapter. The scenario was working fine but now I am getting the below error in default trace and I couldn't see any error in communication channel monitoring.
    java.lang.Exception: RfcServer[BAS_ECC_RFC_Snd]1[AFSenderD] request was <null> while trying to extract it.
    I have gone through the below thread and performed a full cache refresh but it didn't help :  
    [NULL]
    I have gone through SAP note:730870 and I couldn't get any help on this error. Can you please suggest your ideas to solve this issue.
    Thanks & Regards,
    Laawanya

    Hi Lawanya,
    Check you RFC and input data , whether the RFC call is able to get the data from ECC or not.
    you can test the same RFC in ECC with input data and you can check whether the RFC in ECC is return the value or not.
    I gues in your case the RFC in ECC is not return any data  to PI.

  • Getting linker error in Visual studio while trying to use class ActiveSelectionObserver

    I am trying to implement a selection observer. I am using public specifier to derive from class ActiveSelectionObserver and have included the header file SelectionObserver.h.
    But I am getting the below error from linker while trying to do that.
    Below is the my code:
    class CSDTSelectionObserverImpl : public ActiveSelectionObserver
    /* some code here**/
    Below is the linker error:
    CSDTSelectionObserverImpl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl ActiveSelectionObserver::ActiveSelectionObserver(class IPMUnknown *,class IDType<struct PMIID_tag>)" (__imp_??0ActiveSelectionObserver@@QEAA@PEAVIPMUnknown@@V?$IDType@UPMIID_tag@@@@@Z) referenced in function "public: __cdecl CSDTSelectionObserverImpl::CSDTSelectionObserverImpl(class IPMUnknown *)" (??0CSDTSelectionObserverImpl@@QEAA@PEAVIPMUnknown@@@Z)

    Thanks Markus, this resolved the issue.
    I Included below in properties> linker>input>Additional dependencies
    $(ID_SDK_DIR)\build\win\objdx64\WidgetBin.lib
    But is there some documentation to get this information? as what all .lib are needed for a particular class etc?

  • Error on Control Center while trying to run jobs

    Hi,
    I got a problem while trying to run the scheduled jobs or process flows.
    We tried restarting the control center service manually. It is started without throwing any errors at the backend. But when I open the control center service and try to start or stop a job, its throwing the below error.
    The error is as below.
    ORA-20029: The control center service is not currently available
    ORA-06512: at "OWB_REPO.WB_RTI_EXCEPTIONS", line 107
    ORA-06512: at "OWB_REPO.WB_RTI_QUEUES", line 200
    ORA-25207: enqueue failed, queue OWB_REPO.WB_RT_SERVICE_QUEUE is disabled from
    enqueueing
    ORA-06512: at "OWB_REPO.WB_RTI_SERVICE_EXECUTION", line 548
    ORA-06512: at "OWB_REPO.WB_RTI_SERVICE_EXECUTION", line 619
    ORA-06512: at "OWB_REPO.WB_RT_EXECUTION_CONTROL", line 27
    ORA-06512: at line 1
    I am not able to resolve it. Could any one of you please help me in resolving it?
    It is very urgent. Thanks a ton in advance
    Regards,
    SriGP.

    Hi Oliver,
    Thanks again!!
    There are a lot of queues in DBA_Queues.
    But how can we know which queues should be enabled and which queues should be disabled? As I observed, All the Exception queues are disabled and the reamining queues are enabled.
    About the parameter aq_tm_processes, we have not changed the value of it. Previously, all the jobs used to execute perfectly with the same setting. So, I dont think the value is a problem.
    Recently, we had the below problem in database, because of which all the jobs got stalled/hanged. The system DBA had resolved this problem by extending the SYSTEM tablespace. After that all the database is fine except the OWB jobs. Is there any impact on the on the owb jobs because of the below error?
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01653: unable to extend table SYS.AUD$ by 8192 in tablespace SYSTEM
    ORA-02002: error while writing to audit trail
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01653: unable to extend table SYS.AUD$ by 8192 in tablespace SYSTEM
    Thanks in advance,
    SriGP.

  • Error 1604 on ipad while trying to restore

    trying to update my ipad & came up with error 1604 while trying to restore

    I also have the same error, updating for the first time. Tried restoring from backup but keeps giving me unknown error (6) or unknown error (13). Went to my local o2 shop and they advising me that it is something to do with my PC but i have tried this on my laptop also. Any help would be appreciated as my iphone is now stuck with just the apple logo and then turns to the usb cable with itunes logo

  • What does the error message -50 mean while trying to connect to the iTunes Store?

    I got this error message while trying to connect to the iTunes Store. -50. Does anyone know what that might mean? For almost two months I have been unable to use my iTunes with my iPod-because my iPod is not being recognized in iTunes. I have done every troubleshooting thing possible-including completely uninstalling and reinstalling iTunes, eight different times. Please help. Super frustrated.

    iTunes: "-50" alert when syncing your iOS device to iTunes 10.3
    iTunes displays -50 error message when syncing iPod on Windows XP
    "Error -50," "-5000," "8003," "8008," or "-42023"
    These alerts occur due to timeouts or conflicts trying to write a file during download.
    If you encounter this issue while accessing iTunes Store:
    See iTunes 9: "One Moment Please" or "Error (-50)" message when accessing iTunes Store
    If you encounter this issue while while downloading something from the iTunes Store:
    Delete your iTunes Downloads folder, located in:
    Mac OS X:
  ~/Music/iTunes/iTunes Media/Downloads   Note: "iTunes Media" may appear as "iTunes Music. Also, the tilde (~) refers to your Home directory.
    Windows Vista:
  \Users\username\Music\iTunes\iTunes Media\Downloads\
    Windows 7:
  \Users\username\My Music\iTunes\iTunes Media\Downloads\
    Windows XP:
  \Documents and Settings\username\My Documents\My Music\iTunes\iTunes Media\Downloads\
    After locating your iTunes Downloads folder:
    Quit iTunes.
    Delete the Downloads folder on your computer.
    Open iTunes.
    Choose Store > Check for Available Downloads.
    Enter your account name and password.
    If you encounter this issue while while downloading Digital Copies using Windows:
    Use MSCONFIG (directions for Windows XP and Windows Vista/Windows 7) to disable conflicting software.
    If using MSCONFIG steps resolves the issue, you may want to use the System Configuration Utility to turn on the third-party System Services and Startup Items one at a time (restarting your computer after turning on the item or items) to identify which System Service or Startup Item is causing the conflict.
    You can turn all of them back on by selecting the Normal Startup option under the General tab of the System Configuration Utility window, but please note that this may cause the issue to reoccur.
    If you are able to isolate the issue to a particular third-party software, you may wish to contact them to let them know of the conflict.

  • Compiling errors and return methods

    The error is invalid method declaration; return type required
    public Term(double c, int d)
    Thanks
    public Term(double c, int d)
          coeff = c;
          degree = d;
          Multiplies a term.
          @param other the other term
          @return the new term after mulitiplication
       public Term multiply(Term other)
          return new Term(coeff * other.coeff, degree + other.degree);
          Adds a coefficient.
          @param c the coefficient to add
       public void add(double c)
          coeff += c;
          return c;
          Gets the coefficient.
          @return the coefficient
       public double getCoeff()
          return coeff;
          Gets the degree.
          @return the degree
       public int getDegree()
          return degree;
       private double coeff;
       private int degree;
    }

    I bet this means your enclosing class isn't called Term
    is there an enclosing class at all ? what are those two declarations at the end ? member variables ?
    When posting code, take care that the curly braces match, please (ie dont post half blocks of code)

  • TS3297 the 'none' payment option is not displayed in the preferred payment method while trying to create an apple id?

    While trying to create a new apple ID, I do not see the option of 'NONE' payment.  Only the VISA and MASTERCARD options are displayed.  What is the reason?

    Welcome to the Apple Support Communities, Joseph
    http://support.apple.com/kb/ht2534

  • Access denied error while trying to install graphics drivers

    Hello,
    I have a new toshiba laptop P70-A. I have installed windows 7 and the pc was working excellent up until now. Noticed yesterday that the nvidia automated system failed to install the new update. When I tried to install the new driver manually, even from the
    device manager, I got the access denied message. 
    A day now wasted reading all the possible causes and solutions but with no luck. Read all the forums and all the posts, tried almost everything. Below youll find everything I tried as a solution and failed.
    1.Disabled UAC
    2.Enabled the administrator account and trying to take control from there
    3.Run the subinacl and the reset.cmd
    4.Tried manually to take control the folder windows (and access denied while changing the rights)
    5. Scanned the system with everything there is available ( Kaspersky, MalwareBytes, RegCurePro, Tuneup Utilities, CCleaner) The system came out clean.
    6. Tried restoring the system to an earlier time (got again access denied error code 0x80070005)
    7. Checked all the group policies (all seem to be fine)
    8. Run a script to take immediate ownership over all of C:
    TAKEOWN /A /F C:
    then the next one
    TAKEOWN /F C: 
    9. With subinacl I run all the above scripts... (still nothing changed)
    @echo off
    title Resetting ACLs...
    echo.
    echo Determine whether we are on an 32 or 64 bit machine
    echo.
    if "%PROCESSOR_ARCHITECTURE%"=="x86" if "%PROCESSOR_ARCHITEW6432%"=="" goto x86
    set ProgramFilesPath=%ProgramFiles(x86)%
    goto startResetting
    :x86
    set ProgramFilesPath=%ProgramFiles%
    :startResetting
    echo.
    cd /d "%ProgramFilesPath%\Windows Resource Kits\Tools"
    echo. 
    echo Resetting ACLs...
    echo (this may take several minutes to complete)
    echo. 
    echo IMPORTANT NOTE: For this script to run correctly, you must change
    echo the values named Athena to be the Windows user account that
    echo you are logged in with.
    echo.
    echo ==========================================================================
    echo. 
    echo. 
    subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=Athena=f /setowner=administrators > %temp%\subinacl_output.txt
    echo. 
    echo. 
    subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=Athena=f /setowner=administrators >> %temp%\subinacl_output.txt
    echo. 
    echo. 
    subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
    echo. 
    echo. 
    subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
    echo. 
    echo. 
    subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
    echo. 
    echo. 
    subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
    echo. 
    echo. 
    echo System Drive...
    subinacl /subdirectories %ProgramFilesPath%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
    echo. 
    echo. 
    echo Windows Directory...
    subinacl /subdirectories %windir%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
    echo. 
    echo. 
    echo ==========================================================================
    echo. 
    echo FINISHED.
    echo. 
    echo Press any key to exit . . .
    pause >NUL
    Im frustrated really... ANY help at all would be really appreciated.
    Thanks in Advance and sorry for the long post
    Athena 

    Hello,
    Thanks for the replies, i much appreciate it. I tried all of the above with no luck again. Safe mode allows me though to install drivers but thats reverting the moment im entering windows. Im always running commands and programs as a administrator or in
    the Admin enabled account.
    It seems the problem is solved today. Via tune up utilities I disabled most of the startup programs and services and it seems that 1 service is causing this issue. Although I havent played much with the disabled services but 3 remain to be checked. One of
    the three is causing this.
    Thanks again guys and Ill keep you posted about the soft. conflict.
    Athena

  • BODS 3.2: Error opening ABAP file while trying to read ECC table

    I have an ABAP data flow where I'm trying to read an ECC table (I'm following the DS 3.2 tutorial on "Extracting SAP Application Data").  I have the ECC datastore store set up with the following:
    ABAP execution option = Generate and Execute
    Data transfer method = Shared directory
    Working directory on SAP server =
    A\interfaces\D11\110 (SAP app server)
    Application path to the shared directory =
    A\interfaces\D11\110 (SAP app server)
    Generated ABAP directory =
    B\opt\ds\ds32dev1\transfer_ABAP (DS server)
    However, when I run the job I get the following error:
    R3C-150301     12/2/2011 1:54:41 PM     Error opening file <//B/opt/ds/ds32dev1/transfer_ABAP/zcustdim.aba>.
    I have verified the DS userid has read/write access to the Generated ABAP directory.  Any ideas on what I'm doing wrong?
    Thanks...

    Hi Brad, Sorry Tushar,
    I see the discussion has moved on (to the second page ) Still the below should apply. Please give a look and see if it explains things.
    It looks like a permission issue creating the file if I'm not wrong.
    http://wiki.sdn.sap.com/wiki/display/EIM/How+to+execute+the+ABAP
    point 3.
    It will be the abap script that will write the file into the folder you added in the DataStore.
    You can even goto the folder the abap code is in and search for the path in there.
    Here a good  example for windows from the wiki
    http://wiki.sdn.sap.com/wiki/display/EIM/shared_directory+transport+method
    with this important sentence:
    However it has to be made certain that the OS user running the ABAP has the
    permission to write there, and the user running the job requires read
    permissions one the directory and the created file. What OS user is writing the
    file? It is the user running the entire SAP instance. And who is reading the
    file? The user running the DI service
    So:
    The working directory = where the SAP user = the user that is running the SAP installation is instructed to write the .dat file. The folder is probably local to the SAP installation?
    Shared folder is for the JobServer to pick up that file. Same physical directory ...but this time from the DS user prospective. Is the JobServer on the same machine or does the folder have to be mapped?
    Keep in mind that for a job server on Windows, Windows shares with \\<server>\path are OK, but I don't believe there is any other network drive mechanism, so no NFS paths in the <server>:/ or trying // etc.
    Regards
    Norbert
    P.S. In production you should then switch to "execute" instead of load and execute and an ftp server instead of shared folders.

  • Error 406 access denied while trying to Add Windows 2008 HV host in SCVMM 2008.

    I am trying to add Windows 2008 HV host in SCVMM 2008. While adding host i am getting error message...
    Error (406)
    Access
    has been denied while contacting the server <server name>. 
    Recommended
    Action
    1.
    Verify that the specified user account has administrative privileges on <server name>.
    2.
    Verify that DCOM access, launch, and activation permissions are enabled on <server name> for the Administrators group. Use dcomcnfg.exe to modify
    permissions, and then try the operation again.
    I have already done DCOM security modification for my user. I am able to RDP or any file sharing HV host from SCVMM machine. My user is member of local administrator for both the machines. 
    Before that i have added one Windows 2008 HV (Core) successfully and 2 ESX host in same SCVMM machine. 
    Any Help would be greatly appreciated.
    vaibhav

    Has anyone found a fix for this? I've been troubleshooting this issue for 4 days now. I've unjoined/rejoined the host to the domain, deleted SCVMM certificate, given permissions (out the wahzoo) in COM/Access Permissions, all updates installed, firewall
    is off (I even tried turning it on and configuring program/port access), I've tried with 3 different domain accounts that are a member of the local Administrators group.
    The other day I managed to get the host added (don't ask me how) but then all the VM's were in status 'Host not responding' so I couldn't even manage them. So I removed it and now can't get the host added again. I'm using SCVMM 2008 R2 SP1 and the problem
    host is Server 2008 R2 SP1 x64.
    Error (406)
    Access has been denied while contacting the server xxxxxxxx.domain.com.  
    Recommended Action
    1. Verify that the specified user account has administrative privileges on xxxxxxx.domain.com.
    2. Verify that DCOM access, launch, and activation permissions are enabled on xxxxxxx.domain.com for the Administrators group. Use dcomcnfg.exe to modify permissions, and then try the operation again.
    I was getting this error after I got the host added:
    Error (2910)
    VMM does not have appropriate permissions to access the resource C:\Windows\system32\qmgr.dll on the xxxxxxxx.domain.com server.
     (Access is denied (0x80070005))
    Recommended Action
    Ensure that Virtual Machine Manager has the appropriate rights to perform this action.

  • HT201210 error 21 comes up while trying to restore iphone 4?

    WHILE KEEP TRYING TO RESTORE MY IPHONE 4 IT KEEPS SAYING ERROR 21 AFTER ITUNES EXTRACTS SOFTWARE TUNRS OFF AND ON BACK SHOWS APPLE LOGO THAN GOES BACK TO THE ITUNES SCREEN WITH THE CHARGER LOGO, WHAT CAN I DO? ANY BODY KNOW? PLEASE  LET ME KNOW, THANKS. NOT SURE OF THE OPERATING SYSTEM BUT THINK IT IS IOS 7.1 OR 7..0.6

    From TS3694 Resolve Specific iTunes update and restore errors:
    Check for hardware issues
    Related errors: 1, 3, 10-47, 1002, 1011, 1012, 1014, 1000-1020, 1669.
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the error message when you update or restore, contact Apple support.

Maybe you are looking for

  • Javascript popups in an if-else jsp statement

    hey there! i got a question...how can i get a jsp popup box in my jsp if-else statement?? if (rs.next()) { String dbValue = rs.getString("Password"); if (password.equals(dbValue)) {      response.sendRedirect("PersonalDetails.jsp"); else {      //say

  • Nokia Bluetooth Headset BH-105 E72 problem

    Hi I have a problem conecting my E72 with this device.  My last nokia was a 6680 and just worked perfectly with this device.  With my E72, the telephone simply just don't find the device with the bluetooth turned on and i could not connect the teleph

  • Which table will give me the serial numbers per each delivery?

    Which table will give me the serial numbers per each delivery?

  • Reg: PO interface from 4.7 to ECC 6.0

    Hi Everyone, I'm new to ALE/IDOC, Can anyone give the steps which needs to be followed to send POs thru IDOC from 4.7 to ECC 6.0. Do I need to populate all the data like control segments, data segments or PO related details will be sent thru IDOC if

  • Login problem after change in Domain name of portal

    I have installed portal 3.0 Beta on windows 2000. installation has gone fine and everything was working. after this i made change in domain name. for this i ran ssodatan.cmd script (source from metalink). now i am not able to go by "http://domain_nam