Please help with this part of error...

Hi all,
Please help me with this error. What i was trying to do is that when Server send a message to client, it print out on the screen what is sent to Client. For instance, if the Message is called FirstMessage sent to Client, the message FirstClient will display from server console with a specific message such as "First Message from server to client: first Message") and so on. I tried to implement the below code but when compiled it i got error message as follows :
C:\Java\bin>javac QuoteServer.java
QuoteServer.java:60: <identifier> expected
out.close();
^
QuoteServer.java:61: <identifier> expected
in.close();
^
QuoteServer.java:62: <identifier> expected
clientSocket.close();
^
QuoteServer.java:63: <identifier> expected
myserverSocket.close();
^
4 errors
Her is the Server side socket...
import java.net.*;
import java.io.*;
import java.util.*;
class QuoteServer
public static void main(String[] args) throws IOException
ServerSocket myserverSocket = null;
try
myserverSocket = new ServerSocket(4998);
} catch (IOException e)
                    System.err.println("Could not listen on port: 4998.");
                    System.exit(1);
Socket clientSocket = null;
try
clientSocket = myserverSocket.accept();
} catch (IOException e)
                    System.err.println("Accept failed.");
                    System.exit(1);
               PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true);
               BufferedReader in = new BufferedReader(
               new InputStreamReader(
               clientSocket.getInputStream()));
               String inputLine, outputLine;
               QuoteProtocol QP = new QuoteProtocol();
               outputLine = QP.processInput(null);
               Date current = new Date();
               out.println(outputLine);
               String ToClient;
               while ((inputLine = in.readLine()) != null )
                         outputLine = QP.processInput(inputLine);
                         out.println(outputLine);
                         System.out.println(inputLine);
                         System.out.println(current.toString());
                         /* additional..if doesn't work delete this code*/
                         while ((ToClient = in.readLine()) != null)
                              System.out.println("Server: " + ToClient);
                              if (ToClient.equals("Bye."))
                              break;
               /* delete up to break*/
                    if (outputLine.equals("Bye."))
                         break;
out.close();
in.close();
clientSocket.close();
myserverSocket.close();
Could someone with the expertise advise me what shall i do?
Thank you very much.
Audrea.

Thanks for the quick reply...
Here is the code with correct open/close braces...
import java.net.*;
import java.io.*;
import java.util.*;
class QuoteServer
public static void main(String[] args) throws IOException
ServerSocket myserverSocket = null;
try
myserverSocket = new ServerSocket(4998);
} catch (IOException e)
                    System.err.println("Could not listen on port: 4998.");
                    System.exit(1);
Socket clientSocket = null;
try
clientSocket = myserverSocket.accept();
} catch (IOException e)
                    System.err.println("Accept failed.");
                    System.exit(1);
               PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true);
               BufferedReader in = new BufferedReader(
               new InputStreamReader(
               clientSocket.getInputStream()));
               String inputLine, outputLine;
               QuoteProtocol QP = new QuoteProtocol();
               outputLine = QP.processInput(null);
               Date current = new Date();
               out.println(outputLine);
               String ToClient;
               while ((inputLine = in.readLine()) != null )
                         outputLine = QP.processInput(inputLine);
                         out.println(outputLine);
                         System.out.println(inputLine);
                         System.out.println(current.toString());
                         /* additional..if doesn't work delete this code*/
                         while ((ToClient = in.readLine()) != null)
                              System.out.println("Server: " + ToClient);
                              if (ToClient.equals("Bye."))
                              break;
               /* delete up to break*/
                    if (outputLine.equals("Bye."))
                         break;
out.close();
in.close();
clientSocket.close();
myserverSocket.close();
Line 60 starting from out.close(); onwards.
Please help..
Thanks a lot.
Audrea.

Similar Messages

  • Please help with this Database Connection error

    Hi,
    there is an asp application related to Invoices that uses RDO object concept to connect to the database. Backend is oracle 10g. Application works fine in retrieving data from several tables except for one part of the application. Here the application needs to display the details of the Invoice once the user puts a checkmark beside the invoice number. The code works in a loop to display each invoice selected.
    Problem is that it works upto about 15 continuous selections and after that it displays this error.
    error '800a9c42'
    IM006: [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
    This occurs on a line which contains a function that is used to get data from the resultset, which inturn should run a query.
    I tried to increase the timeout for the ODBC connection but to no avail. It uses a DSN connection with Microsoft odbc oracle driver.
    Can any one suggest please?
    Many thanks
    Sri

    Look at http://support.microsoft.com/kb/q264012/
    It is a known issue in MDAC, with an easy solution.

  • Hi. I have an iPhone 4s. The music doesn't play when I connect it to my car stereo. It used to play previously but stopped playing all of a sudden. My phone is getting charged when I cut it to the USB port. Please help with this. The iOS is 6.1.3.

    Hi. I have an iPhone 4s. The music doesn't play when I connect it to my car stereo. It used to play previously but stopped playing all of a sudden. My phone is getting charged when I cut it to the USB port. Please help with this. The iOS is 6.1.3.

    Hello Priyanks,
    I found an article with steps you can take to troubleshoot issues with an iPhone not connecting to your car stereo:
    iOS: Troubleshooting car stereo connections
    http://support.apple.com/kb/TS3581
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • My "fn" button is stuck on only revealing mission control in Lion. With this problem none of my "f" keys will work nor can I hold "fn" and delete to delete text in opposite direction. Can someone please help with this?

    My "fn" button is stuck on only revealing mission control in Lion. With this problem none of my "f" keys will work nor can I hold "fn" and delete to delete text in opposite direction. Can someone please help with this?

    Following the fix here worked for me:
    https://discussions.apple.com/message/15680566#15680566
    except my plist file was in ~/Library instead of /Library.
    -Scott

  • Please help with cannot find symbol error. Been struggling all day :(

    Hi all. :)
    Writing a game for my phone with KToolbar and have been getting a cannot find symbol error for every variable and method I try to use across Classes. I've looked all over and though it seems a common problem I always either don't understand or can't get working the various solutions. Example of my errors:
    C:\...\BTK800i.java:197: cannot find symbol
    symbol : variable youSayWhat
    location: class HelloCanvas
              youSayWhat=key;
              ^
    If I try BTK800i.variable or BTK800i.message I get a new error.
    C:\...\src\BTK800i.java:184: non-static method newOrdersSarge() cannot be referenced from a static context
              BTK800i.newOrdersSarge();
              ^
    Both these errors apply to both variables and methods. It only happens when I'm using methods/variables of one class in another, am I using public and private incorrectly? It doesn't seem to make a difference if I make variables public or leave them private, I'm trying to get to them with a public method within a private class. Is it something else? I really have no idea. :(
    Here's my code, it's long enough to be a tiresome read so I've tried to skip what I know isn't relevant.
    public class BTK800i extends MIDlet {
         private Display myDisplay;
         private HelloCanvas myCanvas;
         public int youSayWhat;
            //a whole bunch more skipped here, but I'm fairly certain it's not anything that'll help find a solution
         public BTK800i() {
              paused=false;
    public void startApp() throws MIDletStateChangeException {
              if( paused ) {
                   myCanvas.repaint();
              else {
                   myDisplay=Display.getDisplay(this);
                   myCanvas=new HelloCanvas();
                   myDisplay.setCurrent(myCanvas);
                   myCanvas.setFullScreenMode(true);
                   youSayWhat=0;
                           //again with the skipping, more code not related
    public void newOrdersSarge() {
    //whole bunch of code
    //other methods skipped
    class HelloCanvas extends Canvas {
         public void keyPressed (int key) {
              youSayWhat=key;
              repaint ();
    //skippage
    }The stuff I skipped is mainly either more of the same sorta thing or maths/writing to screen stuff.
    Thanks alot to anyone who helps. I'm really struggling with this. :(
    Dan.

    But I have been reading them :(
    My next-door neighbour unfortunately is an 80-something married man, but I will go have a looksie about static and instances.
    I thought the point of public variables was that other classes could use them, is this wrong?
    Also does this mean that to use the variables from my BTK class in the HelloCanvas class I need to first instantiate BTK? I don't understand how that works as the code starts running from the BTK class in the first place :S I guess more reading will help with this.
    Thanks very much for replying. :)
    Edit:
    OK I have read up on it but I don't think I found anything I hadn't read before. I tried to make a new class which I could instantiate to hold all the variables and methods I wanted everything to be able to access, but that went disastrously. Am I right in understanding that there are no global variables in Java? :s
    Edited by: Dan69 on Apr 17, 2010 1:15 PM

  • Please help with this error: "Your request could not be completed because of a disk error"

    So photoshop cs6 was working fine a few weeks ago. After not using it for about 2 weeks, I try opening a RAW file and I get this error every time. JPGs open and work fine. I have extensively searched on the internet for solutions and have tried everything such as: disk checking, deframgenting, playing around with photoshop preferences, deleting temp files, resetting preferences, clearing disk space. I have assigned two hard drives for photoshop, one with 16 GB free and the other with 8 GB free. I am getting very frustrated. Please help!

    mistahbo1 wrote:
    …I have assigned two hard drives for photoshop, one with 16 GB free and the other with 8 GB free. I am getting very frustrated. Please help!
    That's woefully inadequate for scratch file space.
    The rule of thumb I follow says to figure on 50 to 100 times the size of your largest file ever multiplied by the number of files you have open.  I have seen the scratch file exceed 300 GB once, an admittedly rare occurrence, but it often exceeds 200 GB when stitching large panoramas and the like.
    Additionally, if either one those two drives you mention with "16 GB free and the other with 8 GB free" happened to be your boot drive, you'd be in a heap of trouble because neither one of those drives has nearly enough space to accommodate the swap files of the OS and Photoshop's scratch.
    As an example—and stressing that I'm aware that others have even more scratch space than I do—I keep two dedicated, physically separate hard drives as my primary and secondary Photoshop scratch disks and a lot of GB free on my boot drive for the OS.  I have 16 GB of RAM installed:

  • Please help with this Premiere Pro CS5 encoding error

    VBR 2 pass encoding getting stuck at 50% in Premire Pro CS5. I assume this is the starting point of pass #2. The Error message states that one of the temporary files created during first pass cannot be read. I confirmed that said file exists, it is in the correct location and has the correct file name. Interestingly, at times, the 2 pass encoding proceeds through completion without issues, but I haven't been able to identify the reason for this. PLEASE HELP!! Thank you.

    Thank you so much for replying. I tried running as administrator and it did not correct the issue. Luckily I did figure out the problem after trying various ways. It so happens that Windows seven sets "read Only" attributes to files within folders that you create by right clicking on the drive name and using "New Folder". So, when the encoder tries to over-write on one of the temporary files it created during the first pass it can't do it and it issues the error "Cannot open file for writing...etc.". I fixed it by right clicking inside the folder contents and changing the attribute. Now it works. This is the error that I was getting:

  • Mac Book Crashing Can anyone please help with this error message,  I've run Disk warrior and everthing is coming up fine, so may be a hardware issue, thank you Interval Since Last Panic Report:  22119 sec Panics Since Last Report:          14 Anonymous UU

    I've run Disk warrior, it says all the files and harddrive are fine.
    thanks for your help.  This crashing was happening before I upgraded to Lion
    Interval Since Last Panic Report:  22119 sec
    Panics Since Last Report:          14
    Anonymous UUID:                    1DA2B715-D1E5-4BF1-A47F-D31CBD8C1E78
    Wed Mar  7 13:21:17 2012
    panic(cpu 2 caller 0xffffff7f8098c907): NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0x0a2910de 0x00100000 0x00000000, BAR0 0xd2000000 0xffffff80a0354000 0x0a5480a2, D0, P2/4
    Backtrace (CPU 2), Frame : Return Address
    0xffffff80a398b800 : 0xffffff8000220702
    0xffffff80a398b880 : 0xffffff7f8098c907
    0xffffff80a398b910 : 0xffffff7f80a7ca64
    0xffffff80a398b960 : 0xffffff7f80a7cb24
    0xffffff80a398b9c0 : 0xffffff7f80d29749
    0xffffff80a398bb00 : 0xffffff7f80a9bbad
    0xffffff80a398bb30 : 0xffffff7f80996282
    0xffffff80a398bbe0 : 0xffffff7f80991b84
    0xffffff80a398bdd0 : 0xffffff7f80993639
    0xffffff80a398beb0 : 0xffffff7f8092e484
    0xffffff80a398bf00 : 0xffffff7f820a47d6
    0xffffff80a398bf50 : 0xffffff7f820a4f2a
    0xffffff80a398bf70 : 0xffffff800023db2c
    0xffffff80a398bfb0 : 0xffffff8000820057
          Kernel Extensions in backtrace:
             com.apple.NVDAResman(7.1.8)[94BA87BA-B128-3310-9860-98EC67AB7FAF]@0xffffff7f809 2c000->0xffffff7f80c05fff
                dependency: com.apple.iokit.IOPCIFamily(2.6.8)[F63D4ABE-42DA-33EF-BADD-3415B0CB0179]@0xffff ff7f808b7000
                dependency: com.apple.iokit.IONDRVSupport(2.3.2)[4B3F84DC-18B3-3897-BC56-4E3940878047]@0xff ffff7f8091a000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[FE536983-1897-3D6B-965E-24B5A67080DA]@0 xffffff7f808e2000
             com.apple.nvidia.nv50hal(7.1.8)[7596DB8C-AE9D-3C87-B11A-0ED8F940CAF8]@0xffffff7 f80c06000->0xffffff7f80f27fff
                dependency: com.apple.NVDAResman(7.1.8)[94BA87BA-B128-3310-9860-98EC67AB7FAF]@0xffffff7f809 2c000
             com.apple.driver.AGPM(100.12.42)[380DAA3B-4F08-3152-A3A0-E3F8B6E4B92B]@0xffffff 7f820a3000->0xffffff7f820adfff
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.2)[FE536983-1897-3D6B-965E-24B5A67080DA]@0 xffffff7f808e2000
                dependency: com.apple.iokit.IONDRVSupport(2.3.2)[4B3F84DC-18B3-3897-BC56-4E3940878047]@0xff ffff7f8091a000
                dependency: com.apple.iokit.IOPCIFamily(2.6.8)[F63D4ABE-42DA-33EF-BADD-3415B0CB0179]@0xffff ff7f808b7000
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    11D50
    Kernel version:
    Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64
    Kernel UUID: 7B6546C7-70E8-3ED8-A6C3-C927E4D3D0D6
    System model name: MacBookPro6,2 (Mac-F22586C8)
    System uptime in nanoseconds: 5224512131000
    last loaded kext at 1624245923653: com.apple.driver.AppleFireWireStorage    3.0.1 (addr 0xffffff7f808b3000, size 16384)
    last unloaded kext at 1739101632802: com.apple.driver.StorageLynx    3.0.1 (addr 0xffffff7f80809000, size 8192)
    loaded kexts:
    com.regularrateandrhythm.driver.RowmoteIREmu    1.0
    com.bresink.driver.BRESINKx86Monitoring    8.0
    com.AmbrosiaSW.AudioSupport    3.2
    com.apple.driver.Oxford_Semi    3.0.1
    com.apple.driver.AppleUSBDisplays    317
    com.apple.driver.AppleHWSensor    1.9.4d0
    com.apple.filesystems.autofs    3.0
    com.apple.driver.AudioAUUC    1.59
    com.apple.driver.AGPM    100.12.42
    com.apple.driver.AppleMikeyHIDDriver    122
    com.apple.driver.AppleHDA    2.1.7f9
    com.apple.driver.AppleUpstreamUserClient    3.5.9
    com.apple.driver.AppleMCCSControl    1.0.26
    com.apple.driver.AppleMikeyDriver    2.1.7f9
    com.apple.driver.AppleIntelHDGraphics    7.1.8
    com.apple.driver.AppleIntelHDGraphicsFB    7.1.8
    com.apple.driver.SMCMotionSensor    3.0.1d2
    com.apple.iokit.IOUserEthernet    1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X    7.0.0
    com.apple.driver.AudioIPCDriver    1.2.2
    com.apple.driver.AppleSMCLMU    2.0.1d2
    com.apple.GeForce    7.1.8
    com.apple.driver.ACPI_SMC_PlatformPlugin    4.7.5d4
    com.apple.driver.AppleMuxControl    3.0.16
    com.apple.driver.AppleLPC    1.5.3
    com.apple.driver.AppleUSBTCButtons    225.2
    com.apple.driver.AppleIRController    312
    com.apple.driver.AppleUSBTCKeyboard    225.2
    com.apple.driver.AppleUSBCardReader    3.0.1
    com.apple.iokit.SCSITaskUserClient    3.0.3
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless    1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib    1.0.0d1
    com.apple.BootCache    33
    com.apple.iokit.IOAHCIBlockStorage    2.0.1
    com.apple.driver.AppleUSBHub    4.5.0
    com.apple.driver.AppleSmartBatteryManager    161.0.0
    com.apple.driver.AppleFWOHCI    4.8.9
    com.apple.driver.AirPort.Brcm4331    513.20.19
    com.apple.iokit.AppleBCM5701Ethernet    3.0.8b2
    com.apple.driver.AppleEFINVRAM    1.5.0
    com.apple.driver.AppleAHCIPort    2.2.0
    com.apple.driver.AppleUSBEHCI    4.5.8
    com.apple.driver.AppleACPIButtons    1.4
    com.apple.driver.AppleRTC    1.4
    com.apple.driver.AppleHPET    1.6
    com.apple.driver.AppleSMBIOS    1.7
    com.apple.driver.AppleACPIEC    1.4
    com.apple.driver.AppleAPIC    1.5
    com.apple.driver.AppleIntelCPUPowerManagementClient    167.3.0
    com.apple.nke.applicationfirewall    3.2.30
    com.apple.security.quarantine    1.1
    com.apple.driver.AppleIntelCPUPowerManagement    167.3.0
    com.apple.iokit.IOFireWireSerialBusProtocolTransport    2.1.0
    com.apple.iokit.IOFireWireSBP2    4.2.0
    com.apple.driver.AppleUSBHIDKeyboard    152.3
    com.apple.driver.AppleHIDKeyboard    152.3
    com.apple.driver.AppleUSBAudio    2.8.2f5
    com.apple.kext.triggers    1.0
    com.apple.driver.DspFuncLib    2.1.7f9
    com.apple.driver.AppleSMBusController    1.0.10d0
    com.apple.iokit.IOSurface    80.0
    com.apple.iokit.IOBluetoothSerialManager    4.0.3f12
    com.apple.iokit.IOSerialFamily    10.0.5
    com.apple.iokit.IOFireWireIP    2.2.4
    com.apple.iokit.IOAudioFamily    1.8.6fc6
    com.apple.kext.OSvKernDSPLib    1.3
    com.apple.driver.AppleHDAController    2.1.7f9
    com.apple.iokit.IOHDAFamily    2.1.7f9
    com.apple.driver.ApplePolicyControl    3.0.16
    com.apple.driver.AppleSMC    3.1.1d8
    com.apple.driver.IOPlatformPluginFamily    4.7.5d4
    com.apple.driver.AppleSMBusPCI    1.0.10d0
    com.apple.driver.AppleGraphicsControl    3.0.16
    com.apple.driver.AppleBacklightExpert    1.0.3
    com.apple.nvidia.nv50hal    7.1.8
    com.apple.NVDAResman    7.1.8
    com.apple.iokit.IONDRVSupport    2.3.2
    com.apple.iokit.IOGraphicsFamily    2.3.2
    com.apple.driver.BroadcomUSBBluetoothHCIController    4.0.3f12
    com.apple.driver.AppleUSBBluetoothHCIController    4.0.3f12
    com.apple.iokit.IOBluetoothFamily    4.0.3f12
    com.apple.driver.AppleUSBMultitouch    227.1
    com.apple.iokit.IOUSBHIDDriver    4.4.5
    com.apple.iokit.IOSCSIBlockCommandsDevice    3.0.3
    com.apple.iokit.IOUSBMassStorageClass    3.0.1
    com.apple.driver.AppleUSBMergeNub    4.5.3
    com.apple.driver.AppleUSBComposite    4.5.8
    com.apple.iokit.IOSCSIMultimediaCommandsDevice    3.0.3
    com.apple.iokit.IOBDStorageFamily    1.6
    com.apple.iokit.IODVDStorageFamily    1.7
    com.apple.iokit.IOCDStorageFamily    1.7
    com.apple.driver.XsanFilter    403
    com.apple.iokit.IOAHCISerialATAPI    2.0.1
    com.apple.iokit.IOSCSIArchitectureModelFamily    3.0.3
    com.apple.iokit.IOUSBUserClient    4.5.8
    com.apple.iokit.IOFireWireFamily    4.4.5
    com.apple.iokit.IO80211Family    412.2
    com.apple.iokit.IOEthernetAVBController    1.0.0d5
    com.apple.iokit.IONetworkingFamily    2.0
    com.apple.iokit.IOAHCIFamily    2.0.7
    com.apple.iokit.IOUSBFamily    4.5.8
    com.apple.driver.AppleEFIRuntime    1.5.0
    com.apple.iokit.IOHIDFamily    1.7.1
    com.apple.iokit.IOSMBusFamily    1.1
    com.apple.security.sandbox    177.3
    com.apple.kext.AppleMatch    1.0.0d1
    com.apple.security.TMSafetyNet    7
    com.apple.driver.DiskImages    331.3
    com.apple.iokit.IOStorageFamily    1.7
    com.apple.driver.AppleKeyStore    28.18
    com.apple.driver.AppleACPIPlatform    1.4
    com.apple.iokit.IOPCIFamily    2.6.8
    com.apple.iokit.IOACPIFamily    1.4

    Please describe:
    Computer model & hardware characteristics (especially RAM).
    How much free space left on HDD.
    Any add-ons you may have added to the system (antivirus, screen eye candy, etc.)
    What applications were running when the crash occurred.
    What were you doing when the crash occurred.

  • Please help with this issue "To Run a SSIS Package outside of Server Data Tools You must install Drived Column of Integration sercvies of higher" From C# app

     i have searched all over the google and here on MSDN(I have read all the threads related to my problem ) , i am new to SISS and doing my clg project ,
    I have this package which loads data from  dim tables to a fact table , my Package runs without any problem in BIDS (2012)
    I have installed SQl Server integration services on SQL and service is also running in services.msc,
    the problem comes when i execute my package using my C# application i am using MSDN Method to execute a SSIS package programmatically given here.
    "http://msdn.microsoft.com/en-us/library/ms136090.aspx"
    For loading my FactTable i have used a Derived columns  and some lookups , 
    Now if i don't use derived columns and looks ups and just use source and destination component then my package runs fine from my C# application but if i use derived columns or looks ups etc it gives the following error
    "Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline: To Run a SSIS package outside of SQL Server Data Tools you must Install Derived Column of Integration services of higher"
    I am searching and trying to resolve this issue from previous 2 days but without any luck please help or guide me what is solution to this problem ,,i will be very thankful
    I have also found that integration services that are running on my system have version  10.0
    but the BIDS have version Version 11.0.3402.0
    IS this causing problem ?  if yes then what i have to do  ?

    Hi BlaxButt,
    The package is developed in SSDT installed by SQL Server 2012, so it is a SSIS 2012 package. However, the Integration Services you have installed is SQL Server 2008 R2 version. To run the package outside SSDT, you need SSIS 2012 installed. The reason why
    the package runs fine with only Source and Destination components is that such a simple package can be executed by the DTExec utility installed by SQL Server 2012 Data base Engine or Client Tools (SQL Server Import and Export Wizard). To run a package that
    uses other tasks/components outside SSDT/BIDS, the SSIS runtime is also required except the DTExec utility. To obtain the SSIS 2012 runtime, we have to install SSIS 2012 on the server where the package runs.
    Reference:
    http://stackoverflow.com/questions/19989099/getting-error-running-ssis-package-on-non-ssis-server
    Regards,
    Mike Yin
    TechNet Community Support

  • Please help with this com/apple/mrj/macos/carbon/CarbonLock

    Can anyone help me with this error
    java.lang.NoClassDefFoundError: com/apple/mrj/macos/carbon/CarbonLock
    we have written a app that takes a digital photo with a web cam. Now get this on my macs
    Please help any help Please
    Craig

    Thank I have seen that but thanks
    I was hoping there is a way around it ??
    I can not believe that Apple the makers of QuickTime don['t support Java 1.4.1
    Craig

  • Please help with this bapi

    Hi Experts!
    I am trying to use 'BAPI_OUTB_DELIVERY_CONFIRM_DEC' for posting goods issue but could not succeed. I am getting the message 615 (Delivery item is not or only partially packed) when I test the same in SE37. However the same delivery, if I go to VL02n and issue post goods issue, it is succeeding. I think I am doing some mistake with the parameters to be passed to bapi. Please help me find the error as I am unable to find. I am stuck with this for pretty long time. Points assured for helpful answers.
    Thanks for your time.
    Krishen
    DATA: itab_headerdata TYPE STANDARD TABLE OF bapiobdlvhdrcon WITH HEADER LINE.
    DATA: itab_headercontrol TYPE STANDARD TABLE OF bapiobdlvhdrctrlcon WITH HEADER LINE.
    DATA: itab_itemdata TYPE STANDARD TABLE OF bapiobdlvitemcon WITH HEADER LINE.
    DATA: itab_itemcontrol TYPE STANDARD TABLE OF bapiobdlvitemctrlcon WITH HEADER LINE .
    DATA: itab_bapiret2 TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    DATA: itab1_bapiret2 TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    DATA: itab3_bapiret2 TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    DATA: deliv_numb TYPE bapiobdlvhdrcon-deliv_numb.
    Vbeln and posnr are coming from itab.
      SELECT SINGLE * FROM likp
        WHERE vbeln = itab-vbeln.
      SELECT SINGLE * FROM lips
      WHERE vbeln = itab-posnr.
      itab_headerdata-deliv_numb = likp-vbeln.
      itab_headercontrol-deliv_numb = likp-vbeln.
      itab_headercontrol-post_gi_flg = 'X'.
      CLEAR deliv_numb.
      deliv_numb = likp-vbeln.
      itab_itemdata-deliv_numb = likp-vbeln.
      itab_itemdata-deliv_item = lips-posnr.
      itab_itemdata-dlv_qty = lips-lfimg.
      itab_itemdata-sales_unit = lips-meins.
      itab_itemdata-fact_unit_nom = lips-umvkz.
      itab_itemdata-fact_unit_denom = lips-umvkn.
      itab_itemcontrol-deliv_numb = likp-vbeln.
      itab_itemcontrol-deliv_item = lips-posnr.
      itab_itemcontrol-chg_delqty = 'X'.
      CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
        EXPORTING
          header_data                = itab_headerdata
          header_control             = itab_headercontrol
          delivery                   = deliv_numb
      TECHN_CONTROL              =
        TABLES
      HEADER_PARTNER             =
      HEADER_PARTNER_ADDR        =
      HEADER_DEADLINES           =
       item_data                  = itab_itemdata
       item_control               = itab_itemcontrol
      ITEM_SERIAL_NO             =
      SUPPLIER_CONS_DATA         =
      HANDLING_UNIT_HEADER       =
      HANDLING_UNIT_ITEM         =
      HANDLING_UNIT_SERNO        =
      EXTENSION1                 =
      EXTENSION2                 =
          return                = itab_bapiret2.
      TOKENREFERENCE             =
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait   = 'X'
        IMPORTING
          return = itab1_bapiret2.

    Hi Krishen
       Have done some modifications to your code. Highlighted below are the same. Please check if the same works for you.
    DATA: itab_headerdata TYPE STANDARD TABLE OF bapiobdlvhdrcon WITH HEADER LINE.
    DATA: itab_headercontrol TYPE STANDARD TABLE OF bapiobdlvhdrctrlcon WITH HEADER LINE.
    DATA: itab_itemdata TYPE STANDARD TABLE OF bapiobdlvitemcon WITH HEADER LINE.
    DATA: itab_itemcontrol TYPE STANDARD TABLE OF bapiobdlvitemctrlcon WITH HEADER LINE .
    DATA: itab_bapiret2 TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    DATA: itab1_bapiret2 TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    DATA: itab3_bapiret2 TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    DATA: deliv_numb TYPE bapiobdlvhdrcon-deliv_numb.
    Vbeln and posnr are coming from itab.
    SELECT SINGLE * FROM likp
    WHERE vbeln = itab-vbeln.
    SELECT SINGLE * FROM lips
    WHERE vbeln = itab-posnr.
    <b>select single kostk from vbuk into vbuk-kostk
           where vbeln = itab-vbeln
           and   kostk = 'C'.
    if sy-subrc ne 0.
    message "Picking is not fully done
    else.</b>
    itab_headerdata-deliv_numb = likp-vbeln.
    itab_headercontrol-deliv_numb = likp-vbeln.
    itab_headercontrol-post_gi_flg = 'X'.
    CLEAR deliv_numb.
    deliv_numb = likp-vbeln.
    <b>*itab_itemdata-deliv_numb = likp-vbeln.
    *itab_itemdata-deliv_item = lips-posnr.
    *itab_itemdata-dlv_qty = lips-lfimg.
    *itab_itemdata-sales_unit = lips-meins.
    *itab_itemdata-fact_unit_nom = lips-umvkz.
    *itab_itemdata-fact_unit_denom = lips-umvkn.
    *itab_itemcontrol-deliv_numb = likp-vbeln.
    *itab_itemcontrol-deliv_item = lips-posnr.
    *itab_itemcontrol-chg_delqty = 'X'.</b>
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
    EXPORTING
    header_data = itab_headerdata
    header_control = itab_headercontrol
    delivery = deliv_numb
    TECHN_CONTROL =
    TABLES
    HEADER_PARTNER =
    HEADER_PARTNER_ADDR =
    HEADER_DEADLINES =
    item_data = itab_itemdata
    item_control = itab_itemcontrol
    ITEM_SERIAL_NO =
    SUPPLIER_CONS_DATA =
    HANDLING_UNIT_HEADER =
    HANDLING_UNIT_ITEM =
    HANDLING_UNIT_SERNO =
    EXTENSION1 =
    EXTENSION2 =
    return = itab_bapiret2.
    TOKENREFERENCE =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = 'X'
    IMPORTING
    return = itab1_bapiret2.
    <b>endif.</b>
    Kind Regards
    Eswar

  • Please help with this method

    im creating a little animation of pacman, just an animation of it moving buy its self. im using the java elements package so this is all being shown in a drawing window.
    ive made it move fine and go round the window abit eating dots but the code is a mess, and i know i could change some of the main part into a few simple methods and have tried but it seems to stop moving when i try
    below is part of the code, the first three blocks are when its moving sideways with its mouth in three different states, and the bottom three blocks are it moving down with its mouth in three states again.
    Arc pacarc = new Arc();
    while (startmv++<stopmv)
    pac1x += 4;
    d.setForeground(Color.yellow);
    pacarc = new Arc(pac1x,pac1y,pacsize1,pacsize2,pacmouth1,pacangle1);
    d.fill(pacarc);
    d.setForeground(Color.black);
    waitNSeconds(1);
    d.fill(pacarc);
    pac1x += 4;
    d.setForeground(Color.yellow);
    pacarc = new Arc(pac1x,pac1y,pacsize1,pacsize2,pacmouth2,pacangle2);
    d.fill(pacarc);
    d.setForeground(Color.black);
    waitNSeconds(1);
    d.fill(pacarc);
    pac1x += 4;
    d.setForeground(Color.yellow);
    pacarc = new Arc(pac1x,pac1y,pacsize1,pacsize2,pacmouth3,pacangle3);
    d.fill(pacarc);
    d.setForeground(Color.black);
    waitNSeconds(1);
    d.fill(pacarc);
    while (startdwn++<stopdwn)
    pac1y +=4;
    d.setForeground(Color.yellow);
    pacarc = new Arc(pac1x,pac1y,50,50,pacdwn1,pacdwnang1);
    d.fill(pacarc);
    d.setForeground(Color.black);
    waitNSeconds(1);
    d.fill(pacarc);
    pac1y +=4;
    d.setForeground(Color.yellow);
    pacarc = new Arc(pac1x,pac1y,50,50,pacdwn2,pacdwnang2);
    d.fill(pacarc);
    d.setForeground(Color.black);
    waitNSeconds(1);
    d.fill(pacarc);
    pac1y +=4;
    d.setForeground(Color.yellow);
    pacarc = new Arc(pac1x,pac1y,50,50,pacdwn3,pacdwnang3);
    d.fill(pacarc);
    d.setForeground(Color.black);
    waitNSeconds(1);
    d.fill(pacarc);
    so for the first part i tried putting this into a method and running the program but where i had used the method the pacman shape just stayed still. any help please guys?
    this is the code for the method i tried (this is just for thefirst state of the pacmans mouth while moving sideways)
    public static void pacmve(int pactestx, int pactesty, int pacsizetest1, int pacsizetest2, int pacmouthtest, int pacangletest)
    pactestx += 4;
    Arc pacarc = new Arc();
    d.setForeground(Color.yellow);
    pacarc = new Arc(pactestx,pactesty,pacsizetest1,pacsizetest2,pacmouthtest,pacangletest);
    d.fill(pacarc);
    d.setForeground(Color.black);
    waitNSeconds(1);
    d.fill(pacarc);
    this is the loop i where i was trying to use the method
    while (startmv++<stopmv)
    pacmve(20,20,50,50,45,270);
    Edited by: jeffsimmo85 on Nov 22, 2007 1:18 AM

    When you post a code on a public forum, the code must be:
    1)Properly formatted using code tags.
    2)Generally compilable and runnable for us casual forum viewers.
    3)Reproducible of your problems when we run it.

  • I have just started using WD external hard drives, I use it to save my movies and music on. On more than one occasion, when I connect to my MacBook it erases everything on had on there. Can someone please help with this problem?

    I have just started using WD external hard drives, I use it to save my movies and music on. On more than one occasion, when I connect it to my MacBook it erases everything I had save on the hard drive. Can someone please help me with this problem? I am super tired of having to put all of my movies and music on the hard drive just to have it erased again. The products I am using are WD 4TB My Book and 2 TB My Passport external hard drives. When it happens, there is always an icon that reads, EFI, along with the My Book icon. Thank you for your assisstance.

    dwgar1322 wrote:
    I have just started using WD external hard drives, I use it to save my movies and music on. On more than one occasion, when I connect it to my MacBook it erases everything I had save on the hard drive. Can someone please help me with this problem? I am super tired of having to put all of my movies and music on the hard drive just to have it erased again. The products I am using are WD 4TB My Book and 2 TB My Passport external hard drives. When it happens, there is always an icon that reads, EFI, along with the My Book icon. Thank you for your assisstance.
    Yes, you have WD software installed  REMOVE IT !! 
    WD has warned its customers about their huge mistake that their software doesnt work on Mavericks and causes data loss.
    (also dont use WD drives anymore)
    Read all about it here:
    https://discussions.apple.com/thread/5475136?start=255&tstart=0
    See their website on removing the destructive WD software here:
    http://community.wd.com/t5/External-Drives-for-Mac/External-Drives-for-Mac-Exper iencing-Data-Loss-with-Maverick-OS/td-p/613775
    Western Digital External Hard Drives Experiencing Data Loss On OS X Mavericks
    http://www.cultofmac.com/252826/western-digital-external-hard-drives-experiencin g-data-loss-on-os-x-mavericks/

  • Urgent! Please help with this

    Hi! in the ../server0/log/application.log we see:
    Error#1#com.sap.lcr.sagent.BuilderDirector#Plain###Data supplier c
    ircular redirection. Check data supplier bridge targets.
    At VA we see only SLD data suplier but no "bridge".
    Please help. Points guaranteed.

    Do you specify a default domain in the sqlnet.ora file? If so then you should include it as part of the tnsnames entry.

  • Please help with this method, cant get it to work correctly.

    any suggestions AT ALL please, im really stuck with this.
    im creating a little animation of pacman, just an animation of it moving buy its self. im using the java elements package so this is all being shown in a drawing window.
    ive made it move fine and go round the window abit eating dots but the code is a mess, and i know i could change some of the main part into a few simple methods and have tried but it seems to stop moving when i try
    import element.*;
    import java.awt.Color;
    static DrawingWindow d = new DrawingWindow(500,500);  
       public static void wait1second()
        //  pause for one tenth of a second second
            long now = System.currentTimeMillis();
            long then = now + 100; // 100 milliseconds
            while (System.currentTimeMillis() < then)
        public static void waitNSeconds(int number)
            int i;
            for (i = 0; i < number; i++) //allows you to determine how long to pause for
                wait1second();
    public static void main(String[] args) {
        //  declaring the variables
        int pacsize1 = 50, pacsize2 = 50;
        int pac1x = 20, pac1y = 20;
        int pacmouth1 = 45, pacangle1 = 270;
        int pacmouth2 = 25, pacangle2 = 320;
        int pacmouth3 = 6, pacangle3 = 348;
        int startmv = 0, stopmv = 33;
        d.setForeground(Color.black);
        Rect bkrnd = new Rect(0,0,500,500);     
        d.fill(bkrnd);
       // while loop used to make the pacman shape move right across the screen with its mouth in three different states
    Arc pacarc = new Arc();
         while (startmv++<stopmv)
            pac1x += 4;
            d.setForeground(Color.yellow);
            pacarc = new Arc(pac1x,pac1y,pacsize1,pacsize2,pacmouth1,pacangle1);
            d.fill(pacarc);
            d.setForeground(Color.black);
            waitNSeconds(1);
            d.fill(pacarc);
            pac1x += 4;
            d.setForeground(Color.yellow);
            pacarc = new Arc(pac1x,pac1y,pacsize1,pacsize2,pacmouth2,pacangle2);
            d.fill(pacarc);
            d.setForeground(Color.black);
            waitNSeconds(1);
            d.fill(pacarc);
            pac1x += 4;
            d.setForeground(Color.yellow);
            pacarc = new Arc(pac1x,pac1y,pacsize1,pacsize2,pacmouth3,pacangle3);
            d.fill(pacarc);
            d.setForeground(Color.black);
            waitNSeconds(1);
            d.fill(pacarc);
    }so i tried making a method to make all the stuf in the while loop alot simpler but it just keeps making the pacman not move at all and im not sure why. heres the code i tried for the method:
    public static void pacmve(int pactestx, int pactesty, int pacsizetest1, int pacsizetest2, int pacmouthtest, int pacangletest)
            pactestx += 4;
            Arc pacarc = new Arc();
            d.setForeground(Color.yellow);
            pacarc = new Arc(pactestx,pactesty,pacsizetest1,pacsizetest2,pacmouthtest,pacangletest);
            d.fill(pacarc);
            d.setForeground(Color.black);
            waitNSeconds(1);
            d.fill(pacarc);
            }it had no problems with the code, but it just doesnt seem to do anything when i call it in the while loop. heres how i used it to try and just make it move across with the mouth in one state:
    while (startmv++<stopmv)
    pacmve(20,20,50,50,45,270);
    }any ideas?
    Edited by: jeffsimmo85 on Nov 22, 2007 2:36 AM

    the clock is still ticking while you do this:
    while (System.currentTimeMillis() < then)
    is that method your design? why not just call Thread.sleep()?
    %

Maybe you are looking for