My codes run in windows but not in Linux what is wrong?

//I have 4 codes in total but heres is one for example
import java.util.*;
// This state accepts numeric input less than 100 and subtracts
// 1 from each input number before exiting the state.
// We exit the state if the input is exactly 100.
public class AState extends State {
public AState (String n, boolean d ) {
super(n,d);
public void RUN () {
int ch = 0;
entry();
Scanner stdin = new Scanner(System.in);
ch = stdin.nextInt();
while ( ch != 100 ) {
ch--;
System.out.print(" " + ch);
ch = stdin.nextInt();
// change state from AState to BState
Controller.state = Controller.states[Controller.BSTATE];
// this will be the AState version of exit().
exit();
//It runs perfectly in windows but once I compile in a terminal of Linux it doesn't run it show like 8 errors, why is that, can somebody tell me what can I do about it

public class AState extends State {
^
Astate.java:18: cannot find symbol
symbol : method entry()
location: class AState
entry();
^
./Controller.java:8: class BState is public, should be declared in a file named BState.java
public class BState extends State {
^
./Controller.java:8: cannot find symbol
symbol: class State
public class BState extends State {
^
Astate.java:31: cannot access Controller
bad class file: ./Controller.java
file does not contain class Controller
Please remove or make sure it appears in the correct subdirectory of the classpath.
Controller.state = Controller.states[Controller.BSTATE];
^
6 errors
//As i said before, this run perfently through windows the same exactly code.

Similar Messages

  • URL.openStream() works in Windows but not in Linux

    I am having a problem with this line:
    BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
    in the code sample further below.
    A simple program using this line works when compiled in my Windows XP:
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
    but not when compiled on my RedHat FC 4 server:
    java version "1.4.2"
    gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8)
    The program (making using of a previous froum example and pared down to minimize tangent topics):
    The code works for all 3 URLs in Windows. In Linux it only works for the 1st one (bbc.co site)
    Error is listed below the code:
    import java.net.*;
    import java.io.*;
    public class BBC {
    public static void main(String[] args) throws Exception
    //    URL url = new URL("http://news.bbc.co.uk/sport1/hi/football/eng_prem/6205747.stm");
    //    URL url = new URL("http://www.weatherunderground.com/global/stations/71265.html");
        URL url = new URL("http://www.weatherunderground.com");
        BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
        int nLineCnt = 0;
        String inputLine;
        while ((inputLine = in.readLine()) != null)
            nLineCnt++;
        System.out.println("nLineCnt=" + nLineCnt);
    //--------------------------------------------------------------------------------------------------------------------------------------------Exception in thread "main" java.lang.StringIndexOutOfBoundsException
    at java.lang.String.substring(int, int) (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.Request.readResponse(gnu.java.net.LineInputStream) (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.Request.dispatch() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.HTTPURLConnection.connect() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.HTTPURLConnection.getInputStream() (/usr/lib/libgcj.so.6.0.0)
    at java.net.URL.openStream() (/usr/lib/libgcj.so.6.0.0)
    at BBC.main(java.lang.String[]) (Unknown Source)
    at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
    Can anyone please suggest what I can do to be able to process the weatherunderground URL?
    Claude

    To me it would suggest a bug in the VM that you are using.
    Solutions
    1. Use a different VM
    2. Write your own code to process the http code. Depending on licensing for the VM in use and the VM itself. you might be
    able to find the bug in that code, fix it yourself, and then use your fix (start up command line options for VM.) Otherwise
    you have to duplicate the functionality. You might look to jakarta commons, there might be code there that does that.

  • Firefox works at mcdonalds with windows but not with linux

    I have Windows 7 Pro and Ubuntu 14.04 LTS on my laptop. I use firefox browser on both OS's. I am able to connect to internet when I use Windows OS and run firefox at McDonalds. But, when I try to use firefox and Ubuntu OS it will not connect while at McDonalds. Otherwise, the Ubuntu distro and firefox work fine everywhere else.

    ''bsluss [[#question-1051190|said]]''
    <blockquote>
    I have Windows 7 Pro and Ubuntu 14.04 LTS on my laptop. I use firefox browser on both OS's. I am able to connect to internet when I use Windows OS and run firefox at McDonalds. But, when I try to use firefox and Ubuntu OS it will not connect while at McDonalds. Otherwise, the Ubuntu distro and firefox work fine everywhere else.
    </blockquote>
    Thanks for the response. To narrow this down a bit more, the wireless makes the connection to their router, but, mozilla does not bring up the splash page that is needed to accept their connection. Again, it only happens when running firefox with Ubuntu; not when running firefox with Windows.

  • When I open Firefox I get a message that says I am working offline. I have tried reinstalling, but no help. Other acounts on this computer can get to Firefox, but not me. What's wrong?

    I upgraded to the newest version of Firefox yesterday. But now I cannot get online with Firefox. I can check my e-mail and browse the web on Internet Explorer, but not Firefox. I get a message that says Firefox is working offline. I uninstalled and reinstalled Firefox, but that did not help. I restored my computer to Sunday's settings, but that did not help.

    I have tried everything I could to fix this, but some things require actually being on Firefox, and since I cannot get on, I cannot click on the tabs to do it. I have even totally uninstalled firefox, and that has not fixed this. I still get the same message that firefox is running and I need to close it or restart (which I have also tried dozens of times). I have removed things like Java, and that has not helped either. If I cannot even get on line in firefox, how can I fix this. I am not crazy about using internet explorer, but right now, it is my only option. I even tried to start in safe mode, and the same message box pops up!

  • When save as pdf, the dialog windows does not open. What is wrong?

    Working in illustrator, when saving time choose save as and click pdf, what is expect is, "the dialog box that  enable me to choose the quailty in pdf"  but it (the dialog box) does not appeared today. It still works yesterday. What went wrong? Please help.

    Your Mail is not gone. The problem you are having following the upgrade to Leopard (10.5.6) from Tiger, is probably what has been covered by the support document at the link below:
    http://support.apple.com/kb/TS2537
    If you also find any files named to include MessageSorting (which would mean you once have upgraded from a version of OSX earlier than 10.4), remove those, also, but never restore those.
    To find the correct location for the Mail folder, open a Finder window, click on the icon of a house in the Sidebar (this is known often as "Home"), click on Library in that Home user directory, and then to open the Mail folder found there.
    Ernie

  • CODE running in MAIN but not in a model class called by servlet

    Here is my simple code to connect Weblogic server 10.3.3 using iiop protocol to use the MBeanServer. It is running perfectly when it is run as a simple java application in main() but when I try to call this code from a servlet placing it in a simple method to get an arraylist it is throwing Exception.
    * I have an Admin Server and a Managed server in 10.0.32.145
    * and another Managed Server on 10.0.32.146. I need to monitor these servers in a portal.
    * I have a jsp which refreshes in every 10 seconds and invoke a servlet,that calls this
    * method to populate data in three beans(AdminServerBean,ManSer1Bean,ManSer2Bean),add these
    * beans into arraylist and return to the servlet.The servlet adds these attributes to the
    * request scope and send back to jsp.
    import javax.management.MBeanServerConnection;
    import javax.management.ObjectName;
    import javax.management.remote.JMXConnector;
    import javax.management.remote.JMXServiceURL;
    import javax.management.remote.JMXConnectorFactory;
    import com.beans.*; //My Beans package
    import java.util.ArrayList;
    import java.util.Hashtable;
    public class JMXCore {
         @SuppressWarnings("unchecked")
         public ArrayList<Object> connect2FetchData() throws Exception {
         ArrayList<Object> arr = new ArrayList<Object>();
    JMXConnector jmxCon1 = null;
    JMXConnector jmxCon2 = null;
    JMXConnector jmxCon3 = null;
    ObjectName on1 = new ObjectName("com.bea:ServerRuntime=AdminServer,Name=AdminServer,Type=JVMRuntime"); // Admin Server
    ObjectName on2 = new ObjectName("com.bea:ServerRuntime=ManSer1,Name=ManSer1,Type=JVMRuntime"); // Managed Server 1
    ObjectName on3 = new ObjectName("com.bea:ServerRuntime=ManSer2,Name=ManSer2,Type=JVMRuntime"); // Managed Server 2
    try {
    JMXServiceURL serviceUr1 = new JMXServiceURL("service:jmx:iiop://10.0.32.145:7001/jndi/weblogic.management.mbeanservers.runtime");
    JMXServiceURL serviceUr2 = new JMXServiceURL("service:jmx:iiop://10.0.32.145:9001/jndi/weblogic.management.mbeanservers.runtime");
    JMXServiceURL serviceUr3 = new JMXServiceURL("service:jmx:iiop://10.0.32.146:9001/jndi/weblogic.management.mbeanservers.runtime");
    System.out.println("Connecting to: " + serviceUr1);
    System.out.println("Connecting to: " + serviceUr2);
    System.out.println("Connecting to: " + serviceUr3);
    Hashtable env = new Hashtable();
    env.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,"weblogic.management.remote");
    env.put(javax.naming.Context.SECURITY_PRINCIPAL, "contact");
    env.put(javax.naming.Context.SECURITY_CREDENTIALS, "contact158");
    jmxCon1 = JMXConnectorFactory.newJMXConnector(serviceUr1, env);
    jmxCon2 = JMXConnectorFactory.newJMXConnector(serviceUr2, env);
    jmxCon3 = JMXConnectorFactory.newJMXConnector(serviceUr3, env);
    jmxCon1.connect();
    System.out.println("Hello");
    MBeanServerConnection con1 = jmxCon1.getMBeanServerConnection(); // MBean Server Connection No 1
    System.out.println("CONNECTION TO WEBLOGIC 10.3 ESTABLISHED VIA jmxCon1");
    Integer jvm_AdminServ = (Integer)con1.getAttribute(on1,"HeapFreePercent");
    String status_AdminServ = null;
    if(jvm_AdminServ<10){status_AdminServ = "red";} else {status_AdminServ = "lime";}
    AdminServerBean asb = new AdminServerBean(String.valueOf(con1.getAttribute(on1,"Uptime")),String.valueOf(jvm_AdminServ),(String)con1.getAttribute(on1,"JavaVersion"),(String)con1.getAttribute(on1,"OSVersion"),String.valueOf(con1.getAttribute(on1,"HeapFreeCurrent")),String.valueOf(con1.getAttribute(on1,"HeapSizeMax")),String.valueOf(con1.getAttribute(on1,"HeapSizeCurrent")),(String)con1.getAttribute(on1,"OSName"),status_AdminServ);
    arr.add(asb);
    jmxCon2.connect();
    MBeanServerConnection con2 = jmxCon2.getMBeanServerConnection(); // MBean Server Connection No 2
    System.out.println("CONNECTION TO WEBLOGIC 10.3 ESTABLISHED VIA jmxCon2");
    Integer jvm_ManServ1 = (Integer)con2.getAttribute(on2,"HeapFreePercent");
    String status_ManServ1 = null;
    if(jvm_ManServ1<10){status_ManServ1 = "red";} else {status_ManServ1 = "lime";}
    ManSer1Bean msb1 = new ManSer1Bean(String.valueOf(con2.getAttribute(on2,"Uptime")),String.valueOf(jvm_ManServ1),(String)con2.getAttribute(on2,"JavaVersion"),(String)con2.getAttribute(on2,"OSVersion"),String.valueOf(con2.getAttribute(on2,"HeapFreeCurrent")),String.valueOf(con2.getAttribute(on2,"HeapSizeMax")),String.valueOf(con2.getAttribute(on2,"HeapSizeCurrent")),(String)con2.getAttribute(on2,"OSName"),status_ManServ1);
    System.out.println("Manserver1 Heap Free : "+String.valueOf(jvm_ManServ1));
    arr.add(msb1);
    jmxCon3.connect();
    MBeanServerConnection con3 = jmxCon3.getMBeanServerConnection(); // MBean Server Connection No 3
    System.out.println("CONNECTION TO WEBLOGIC 10.3 ESTABLISHED VIA jmxCon3");
    Integer jvm_ManServ2 = (Integer)con3.getAttribute(on3,"HeapFreePercent");
    String status_ManServ2 = null;
    if(jvm_ManServ2<10){status_ManServ2 = "red";} else {status_ManServ2 = "lime";}
    ManSer1Bean msb2 = new ManSer1Bean(String.valueOf(con3.getAttribute(on3,"Uptime")),String.valueOf(jvm_ManServ2),(String)con3.getAttribute(on3,"JavaVersion"),(String)con3.getAttribute(on3,"OSVersion"),String.valueOf(con3.getAttribute(on3,"HeapFreeCurrent")),String.valueOf(con3.getAttribute(on3,"HeapSizeMax")),String.valueOf(con3.getAttribute(on3,"HeapSizeCurrent")),(String)con3.getAttribute(on3,"OSName"),status_ManServ2);
    arr.add(msb2);
    System.out.println("MBean SERVER CONNECTION OBTAINED...ArrayList Created");
         return arr;
    catch(Exception e){
         System.out.println("in Catch");
         System.out.println(e.getMessage());
         e.printStackTrace();
         return null;
         finally {
              jmxCon1.close();
              jmxCon2.close();
         jmxCon3.close();
         System.out.println("CONNECTION CLOSED");
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Here is the original stacktrace:
    java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: Name weblogic.management.mbeanservers.runtime is not bound in this Context
         at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
         at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
         at com.tcs.sbi.psg.monitoring.models.JMXCore.connect2FetchData(JMXCore.java:57)
         at com.tcs.sbi.psg.monitoring.servlets.Weblogic_10_Connect.doGet(Weblogic_10_Connect.java:23)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Unknown Source)
    Caused by: javax.naming.NameNotFoundException: Name weblogic.management.mbeanservers.runtime is not bound in this Context
         at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
         at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
         at javax.naming.InitialContext.lookup(Unknown Source)
         at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(Unknown Source)
         at javax.management.remote.rmi.RMIConnector.findRMIServer(Unknown Source)
         ... 20 more
    getMessage() returns this:
    Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: Name weblogic.management.mbeanservers.runtime is not bound in this Context
    -------------------------------------------------------------------------------------

  • Code working on Windows but not in Unix

    Hello,
    I try to test a https connection. My method is to accept all kind of certificat.
    Under Windows this code works well and return true when Itest the https connection but under Unix it returns false.
    Why if I accept all certificat , that does not work?
    Thank for any light.
          * Test the web connection
          * @param keystorePath
          * @return the result TRUE|FALSE
         public boolean testWebConnection(String keystorePath) {
              boolean result = false;
              try {
                   String urlname = "https://" + serverConfig.getLocalHostName() + ":8443/";
                   URL url = new URL(urlname);
                   SSLContext sc = SSLContext.getInstance("SSL");
                   System.setProperty("javax.net.ssl.trustStore", keystorePath);
                   sc.init(null, null, new java.security.SecureRandom());
                   // sc.init(null, trustAllCerts, new java.security.SecureRandom());
                   HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
                   HttpsURLConnection con = (HttpsURLConnection) new URL(urlname).openConnection();
                   con.setHostnameVerifier(DO_NOT_VERIFY);
                   if (!con.getHeaderFields().isEmpty()) {
                        con.disconnect();
                        description = LanguageText.getHTTPSConnectionSuccessMessageLabel();
                        return true;
                   } else {
                        description = LanguageText.getHTTPSConnectionFailMessageLabel();
                        System.setProperty("java.protocol.handler.pkgs", "javax.net.ssl");
                                            url = new URL("http://" + serverConfig.getLocalHostName() + ":8080");
                        URLConnection conn = url.openConnection();
                        if (!conn.getHeaderFields().isEmpty()) {
                             description = description + "\n" + LanguageText.getHTTPConnectionSuccessMessageLabel();
                             result = true;
                        } else{
                             description = description + "\n" + LanguageText.getHTTPConnectionFailMessageLabel();
              } catch (MalformedURLException mue) {
                   Logger.logException("The url is not valid", mue);
              } catch (java.net.ConnectException ce) {
                   description = description + LanguageText.getHTTPNotConnectMessageLabel();
                   Logger.logException("Cannot connect", ce);
              } catch (IOException ie) {
                   Logger.logException("The url is not valid", ie);
              } catch (NoSuchAlgorithmException nsae) {
                   Logger.logException("Problem with the algorithm", nsae);
              } catch (KeyManagementException kme) {
                   Logger.logException("Problem with the key management", kme);
              return result;
          * Method to not verify the hostname
         private static final HostnameVerifier DO_NOT_VERIFY = new HostnameVerifier() {
              public boolean verify(String hostname, SSLSession session) {
                   return true;
         };

    1) Are you absolutely sure that the keystorePath variable contains the correct path to
    your truststore on the unix machine?
    2) Does the truststore contain the certificate of the server you are trying to connect to?
    3) Im guessing that your commented-out line using the trustAllCerts refers to a blank
    or promiscuous TrustManager implementation that does not check your truststore. Does the server
    work on the unix machine using the trustAllCerts? If it does, then that means there is something
    wrong with your truststore (possibly one of the two above mentioned items).

  • Fire fox 7 is not installing in my computer . It asking Run as window but not installing. May i know what is the problem

    installing is not properlly

    Do you have any other drive connected, which has a copy of FCP X?
    I would make a copy of the application in some drive, just in case; then disconnect the drive, delete the application (could use FCS Remover to delete everything related).
    Then, try installing from the purchases tab in the App Store.

  • A exception is generated in Windows but not in Linux

    FULL PRODUCT VERSION :
    junmin@Linux:~/Workspace/JMessenger/build/classes$ java -version
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build 1.6.0-b105)
    Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
    E:\JMessenger\build\classes>java -version
    java version "1.6.0_01"
    Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
    Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
    ADDITIONAL OS VERSION INFORMATION :
    junmin@Linux:~/Workspace/JMessenger/build/classes$ uname -a
    Linux Linux 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux
    ubuntu feisty, installed sun-java-jre and jdk from the repository of ubuntu
    and
    Windows XP professional sp2
    java6 installed
    A DESCRIPTION OF THE PROBLEM :
    reader = new BufferedReader(new InputStreamReader(client.getInputStream())); // client is the socket in the server side
                 try{
                     while((incomingMessage = reader.readLine()) != null){
                 catch(Exception e){
                         System.out.println(e);
                 }       //serverthis is a client-server program, why in Windows it(server) throw the Exception when the client closes the program o the socket? and it doesnt throw any exception in Linux(ubuntu feisty/dapper) ??????
    here is the exception generated in Windows:
         java.net.SocketException: Connection reset
                 at java.net.SocketInputStream.read(Unknown Source)
                 at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
                 at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
                 at sun.nio.cs.StreamDecoder.read(Unknown Source)
                 at java.io.InputStreamReader.read(Unknown Source)
                 at java.io.BufferedReader.fill(Unknown Source)
                 at java.io.BufferedReader.readLine(Unknown Source)
                 at java.io.BufferedReader.readLine(Unknown Source)
                 at Service.run(Service.java:37)is this could be considered a bug??? i hope java can throw the same exception in Linux too, cause this helps to check the statu of socket connection. thanks

    The following is mostly an educated guess, but it is based in some understanding of how the different OSs work.
    In linux sockets are handled by the driver(read: kernel part) that converts the actions on file descriptors to actions on network sockets. When a program shuts down, said driver continues to run, but receives a close request on the file descriptor, so it proceeds with a standard socket close.
    On windows, the sockets are the property of the program, not the network driver, and when the program shuts down the sockets simply abort as they are discarded. The network driver is not allowed to temporarily hold the socket until its operation completes. They are simply thrown away.
    Anyway, a proper solution that would be helpful for all OSs is to actually close the socket within the program, rather than hope the OS has a "garbage collector" for sockets. The same applies for all OS resources(files, pipes, GUI resources, etc). On certain OSs, certain resources may actually remain allocated after program shutdown, if not formally disposed.
    On a side note, socket libraries for windows usually support socket auto-close on disposing of the socket object. I'm surprised the Java library doesn't (seem to) follow the same pattern. Then again, I've seen programs(non-java, of course) cause system freezes over stuff like that.

  • Create table runs in Toad but not in Linux

    Hello,
    I've just started writing in SQL 3 days ago so I would like to apologize in advance for the shabby code and the stupid question. I'm hoping that somebody can help me with my problem.
    Anyway, this has been bugging me for 2 days now and I can't seem to find the problem. The code below is just a simple create table that I coded in Toad for Oracle by Quest Software and runs fine in it but when I try to copy it over to our linux server and run it using '@/home/user/atm_dc.sql', the table is not created.
    Can someone help me?
    Thanks.
    drop table atm_dc;
    CREATE TABLE atm_dc
    AS (
    SELECT
    'I' as action_code,
    rpad(' ',22,' ') as card_num,
    rpad(' ',24,' ') as client_cd,
    '000119' as inst_cd,
    rpad(sa01mast.brncd,6,' ') as branch_cd,
    ' ' as vip_flag,
    ' ' as owner_cd,
    '0' as basic_card_flag,
    rpad(' ',22,' ') as basic_card_num,
    rpad(' ',4,' ') as title,
    case when length(cf01cif.sname) > 0 then
    rpad(cf01cif.sname,20,' ') else
    rpad(' ',20,' ') end as family_name,
    rpad(' ',20,' ') as first_name,
    rpad(' ',26,' ') as embossed_name,
    rpad(' ',26,' ') as encoded_name,
    case when length(cf01cif.maritsts) > 0 then
    case when cf01cif.maritsts in ('M') then '2' else '1' end else
    ' ' end as marital_status,
    case when length(cf01cif.sex) > 0 then
    case when cf01cif.sex in ('F') then 'F' else 'M' end else
    ' ' end as gender,
    rpad(' ',15,' ') as legal_id,
    '608' as nationality_code,
    '00' as num_of_children,
    rpad('0',12,'0') as credit_limit,
    '0' as issuers_client,
    ' ' as lodging_period,
    ' ' as res_status,
    rpad('0',12,'0') as net_yearly_income,
    '00' as no_of_dependents,
    case when length(cf01cif.birthdt) > 0 then
    to_char(cf01cif.birthdt,'YYYYMMDD') else rpad(' ',8,' ')
    end as birth_date,
    rpad(' ',5,' ') as birth_city,
    case when length(cf01cif.cntry) > 0 then
    rpad(cf01cif.cntry,3,' ') else rpad(' ',3,' ')
    end as birth_cntry,
    case when length(cf01addr.addr1) > 0 then
    rpad(substr(cf01addr.addr1,1,30),30,' ') else rpad(' ',30,' ')
    end as address1,
    case when length(cf01addr.addr2) > 0 then
    rpad(substr(cf01addr.addr2,1,30),30,' ') else rpad(' ',30,' ')
    end as address2,
    case when length(cf01addr.addr3) > 0 then
    rpad(substr(cf01addr.addr3,1,30),30,' ') else rpad(' ',30,' ')
    end as address3,
    case when length(cf01addr.addr4) > 0 then
    rpad(substr(cf01addr.addr4,1,30),30,' ') else rpad(' ',30,' ')
    end as address4,
    case when length(cf01addr.city) > 0 then
    rpad(substr(cf01addr.city,1,5),5,' ') else rpad(' ',5,' ')
    end as city_code,
    case when length(cf01addr.postcd) > 0 then
    rpad(cf01addr.postcd,10,' ') else rpad(' ',10,' ')
    end as zip_code,
    case when length(cf01addr.cntry) > 0 then
    rpad(cf01addr.cntry,3,' ') else
    rpad(' ',3,' ') end as country_code,
    rpad(' ',15,' ') as phone_no1,
    rpad(' ',15,' ') as phone_no2,
    rpad(' ',15,' ') as mobile_phone,
    rpad(' ',50,' ') as email_id,
    rpad(' ',40,' ') as employer,
    rpad(' ',30,' ') as emp_addr1,
    rpad(' ',30,' ') as emp_addr2,
    rpad(' ',30,' ') as emp_addr3,
    rpad(' ',30,' ') as emp_addr4,
    rpad(' ',5,' ') as emp_city_cd,
    rpad(' ',10,' ') as emp_zip_cd,
    rpad(' ',3,' ') as emp_cntry_cd,
    rpad(' ',8,' ') as cont_start_dt,
    ' ' as emp_status,
    to_char(sa01mast2.opendt,'YYYYMMDD') as open_dt,
    rpad(' ',8,' ') as start_val_dt,
    '001' as prod_code,
    '0' as delivery_mode,
    rpad(sa01mast.brncd||sa01mast.modcd||lpad(sa01mast.acno,6,'0')||
    lpad(sa01mast.chkdgt,2,'0'),24,' ') as account1,
    'PHP' as acct1_currency,
    case when sa01mast.crline in ('SA') then '10' else '20'
    end as account1_type,
    rpad(' ',12,' ') as limit_cash_dom,
    rpad(' ',12,' ') as limit_purch_dom,
    rpad(' ',12,' ') as limit_te_dom,
    rpad(' ',12,' ') as reserved1,
    rpad(' ',12,' ') as limit_cash_int,
    rpad(' ',12,' ') as limit_purch_int,
    rpad(' ',12,' ') as limit_te_int,
    rpad(' ',12,' ') as reserved2,
    rpad(' ',12,' ') as autho_limit_dom,
    rpad(' ',12,' ') as autho_limit_int,
    rpad(' ',12,' ') as reserved3,
    rpad(' ',4,' ') as activity_cd,
    rpad(' ',4,' ') as socio_prof_code,
    '00' status_code,
    rpad(' ',10,' ') as staff_id,
    '0' as delivery_flag,
    rpad(' ',8,' ') as delivery_date,
    rpad(' ',14,' ') as bank_dsa_ref,
    rpad(' ',50,' ') as ud_field1,
    rpad(' ',50,' ') as ud_field2,
    rpad(' ',50,' ') as ud_field3,
    rpad(' ',50,' ') as ud_field4,
    rpad(' ',50,' ') as ud_field5,
    rpad(' ',26,' ') as emboss_line3,
    rpad(' ',45,' ') as mailing_addr1,
    rpad(' ',45,' ') as mailing_addr2,
    rpad(' ',45,' ') as mailing_addr3,
    rpad(' ',45,' ') as mailing_addr4,
    rpad(' ',10,' ') as mailing_zip_code,
    rpad(' ',5,' ') as mailing_city_code,
    rpad(' ',3,' ') as mailing_country_code,
    rpad(' ',15,' ') as phone_home,
    rpad(' ',15,' ') as phone_alt,
    rpad(' ',15,' ') as phone_mobile,
    '0' as photo_indicator,
    ' ' as language_indicator,
    rpad(' ',25,' ') as maiden_name,
    rpad('0',8,'0') as check_sum
    FROM cf01cif, sa01mast, cf01addr, sa01mast2
    WHERE cf01cif.cifkey=sa01mast.cifkey and
         cf01cif.cifkey=cf01addr.cifkey and
    sa01mast2.brncd = sa01mast.brncd and
    sa01mast2.modcd = sa01mast.modcd and
    sa01mast2.acno = sa01mast.acno and
    sa01mast2.chkdgt = sa01mast.chkdgt and
              sa01mast2.opendt < sysdate
    );

    You can use the SPOOL command to create a output file. Run the below script. This will create a file "output.log". Check in the file for any error messages
    set echo on
    spool output.log
    drop table atm_dc
    CREATE TABLE atm_dc
    AS (
    SELECT
    'I' as action_code,
    rpad(' ',22,' ') as card_num,
    rpad(' ',24,' ') as client_cd,
    '000119' as inst_cd,
    rpad(sa01mast.brncd,6,' ') as branch_cd,
    ' ' as vip_flag,
    ' ' as owner_cd,
    '0' as basic_card_flag,
    rpad(' ',22,' ') as basic_card_num,
    rpad(' ',4,' ') as title,
    case when length(cf01cif.sname) > 0 then
    rpad(cf01cif.sname,20,' ') else
    rpad(' ',20,' ') end as family_name,
    rpad(' ',20,' ') as first_name,
    rpad(' ',26,' ') as embossed_name,
    rpad(' ',26,' ') as encoded_name,
    case when length(cf01cif.maritsts) > 0 then
    case when cf01cif.maritsts in ('M') then '2' else '1' end else
    ' ' end as marital_status,
    case when length(cf01cif.sex) > 0 then
    case when cf01cif.sex in ('F') then 'F' else 'M' end else
    ' ' end as gender,
    rpad(' ',15,' ') as legal_id,
    '608' as nationality_code,
    '00' as num_of_children,
    rpad('0',12,'0') as credit_limit,
    '0' as issuers_client,
    ' ' as lodging_period,
    ' ' as res_status,
    rpad('0',12,'0') as net_yearly_income,
    '00' as no_of_dependents,
    case when length(cf01cif.birthdt) > 0 then
    to_char(cf01cif.birthdt,'YYYYMMDD') else rpad(' ',8,' ')
    end as birth_date,
    rpad(' ',5,' ') as birth_city,
    case when length(cf01cif.cntry) > 0 then
    rpad(cf01cif.cntry,3,' ') else rpad(' ',3,' ')
    end as birth_cntry,
    case when length(cf01addr.addr1) > 0 then
    rpad(substr(cf01addr.addr1,1,30),30,' ') else rpad(' ',30,' ')
    end as address1,
    case when length(cf01addr.addr2) > 0 then
    rpad(substr(cf01addr.addr2,1,30),30,' ') else rpad(' ',30,' ')
    end as address2,
    case when length(cf01addr.addr3) > 0 then
    rpad(substr(cf01addr.addr3,1,30),30,' ') else rpad(' ',30,' ')
    end as address3,
    case when length(cf01addr.addr4) > 0 then
    rpad(substr(cf01addr.addr4,1,30),30,' ') else rpad(' ',30,' ')
    end as address4,
    case when length(cf01addr.city) > 0 then
    rpad(substr(cf01addr.city,1,5),5,' ') else rpad(' ',5,' ')
    end as city_code,
    case when length(cf01addr.postcd) > 0 then
    rpad(cf01addr.postcd,10,' ') else rpad(' ',10,' ')
    end as zip_code,
    case when length(cf01addr.cntry) > 0 then
    rpad(cf01addr.cntry,3,' ') else
    rpad(' ',3,' ') end as country_code,
    rpad(' ',15,' ') as phone_no1,
    rpad(' ',15,' ') as phone_no2,
    rpad(' ',15,' ') as mobile_phone,
    rpad(' ',50,' ') as email_id,
    rpad(' ',40,' ') as employer,
    rpad(' ',30,' ') as emp_addr1,
    rpad(' ',30,' ') as emp_addr2,
    rpad(' ',30,' ') as emp_addr3,
    rpad(' ',30,' ') as emp_addr4,
    rpad(' ',5,' ') as emp_city_cd,
    rpad(' ',10,' ') as emp_zip_cd,
    rpad(' ',3,' ') as emp_cntry_cd,
    rpad(' ',8,' ') as cont_start_dt,
    ' ' as emp_status,
    to_char(sa01mast2.opendt,'YYYYMMDD') as open_dt,
    rpad(' ',8,' ') as start_val_dt,
    '001' as prod_code,
    '0' as delivery_mode,
    rpad(sa01mast.brncd||sa01mast.modcd||lpad(sa01mast.acno,6,'0')||
    lpad(sa01mast.chkdgt,2,'0'),24,' ') as account1,
    'PHP' as acct1_currency,
    case when sa01mast.crline in ('SA') then '10' else '20'
    end as account1_type,
    rpad(' ',12,' ') as limit_cash_dom,
    rpad(' ',12,' ') as limit_purch_dom,
    rpad(' ',12,' ') as limit_te_dom,
    rpad(' ',12,' ') as reserved1,
    rpad(' ',12,' ') as limit_cash_int,
    rpad(' ',12,' ') as limit_purch_int,
    rpad(' ',12,' ') as limit_te_int,
    rpad(' ',12,' ') as reserved2,
    rpad(' ',12,' ') as autho_limit_dom,
    rpad(' ',12,' ') as autho_limit_int,
    rpad(' ',12,' ') as reserved3,
    rpad(' ',4,' ') as activity_cd,
    rpad(' ',4,' ') as socio_prof_code,
    '00' status_code,
    rpad(' ',10,' ') as staff_id,
    '0' as delivery_flag,
    rpad(' ',8,' ') as delivery_date,
    rpad(' ',14,' ') as bank_dsa_ref,
    rpad(' ',50,' ') as ud_field1,
    rpad(' ',50,' ') as ud_field2,
    rpad(' ',50,' ') as ud_field3,
    rpad(' ',50,' ') as ud_field4,
    rpad(' ',50,' ') as ud_field5,
    rpad(' ',26,' ') as emboss_line3,
    rpad(' ',45,' ') as mailing_addr1,
    rpad(' ',45,' ') as mailing_addr2,
    rpad(' ',45,' ') as mailing_addr3,
    rpad(' ',45,' ') as mailing_addr4,
    rpad(' ',10,' ') as mailing_zip_code,
    rpad(' ',5,' ') as mailing_city_code,
    rpad(' ',3,' ') as mailing_country_code,
    rpad(' ',15,' ') as phone_home,
    rpad(' ',15,' ') as phone_alt,
    rpad(' ',15,' ') as phone_mobile,
    '0' as photo_indicator,
    ' ' as language_indicator,
    rpad(' ',25,' ') as maiden_name,
    rpad('0',8,'0') as check_sum
    FROM cf01cif, sa01mast, cf01addr, sa01mast2
    WHERE cf01cif.cifkey=sa01mast.cifkey and
    cf01cif.cifkey=cf01addr.cifkey and
    sa01mast2.brncd = sa01mast.brncd and
    sa01mast2.modcd = sa01mast.modcd and
    sa01mast2.acno = sa01mast.acno and
    sa01mast2.chkdgt = sa01mast.chkdgt and
    sa01mast2.opendt < sysdate
    spool off

  • I have a dual-boot system on my laptop (windows/linux). Firefox opens on windows but not on linux (on linux firefox 'times out'). Why? and how do i fix this?

    could it be to do with the compatability being set to a windows setting?

    could it be to do with the compatability being set to a windows setting?

  • CS6 Plugin works on windows but not mac

    Hi,
    We have been developing a plugin for InDesign since CS3 and have recently ported it to CS6 (it was ported to all previous versions too, as they came out).
    I followed the porting guide etc. and on windows it compiles and runs just ok - the plugin works correctly.
    But when i compiled the same files on our mac machine and put the .indesignPlugin file in th plugins directory i can't see our plugin's context menu.
    I can see that it is in fact loaded on startup (when i remove it ID loads 325 extensions, when i put it back - 326), but still it dosen't seem to work...
    I initially thought that the versioning was off but our PluginVersion resource relies solemnly on SDKDef.h , i also tried putiing the file in CS5's plugin directory and got an error message that CS6 is required - so the version info is fine i guess.
    We are using xCode 3.2.5 (because we have to support Mac OS 10.5 and 10.4) to build on mac and i've never had problems before - it worked on CS4, CS5 and CS5.5.
    The changes i made when porting were minor and only in the code - so what has changed? and how come it works on windows but not on mac?
    Any input is greatly appreciated, i've already spent days trying to understand this.
    Thanks,
    Dan.

    Hi and thank you for replying.
    The resources do get compiled correctly (i assume this because we do get a .indesign file at the end - which means the ODFRC ran ok). they are linked correctly in the mac project (i saw a file that determines the version - it's linked the same way against my win and mac projects and the win version works fine so i guess that's ok too).
    the context menu is just another menu on the "menu bar" (don't know how to call it?) - i.e where the "file" and "edit" etc. menus are.
    I can't seem to understand how come this works fine under windows but not under mac - they are essentially the same projects linked against the same resources (the difference being iCode vs VC10 projects).
    can this be related to the fact we're using xCode 3.2.5?
    Thank you.

  • My iPod Classic is seen by Windows but not by iTunes.  I have reset it, gone to disk mode and it won't show up in iTunes.  There appears to be music on it in a file called MUSICSAVE.  How can I get this to work with iTunes again?

    My iPod Classic is seen by Windows but not by iTunes.  I have reset it, gone to disk mode and it won't show up in iTunes.  There appears to be music on it in a file called MUSICSAVE.  How can I get this to work with iTunes again?

    1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
    2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
    3. Check the USB cable
    4 Verify that Apple Mobile Device Support is installed
    5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
    6. If you just want to add some photos, songs and movies from computer to your devices, you can use an iTunes alternative to do the job
    7. Check for third-party software conflicts.
    <Link Edited By Host>

  • IPod shows up in Windows but not in iTunes

    I have recieved a new IPod video 30Gb off my g/f (how nice of her :D) anyway when I plug it into my computer it will not appear in iTunes, a problem plenty of people are having it seems. The difference being I think I know what caused the problem but I'm having trouble with it still.
    When I recieved the Ipod I tried it on my girlfriends computer and it worked fine. She already had an ipod and itunes installed. I was able to add music no problem and it appeared in itunes. She however was having problems downloading on her computer for websites or using download sofware since installing itunes and the problem went away when itunes was uninstalled.
    Because of this (there were work arounds so I'm not after a fix for that) I thought I try using other software to see if that stopped me having this problem. This meant when I got my ipod home I plugged the ipod into my computer and did not install anything off the disc. This I believe is what has caused my problem for not being able to see my ipod in itunes.
    Anyway I tried to get other software to work (winamp at the time) but couldn't figure it out and so thought I'd just bite the bullet and install itunes and hope I didn't have the same problems as my g/f.
    After installing and plugging my ipod in again nothing happened. I checked My Computer and the ipod was there and called PHIL'S IPOD but nothing was in itunes. I then followed all the instructions on here :
    http://docs.info.apple.com/article.html?artnum=93716
    but it still won't pick up my ipod.
    Is there anything else I can try to get my ipod to appear in itunes I really do want to use it but at the minute I can't at all.
    Thanks in advance.

    Two years ago I had to return an ipod mini to the shop for a refund as I could not get it to work. It showed up in windows but not in itunes. I spent about a week trying EVERYTHING, blamed apple for some stupid glitch and gave up. Ten days ago my daughter got an ipod nano, and since we share the same pc I did warn her of what might happen. Yup, it did. Exactly the same problem. Once again I tried all the tricks, the five Rs, renaming the drive, you name it, I did it. Throughout this period though my PC was running a little slow and weird things were happening and despite using Norton Antivirus and other anti spyware I suspected I had not fully recovered from some sort of infection which drove me mad by blasting me with popups for 888 casinos etc. What I thought was really odd was that nothing showed up in Device Manager and having googled around a bit I came across this from which you can download a AproposFix.
    So if this sounds like your problem go here:
    http://www.dslreports.com/forum/remark,14679793
    and try it. The ipod now works, my daughter turned pink with delight, and my PC is now back to normal speed and all sorts of other seemingly unconnected annoyances have been resolved. I really do wish Apple could be more aware of problems like this as there seem to be many thousands of 'users' (ha ha) out there who look as if they are having similar problems.
    Dell Dimension   Windows XP  
    Dell Dimension   Windows XP  

  • Fix for "iPod shows up in Windows but not in iTunes"

    This is a possible fix for those with the "iPod shows up in Windows but not in iTunes" problem. This also fixes those have the update/restore problem (ipod disconnects after clicking update/restore in itunes)
    SOLUTION
    SOLUTION
    I had the exact same problems before, iTunes doesn’t recognize iPod after connecting it, I had to use the restart iPod Service method to get it working.
    I tried this on my second computer and it worked perfectly, iTunes recognizes iPod every time I plug it in.
    I compared the process/services opened in both computers, and I turned on some services which were previously on disable(excluding iPod Service). Unfortunately I forgot which services it was, so I took some screenshots and compare these with your services.
    After modifying the services, I tried plug and unplug the iPod several times without closing iTunes, iPod was instantly recognized by iTunes every time!
    I attached the links to screenshots of my automatic services and manual services, ignore the service if its not on your list!
    For those don’t know how to open Services, Start -> Run -> “services.msc”
    http://img214.imageshack.us/img214/6200/automaticservicesec2.jpg
    http://img216.imageshack.us/img216/3700/manualservicesce3.jpg
    -If anyone know the specific services required to be turned on, please reply in this thread.
    -I am using the 2nd Gen Nano 2GB version with latest iTunes.
    IBM T43 Windows XP Pro
    IBM T43 Windows XP Pro

    Have you had a chance to look at this troubleshooting page? It may be of some help: iPod shows up in Windows but not in iTunes

Maybe you are looking for

  • HT4437 I am swiping from the bottom of my iPad screen for sharing, and nothing happens!

    iOS: Using AirPlay Learn how to use AirPlay to stream videos, music, and photos wirelessly from your iPhone, iPad, and iPod touch. You can AirPlay videos, music, or photos from a variety of locations on your iOS 7 device, including from within the Ph

  • White Screen after dropping my phone- Ideas to Fix? LCD-Digitizer

    Hey Guys, Dropped my Iphone 4 couple of weeks ago and when I picked it up it was just a white fuzzy screen. Ive been trying to find out how to fix it but have come to a full stop. Ive knocked it, tried to reset it and all. I have been able to back it

  • Frequency measuremen​t with PCI6624, timout problem at startup, i.e measure 0 Hz.

    I want to use my PCI 6624 for measuring of frequency signals from a gear flow meter. The problem is that when I start running the VI there is no pulses from the flow meter and the VI stops to run and I get a Timeout error message. I.e is it possible

  • Migration 11.5 to 12.1 Checklist

    Hi, One of the checklist points is to verify that the current structure of xMII 11.5 applications matches the project structure in SAP MII 12.1 Its been a while since I worked in 11.5, can somebody explain in detail about the folder structure in 11.5

  • Windows xp can't find a sound card

    I installed xp svc pk2 on an intel imac (new release 2.66Ghz) running Leopard 10.5.4. I had lost the system disk that came with the computer but I had bought a stand-alone copy back in January for my older computer. I used it to load windows drivers