Problem with interfaces

Greetings everyone!!! Todays' question has to do with interfaces. Anyone who might be able to help is welcomed!!!
This is my main, which constracts new object of the type Rectangle and employee and tries to find the average and the maximum area and salary accordingly
import java.awt.Rectangle;
public class DataSetTester
     public static void main(String[] args)
          Measurer m = new RectangleMeasurer();
          DataSet data = new DataSet(m);
          data.add(new Rectangle(5,10,20,30));
          data.add(new Rectangle(10,20,30,40));
          data.add(new Rectangle(20,30,5,10));
          System.out.println("Average area = " + data.getAverage());
          Rectangle max = (Rectangle) data.getMaximum();
          System.out.println("Max area Rectangle = " + max);
                                Measurer x = new EmployeeMeasurer();
          DataSet data1 = new DataSet(x);
          data1.add(new employee("Mike", 1500,10));
          data1.add(new employee("fgh",2000,10));
          employee max1 = (employee) data.getMaximum();
          System.out.println("Max employee = " + max);
}This is the DataSet class which provides the methods to find the average and the maximum
public class DataSet
     public DataSet(Measurer aMeasurer)
          sum = 0;
          count = 0;
          maximum = null;
          measurer = aMeasurer;
     public void add(Object x)
          sum = sum + measurer.measure(x);
          if(count == 0 || measurer.measure(maximum) < measurer.measure(x))
               maximum = x;
          count++;
     public double getAverage()
          if(count == 0)
               return 0;
          else
               return sum / count;
     public Object getMaximum()
          return maximum;
     private double sum;
     private Object maximum;
     private int count;
     private Measurer measurer;
}This is my interface
public interface Measurer
     double measure(Object anObject);
}The classes that implement the interface
import java.awt.Rectangle;
public class RectangleMeasurer implements Measurer
     public double measure(Object anObject)
          Rectangle aRectangle = (Rectangle) anObject;
          double area = aRectangle.getWidth() * aRectangle.getHeight();
          return area;
public class EmployeeMeasurer implements Measurer
     public double measure(Object anObject)
          employee anemployee = (employee) anObject;
          double payment = anemployee.getsalary() * anemployee.getmonths();
          return payment;
}And the class employee
public class employee
     private String name;
     private double salary;
     private double months;
     public employee()
          name = "";
          salary = 0;
          months = 0;
     public employee(String newName, double newSalary, double newMonths)
          name = newName;
          salary = newSalary;
          months = newMonths;
     public String getname()
          return name;
     public double getsalary()
          return salary;
     public double getmonths()
          return months;
}Everything compiles but when I execute I get the desired results for the rectangle class(average and maximum)
, but it does not work for employee.
I get: Exception in thread main java.lang.ClassCastException: java.awt.Rectangle
at DataSetTester.main(DataSetTester.java:18)
Edited by: mixalissen on 26 ??? 2008 10:29 ??

max,
What you are constructing is called a "dirty" collection... as the negative connotation suggests, that isn't the recommended practice.
The recommended practice is to treat "disparate things" as distinct types... and if you require collections of those things then you create two individual and distinct collections.
However, in your example, Employee and Rectangle have "behavior in common" so you can (even if it doesn't make a lot of sense in "the real world") create an interface, which (among other things) allows you to create a collection of the-type-of-that-interface.
So your DataSet should contain Measurable 's (note: not Measurer's)... and Rectangle and Employee should both implement Measurable (hint: think Rectangle is Measurable; not Rectangle is a Measurer; and never RectangleMeasurer (yuck))... and then of course you'll need to move the appropriate measure method to Rectangle and Employee.
Cheers. Keith.

Similar Messages

  • TS1702 I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to rein

    I have contacted EA about this and can find no help. I had this Scrabble on my iPad2 and began to have connection problems, it would lock in the "connecting" position. This is not the first time Scrabble has had problems with interface. Typically customers delete the Ap then download it again to reinstall it. During the process you sign in and approve the purchase KNOWING that another window will open saying that you have previously purchased it and that there is no charge. So what happened this time? It will not connect and all of my saved and current games are wiped out. I want my money back, this game interface is pretty junk and operates like some ancient DOS program,,bug,bug,buggy. I want my money back.

    Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • Problem with interface - when send the data for PA0002

    Hi Gurus,
        I am interfacing employees data from one system to another system  with all the PA infotypes.
    we are using the fuction module " HR_MAINTAIN_MASTERDATA " to upload the master data. Here the problem is, when we send the data - in destination system all the segments have the data correctly . But middle name is not loaded in to the system. Problem with only middle name.
    But, here strange thing is, when i resend the idocs it is laoded correctly all the fields with middle name also.
    I am unable to figure out the problem .. Please let me know if you have any advise on this ..
    Thanking you.
    Regards,
    Giridhar Pujari

    Hi Sikindar,
       Technical name is corrent .. and once you resend the idoc, you can't see the problem again.
    Regards,
    Giridhar Pujari.

  • Problems with interface runnable

    Hi everyone !!,
    I have been developing an application with JDK 1.5.0_06 and applications server Apache Tomcat 1.4.31. It is a multithreaded application which uses a class that implements a runnable interface.
    At the moment, this application must be compiled and executed in another machine with JDK 1.5.0_05. The problem is that when an instance of the interface Runnable is called and its method .start() executed , the instance isnt created and the method run doesn't start.
    I hope you understand what I mean. If you dont , please, ask me.
    Any idea? Any help? I have no idea why this is happening? any problem with the JDK? the applications server?
    Thanks in advance, Mar�a

    problem is that when an instance of the interface
    Runnable is called and its method .start() executed ,
    the instance isnt created and the method run doesn't
    start.
    I hope you understand what I mean. If you dont ,
    please, ask me.
    I don't understand.
    Runnable does not have a start() method.
    What do you mean "the instance isn't created"? If you create an instance of something, it's created. If you don't, it's not.
    If you call a Thread's start() method, that Thread's Runnable's run() method will be executed in a new thread of execution. If you don't, it won't.

  • Problems with interfaces

    Directory structure for client and server:
    D:\java\client\
            HelloClient.java
    D:\java\server\
            HelloServer.java
            HelloInterface.java
            Hello.javaHow do i get the Client to compile. It cant find the interface. Eventually i will be puttin this on seperate machines to test but how do i compile with the classpath of the interface and then how would i do this if i had the client on a different machine????
    Tryin the following command to compile the client works but when i try to run the application through another it goes ape shit.
    D:\Java\client>javac -classpath D:\Java\Server;. HelloClient.java
    To run the application i have to use this:
    java -classpath D:\Java\Server;. HelloClient
    So when i try to execute the client through another program it crashes. Saying it cant find the interface.
    Any help would be great.
    Cheers
    N.

    Ok after workin on it for the last day i can get everythin to compile i just get securit y errors now. From what i have read it has to do with the policy file and where i have it. here are my classes.
    Client folder.
    HelloClient.java
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.net.MalformedURLException;
    import java.rmi.NotBoundException;
    public class HelloClient{
         public static void main (String[] argv) {
             try {
               HelloInterface hello = (HelloInterface) Naming.lookup ("rmi://localhost/Hello");
               System.out.println (hello.say("Niall"));
             catch (MalformedURLException murle) {
                System.out.println();
                System.out.println(
                  "MalformedURLException");
                System.out.println(murle);
            catch (RemoteException re) {
                System.out.println();
                System.out.println(
                            "RemoteException");
                System.out.println(re);
            catch (NotBoundException nbe) {
                System.out.println();
                System.out.println(
                           "NotBoundException");
                System.out.println(nbe);
    }This is the stuff i have in the server folder.
    HelloServer.java
    import java.rmi.Naming;
    public class HelloServer {
       public Server() {
         try {
           Naming.rebind ("rmi://localhost:1099/Hello", new Hello ("Hello, world!"));
         } catch (Exception e) {
           System.out.println("Trouble: " + e);
       public static void main(String args[]) {
         new HelloServer();
    HelloInterface.java
    import java.rmi.*;
    * Remote Interface for the "Hello, world!" example.
    public interface HelloInterface extends Remote {
       * Remotely invocable method.
       * @return the message of the remote object, such as "Hello, world!".
       * @exception RemoteException if the remote invocation fails.
      public String say(String name) throws RemoteException;
    Hello.java
    import java.rmi.*;
    import java.rmi.server.*;
    * Remote Class for the "Hello, world!" example.
    public class Hello extends UnicastRemoteObject implements HelloInterface {
      private String message;
       * Construct a remote object
       * @param msg the message of the remote object, such as "Hello, world!".
       * @exception RemoteException if the object handle cannot be constructed.
      public Hello (String msg) throws RemoteException {
        super();
        message = msg;
       * Implementation of the remotely invocable method.
       * @return the message of the remote object, such as "Hello, world!".
       * @exception RemoteException if the remote invocation fails.
      public String say(String name) throws RemoteException {
        return (message +"\nThis message is from :" + name);
    policy.all
      grant {
         permission java.security.AllPermission;
      };Ok these are the commands i am using to compile the files. How do i create a jar to include in the client folder that holdes the interface. And then what do i change to add it into the run for the client program.
    javac HelloInterface.java
    rmic -v1.2 Hello
    javac HelloServer.java
    rmiregistry -J-Djava.security.policy=policy.all
    java HelloServer
    javac -classpath D:\java\server;. HelloClient.java
    java -cp D:\java\server;. HelloClientI get a security access error. Access denied??
    Cheers for any help.
    N.

  • Problem with interface between Photoshop and CanoScan 9000f, mark II

    I have just upgraded my Mac to OS X 10.9.1, Photoshop to CC, and purchased the CanoScan 9000F, mark II.  I had the CanoScan 8600F previously which came 8+ years ago with Elements 4 but now all this is obsolete with the current software and OS.  In Photoshop Elements 4 and the old scanner, I could go to the File menu, select "Import" and find the scanner listed, going then directly to the Canon ScanGear interface to use to scan images.  This is not currently happening with the new software and scanner.  Under the File menu now I now only see "Images from device..." which takes me to another much less useful interface with the scanner.  How can I get Photoshop to again connect directly to the ScanGear interface?

    How can I get Photoshop to again connect directly to the ScanGear interface?
    AFAIK, you cannot.
    The direct connection required the less-than-reliable TWAIN plugin to access the manufacturer's scanner driver which was usually 32 bit only. Photoshop CC is going 64 bit only (it's there already on Macs) so Adobe has removed TWAIN from CC entirely.
    http://helpx.adobe.com/photoshop/kb/twain-plug-photoshop-cs4-cs5.html
    http://forums.adobe.com/thread/1245120
    Additionally, when in use, TWAIN requires exclusive access to Photoshop so you cannot do anything else while scanning is occurring.
    Adobe recommends scanning outside Photoshop (using a 3rd party utility such as Vuescan http://www.hamrick.com/). You can then scan (with Vuescan) and use Photoshop simultaneously. Then import the scanned image into PS CC.

  • [iPhone Beta 6] Problem with Interface Builder

    I cannot open xib files created using beta 5 after updating to beta 6. The IB just hangs. Also, I tried to create new xib file, but when I browser the library view to see the component, the IB also hangs. Is anyone having the same problem?
    ps: I uninstalled xcode and reinstalled it. No success.

    Am also having the same issue, even when launching IB3 without loading a file.
    I get a crash loading IBCocoaTouchTool....
    Process: IBCocoaTouchTool [27606]
    Path: /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Interface Builder/Plug-ins/IBCocoaTouchPlugin.ibplugin/Contents/Resources/IBCocoaTouchToo l
    Identifier: IBCocoaTouchTool
    Version: ??? (???)
    Code Type: X86 (Native)
    Parent Process: Interface Builder [27605]
    Date/Time: 2008-05-30 21:16:08.342 +0930
    OS Version: Mac OS X 10.5.3 (9D34)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGSEGV)
    Exception Codes: KERNINVALIDADDRESS at 0x00000000c012530b
    Crashed Thread: 0
    Thread 0 Crashed:
    0 libobjc.A.dylib 0x96d9a6e8 objc_msgSend + 24
    1 UIKit 0x30be1423 -[UITable setOffset:] + 429
    2 UIKit 0x30bcd92e -[UIScrollerScrollAnimation setProgress:] + 166
    3 UIKit 0x30aca9c7 -[UIAnimator(Static) _advance:] + 289
    4 GraphicsServices 0x31699412 HeartbeatTimerCallback + 35
    5 com.apple.CoreFoundation 0x916fcb3e CFRunLoopRunSpecific + 4494
    6 com.apple.CoreFoundation 0x916fccf8 CFRunLoopRunInMode + 88
    7 com.apple.Foundation 0x911ba4a5 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
    8 IBCocoaTouchTool 0x0000284e 0x1000 + 6222
    9 IBCocoaTouchTool 0x00002f69 0x1000 + 8041
    10 IBCocoaTouchTool 0x000022b6 0x1000 + 4790

  • Problems with interface

    It scans for the interface, recognizes it but then it won't playback through my headphones that are plugged into the interface. Then a few seconds later it states that the audio device has been removed. However I can still record through the interface as long as the computer speakers aren't plugged in but I can't hear the track through my headphones while I'm recording any guitar or synth part.

    Fermusic: "Tascam US 112 is not compatible with Leopard"
    You are wrong. Look:
    http://www.tascam.com/details;9,15,69,16.html
    and Mofo, try this:
    http://www.tascam.com/details;9,15,69,19.html
    Esp. Document 1 and Software and Firmware 2.
    regards, Erik.

  • Major problems with interface

    When I went to go on my computer this morning, I found everything to be non-working. Whenever I tried to type, no words came out (unless I restarted it and came upon the login screen). Whenever I click on a folder leading to another folder, it only takes one click to do it, where as normally it would take two. When i get to a folder with only files in it, it won't open. I don't know if it's because the apple key has been pressed down too hard or maybe it's because my brother logged onto his account and used Firefox for a few minutes, then logged out. It seems pretty serious. Can anyone help?
    Imac g5 Mac OS X (10.4.5)
    Imac g5   Mac OS X (10.4.5)  

    There is alot of troubleshooting you could do to try to resolve your issue, but doing an archive/install will only take about an hour, and is alot faster quick resolution then trying to troubleshoot extensively.
    Insert your mac os x installation disc 1 that came with your unit. Shut down the computer, then restart while holding down the C key. This will boot to the installation disc. Follow the onscreen prompts until you get to the screen "select a destination". Once here, click on options then select archive/install and continue with installation. This will reinstall your mac os x system files but will not delete any of your information.

  • IPad 3 on iOS 7: problems with interface

    Looks like there is no glass effect on my iPad 3. Anyone noticed the same? I checked a bunch of videos by guys with the same configuration on YouTube, but they seems to be fine. Unfortunately I got gray bars only.
    Screenshoot: https://www.dropbox.com/s/cwty9p3bgwxtv3a/noglass.png

    I have same as you... a buddy on his mini has the color scheme of his theme... this bites..

  • CRM2007 UI - Problem with interface loading when i select a business role

    Hi,
    When i run the t.code:BSP_WD_CMPWB and choose component:CRM_UI_FRAME
    and i logon to the web application server , i see all the Business roles but however when i  select any of the roles i just see a blank page. Need help ASAP.
    Points would be given.
    Regards,
    Surender

    Hi Surender,
    a) do you have corresponding PFCG roles assigned to your user. Otherwise authorization checks will prevent any menu item to be displayed?
    b) When CRM UI Views are loaded for the first time it can take considerable time (minutes) to generate all the ABAP classes and BSP view layouts. You have to give the system enough time to generate in this case - even timeouts can happen in this situation and you might need to restart UI.
    The sys admin can use SGEN to precompile/ generate laods for everything.
    Peter

  • Problems with DFM 3.1.3

    Hi,
    It seems like I have problems with interfaces revert back to managed state after they has been set unmanaged.
    BUG CSCsz08953
    But I can't find any patch availabile for download.
    where can I find the patch?

    By all accounts, you'd need to get the patch for DFM 3.1.3 from TAC, or upgrade to LMS 3.2/DFM 3.2 which includes the fix.

  • Cisco ASA 5505 - problem with ssh, icmp on OUTSIDE interface

    Hi all,
    I have a very strange problem with OUTSIDE interface and remote ssh. Well, I have followed documentation and configure remote access for ssh like this [1.]. If I want to connect from internet to OUTSIDE interface [2.] get no response and in log I can see this message [3.]. I really do not understand why is ssh connection dropped by OUTSIDE access-list [4.]? If I understand documentation correctly there is no impact for remote mangement/access like icmp, ssh, http(s) by interface access-list. So, why?
    When I try ssh connection form internal network to INSIDE interface everything works fine and I can log in to ASA. If I try allow ssh in OUTSIDE access-list still no success and a get this message [5.]? It is strange, isn't?
    The same problem with icmp if I want to "ping" OUTSIDE interface from internet a get thish message in log [6.] and configuration for ICMP like this [7.].
    Full ASA config is in attachment.
    Can anybody help how to fix it and explain what is exactly wrong.Thanks.
    Regards,
    Karel
    [1.]
    ssh stricthostkeycheck
    ssh 10.0.0.0 255.255.255.0 INSIDE
    ssh 0.0.0.0 0.0.0.0 OUTSIDE
    ssh timeout 60
    ssh version 2
    ssh key-exchange group dh-group1-sha1
    ASA-FW01# show ssh
    Timeout: 60 minutes
    Version allowed: 2
    10.0.0.0 255.255.255.0 INSIDE
    0.0.0.0 0.0.0.0 OUTSIDE
     [2.]
    ASA-FW01# show nameif
    Interface                Name                     Security
    Vlan10                   INSIDE                   100
    Vlan20                   EXT-VLAN20                 0
    Vlan30                   EXT-WIFI-VLAN30           10
    Vlan100                  OUTSIDE                    0
    ASA-FW01# show ip
    System IP Addresses:
    Interface                Name                   IP address      Subnet mask     Method
    Vlan10                   INSIDE                 10.0.0.1        255.255.255.0   CONFIG
    Vlan20                   EXT-VLAN20             10.0.1.1        255.255.255.0   CONFIG
    Vlan30                   EXT-WIFI-VLAN30        10.0.2.1        255.255.255.0   CONFIG
    Vlan100                  OUTSIDE                85.71.188.158   255.255.255.255 CONFIG
    Current IP Addresses:
    Interface                Name                   IP address      Subnet mask     Method
    Vlan10                   INSIDE                 10.0.0.1        255.255.255.0   CONFIG
    Vlan20                   EXT-VLAN20             10.0.1.1        255.255.255.0   CONFIG
    Vlan30                   EXT-WIFI-VLAN30        10.0.2.1        255.255.255.0   CONFIG
    Vlan100                  OUTSIDE                85.71.188.158   255.255.255.255 CONFIG
    ASA-FW01# show interface OUTSIDE detail
    Interface Vlan100 "OUTSIDE", is up, line protocol is up
      Hardware is EtherSVI, BW 100 Mbps, DLY 100 usec
            Description: >>VLAN pro pripojeni do internetu<<
            MAC address f44e.05d0.6c17, MTU 1480
            IP address 85.71.188.158, subnet mask 255.255.255.255
      Traffic Statistics for "OUTSIDE":
            90008 packets input, 10328084 bytes
            60609 packets output, 13240078 bytes
            1213 packets dropped
          1 minute input rate 15 pkts/sec,  994 bytes/sec
    [3.]
    Jan 13 2015 06:45:30 ASA-FW01 : %ASA-6-106100: access-list OUTSIDE denied tcp OUTSIDE/193.86.236.70(46085) -> OUTSIDE/85.71.188.158(22) hit-cnt 1 first hit [0xb74026ad, 0x0]
    [4.]
    access-list OUTSIDE remark =======================================================================================
    access-list OUTSIDE extended permit icmp any any echo-reply
    access-list OUTSIDE extended deny ip any any log
    access-group OUTSIDE in interface OUTSIDE
    [5.]
    Jan 12 2015 23:00:46 ASA-FW01 : %ASA-2-106016: Deny IP spoof from (193.86.236.70) to 85.71.188.158 on interface OUTSIDE
    [6.]
    Jan 13 2015 06:51:16 ASA-FW01 : %ASA-4-400014: IDS:2004 ICMP echo request from 193.86.236.70 to 85.71.188.158 on interface OUTSIDE
    [7.]
    icmp unreachable rate-limit 1 burst-size 1
    icmp permit 10.0.0.0 255.0.0.0 INSIDE
    icmp permit 10.0.0.0 255.0.0.0 EXT-WIFI-VLAN30
    icmp permit any OUTSIDE

    You're right that the ACL should not affect otherwise allowed communications to the interface address.
    Try disabling the ip audit feature on your outside interface.
    no ip audit interface OUTSIDE AP_OUTSIDE_INFO
    no ip audit interface OUTSIDE AP_OUTSIDE_ATTACK

  • Problem with AR in NewCustomer Interface Program

    I had a problem with importing data into Main Interface tables
    i have created a Staging table
    This r the columns i have selected and inserted data into this Manulley AR_ATPL_SAMPLE_STG(Staging table) from this i have done validations to Import data into Interface tables
    The problem is the data is inserting into RA_CUSTOMERS_INTERFACE_ALL but the columns which belongs to this (CUSTOMER_PROFILE_CLASS_NAME,CREDIT_HOLD) RA_CUSTOMER_PROFILES_INT_ALL(table) is not (data) inserting into this.
    I have done the validations for this tables RA_CUSTOMERS_INTERFACE_ALL,RA_CUSTOMER_PROFILES_INT_ALL
    the data is not inserting and i have deleted the validations which belongs to the RA_CUSTOMER_PROFILES_INT_ALL ,still i am not inserting the data into profiles interface.
    would u plz tell wat the reason is that.
    any columns i have to include.
    RA_CUSTOMERS_INTERFACE_ALL,RA_CUSTOMER_PROFILES_INT_ALL
    CUSTOMER_NAME
    ,orig_system_customer_ref
    ,CUSTOMER_STATUS
    ,SITE_USE_CODE
    ,ORIG_SYSTEM_ADDRESS_REF
    ,ORG_ID
    ,PRIMARY_SITE_USE_FLAG
    ,LOCATION
    ,ADDRESS1
    ,ADDRESS2
    ,ADDRESS3
    ,CITY
    ,STATE
    ,COUNTRY
    ,CUSTOMER_CATEGORY_CODE
    ,CUSTOMER_CLASS_CODE
    ,BILL_TO_ORIG_ADDRESS_REF
    ,INSERT_UPDATE_FLAG
    ,LAST_UPDATED_BY
    ,LAST_UPDATE_DATE
    ,CREATED_BY
    ,CREATION_DATE
    ,CUSTOMER_NUMBER
    ,CUSTOMER_PROFILE_CLASS_NAME
    ,CREDIT_HOLD
    ,STATUS
    ,ERROR_MSG
    BEGIN
    BEGIN
    SELECT COUNT(LOOKUP_CODE)
    INTO v_custcate
    FROM AR_LOOKUPS
    WHERE LOOKUP_TYPE ='CUSTOMER_CATEGORY'
    AND UPPER(lookup_code) = UPPER(r_arstg.customer_category_code);
    IF v_custcate = 0 THEN
    UPDATE ar_atpl_sample_stg
    SET status = 'FAIL',
    error_msg = 'Must Exist in Customer class Category in AR_LOOKUPS'
    WHERE ROWID = r_arstg.rowid;
    COMMIT;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    v_custcate := 0;
    UPDATE ar_atpl_sample_stg
    SET status = 'FAIL',
    error_msg = 'Must Exist in Customer class Category in AR_LOOKUPS'
    WHERE ROWID = r_arstg.rowid;
    COMMIT;
    END;
    BEGIN
    INSERT INTO RA_CUSTOMERS_INTERFACE_ALL
    ( CUSTOMER_NAME
    ,ORIG_SYSTEM_CUSTOMER_REF
    ,CUSTOMER_STATUS
    ,SITE_USE_CODE
    ,ORIG_SYSTEM_ADDRESS_REF
    ,ORG_ID
    ,PRIMARY_SITE_USE_FLAG
    ,LOCATION
    ,ADDRESS1
    ,ADDRESS2
    ,ADDRESS3
    ,CITY
    ,STATE
    ,COUNTRY
    ,CUSTOMER_CATEGORY_CODE
    ,CUSTOMER_CLASS_CODE
    ,BILL_TO_ORIG_ADDRESS_REF
    ,INSERT_UPDATE_FLAG
    ,LAST_UPDATED_BY
    ,LAST_UPDATE_DATE
    ,CREATED_BY
    ,CREATION_DATE
    ,CUSTOMER_NUMBER
    VALUES
    ( r_arstg.CUSTOMER_NAME
    ,r_arstg.ORIG_SYSTEM_CUSTOMER_REF
    ,r_arstg.customer_status
    ,r_arstg.SITE_USE_CODE
    ,r_arstg.ORIG_SYSTEM_ADDRESS_REF
    ,r_arstg.org_id
    ,NVL(r_arstg.PRIMARY_SITE_USE_FLAG,'N')
    ,r_arstg.location
    ,r_arstg.ADDRESS1
    ,r_arstg.ADDRESS2
    ,r_arstg.ADDRESS3
    ,r_arstg.CITY
    ,r_arstg.STATE
    ,r_arstg.COUNTRY
    ,r_arstg.CUSTOMER_CATEGORY_CODE
    ,r_arstg.CUSTOMER_CLASS_CODE
    ,r_arstg.BILL_TO_ORIG_ADDRESS_REF
    ,r_arstg.INSERT_UPDATE_FLAG
    ,-1
    ,SYSDATE
    ,-1
    ,SYSDATE
    ,r_arstg.CUSTOMER_NUMBER
    INSERT INTO RA_CUSTOMER_PROFILES_INT_ALL
    ( ORIG_SYSTEM_CUSTOMER_REF
    ,ORIG_SYSTEM_ADDRESS_REF
    ,INSERT_UPDATE_FLAG
    ,CUSTOMER_PROFILE_CLASS_NAME
    ,CREDIT_HOLD
    ,ORG_ID
    ,LAST_UPDATED_BY
    ,LAST_UPDATE_DATE
    ,CREATED_BY
    ,CREATION_DATE
    VALUES
    ( r_arstg.ORIG_SYSTEM_CUSTOMER_REF
    ,r_arstg.ORIG_SYSTEM_ADDRESS_REF
    ,'I'
    ,r_arstg.CUSTOMER_PROFILE_CLASS_NAME
    ,'N'
    ,r_arstg.ORG_ID
    ,-1
    ,SYSDATE
    ,-1
    ,SYSDATE
    COMMIT;
    END;
    END;
    Thanks in Advance
    Regards
    Seenu

    The problem is that the ZIP file format has not standarized way to handle file name encodings (i.e. there's no standardized way to handle non-ASCII characters).
    Java implemented it in one way and WinZIP/WinRAR implemented it another way.

  • Intel iMac 20' users - any problems with noise on your firewire interfaces?

    Someone please tell me that they have a quiet intel iMac 20'/Firewire interface set up, I'm having problems with a lot of digital noise from my Saffire LE & badly am hoping it's 'fixable' or just a faulty unit but more so, praying it's not noise from the iMacs Power supply that will interfere with any firewire interface I get???
    I've read many posts about G5's suffering from noisy psu's which was one factor in my choosing an intel iMac & I chose the Saffire on it's great reviews for sound quality, there's no way I can work with the noise I'm getting & I'm pretty much panicking that if it IS the iMac & firewire thats the problem I'll be screwed as i only have 6 pin firewire as a useable option (really don't want to use usb2)
    Incidentally, the 'budget' set up I had previously (PC & soundblaster audigy) didnt suffer from any noise like this (at least not that was even audible with the mixer levels at conversational level!) which i guess rules out any blame of this on 'mains hum/interference'?
    The noise is there with the saffire's monitor output knob at any setting & with no inputs connected, it;s even worse if i power the saffire with it's external psu instead of off buss power. I'm not using a firewire hub & I've tried switching firewire leads & removing the firewire hard drive i have in the other port in case this was affecting it.
    Would really appreciate hearing from anyone with similar troubles or even better anyone thats NOT having this problem with a 20' intel iMac & firewire interface so at least i know there's light (& quiet!) at the end of the tunnel
    Adam
    Intel iMac 20'   Mac OS X (10.4.7)  

    funnily enough I'm going the other way, I have a rack of external modules/>sampler/fx etc & a crate of looms I've just unplugged as they've not been >turned on in so long!!!
    I hear you there!
    The noise is there without any inputs at all to the interface, its defiantely >digital though, its like a toned version of the sound of an old telephone >modem.
    What I mean, is try disconnecting everything, drives and all. You might even disconnect the interface and crank up the iMacs volume to see if it is there. If it is, you can try the UPS and see if that takes care of it. Then add them in one at a time. All it takes is one cheap power brick in the mix to cause all kinds of trouble (if your using powered monitors, that brick too). Noisy components can actually send noise back into the source power.
    I know it can be really frustrating, especially if you have noise coming from more that one source. The key is to strip everything until it is quiet and then add them back in to see where the worst is. Then come up with a plan to try to get rid of the noise.

Maybe you are looking for