Logger lies to me

This code says that it will print out FINE messages, but refuses to actually do it. Anybody know why?
import java.util.logging.*;
public class LoggerTest {
     public static void main( String[] args ) {
          Logger log = Logger.getLogger( LoggerTest.class.getName() );
          log.setLevel( Level.FINE );
          log.info ( "Will log fine? "+ log.isLoggable( Level.FINE ) );
          log.info   ( "Info " );
          log.fine   ( "Fine " );
          log.finer  ( "Finer " );
          log.finest ( "Finest " );
}this is the output:
java LoggerTest
Jun 19, 2006 4:19:39 PM LoggerTest main
INFO: Will log fine? true
Jun 19, 2006 4:19:39 PM LoggerTest main
INFO: Info

java.util.Logging can be a bit tricky at first, but its very flexible. I used to always muck around with progammatic manipulation, too.
The trick is to (choose 1 or more):
a) Walk up the chain of parent loggers and configure all of them to log using Fine [ not too cool ]
b) tell your logger not to use its parent (or you'll have duplicate messages) and add your own handler to it [ better, but still annoying ]
c) obtain loggers from some utility class which does a or b [better]
d) use the system properties to configure your applications loggers [better]
Read up more on the architecture in java.util.logger.Logger and how to configure in java.util.logger.LogManager.

Similar Messages

  • How to find a point lies inside circle

    Hi,
    How do I find a point (x,y) is lies inside a circle? I trying to do a small shooting game.
    If the user clicks inside the circle they get a point. I am using the Pythagoras theorem to achieve this. But I can't.
    Please advice me.
    Here is my code
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Shoot extends JFrame implements MouseListener, MouseMotionListener
        private int winWidth = 300;
        private int winHeight = 300;
        private MyCanvas canvas = null;
        private int ballX = 50;
        private int ballY = 50;
        private int ballW = 50;
        private int ballH = 50;
        private int ballR = ballW / 2;
        private int curX = 0;
        private int curY = 0;
        private int left = 0;
        private int top = 0;
        public Shoot()
            Cursor c = new Cursor(Cursor.CROSSHAIR_CURSOR);
            this.setCursor(c);
            canvas = new MyCanvas();
            packIt();
            left = getInsets().left;
            top = getInsets().top;
        private void packIt()
            setTitle("My first game!");
            setPreferredSize(new Dimension(winWidth, winHeight));
            setSize(new Dimension(winWidth, winHeight));
            setContentPane(canvas);
            addMouseListener(this);
            addMouseMotionListener(this);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //setUndecorated(true);
            setLocation(300, 0);
            setVisible(true);
        public void mouseClicked(MouseEvent e)
            int x = e.getX() - left - ballX;
            int y = e.getY() - top - ballY;
            int r = ballR;
            System.out.println("x :" + x + "\ty :" + y);
            //Trying to implememt Pythagoras theorem. But I am missing something.
            System.out.println(((x * x) + (y * y)) + "\t=\t" + (r * r));
            System.out.println();
        public void mousePressed(MouseEvent e)
        public void mouseReleased(MouseEvent e)
        public void mouseEntered(MouseEvent e)
        public void mouseExited(MouseEvent e)
        public void mouseDragged(MouseEvent e)
        public void mouseMoved(MouseEvent e)
            curX = e.getX() - left;
            curY = e.getY() - top;
            canvas.repaint();
        private class MyCanvas extends JPanel
            public MyCanvas()
                setBackground(Color.BLACK);
                setBorder(BorderFactory.createLineBorder(Color.yellow));
            public void paintComponent(Graphics g)
                super.paintComponent(g);
                g.setColor(Color.WHITE);
                g.drawString("x :" + curX, 10, 20);
                g.drawString("y :" + curY, 10, 30);
                g.setColor(Color.RED);
                g.fillOval(ballX, ballY, ballW, ballH);
        public static void main(String[] asd)
            new Shoot();
    }

    public boolean isPointInCircle(){
        double x= circle.getWidth/2.0+circle.getX();
        double y= circle.getHeight/2.0+circle.getY();
        double distance=getDistance(x,y,pointX,PointY);
        return (distance<= circle.getWidth/2.0); //if the distance from the point to the center of the circle is less than the radius of the circle return true
    double getDistance(double x1, double y1, double x2, double y2){
        return math.sqrt((x1-x2)(x1-x2) + (y1-y2)(y1-y2));
    }Edited by: ghostbust555 on Jan 23, 2011 3:20 PM

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

  • Don't use Best Buy Delivery if you are thinking about it...Just lies, lies, and more lies..

    Wow, where should I even started?
    We brought a 55 in TV from the local store last Sunday, and schedule a delivery yesterday (6/6/2015).
    They called us the night before delivery date, to confirm the delivery on Saturday from 1:30- 3:30pm.
    We waited until 3pm, and finally received a call saying "they were delayed a little bit", and moved the time to 5:30-6:30pm. Ok, not good, but we can understand.
    But of course, they didn't show up on time. We decided to call them again at 6:22pm, and were told they were 45 minutes away...
    7:30pm, after a hour, we called them AGAIN, and was told they are 25 mins away. 
    We had another delivery scheduled from Lowes at 8pm. Lowes showed up on time, and installed our fridge and washer/dryer professionally. They left around 8:30pm. 
    WHERE IS OUR TV FROM BEST BUY THEN???? Don't they supposed to show up before the Lowes???
    We called them again and again, but nobody answered...well, I guess it is a Saturday, and they went home WITHOUT even bother to tell us.
    Last time we spoke, you told me you are 25 mins away. Is this a lie? or you just decide to go back to your sweet home after we talk on the phone?!
    Sunday (6/7), I called the warehouse again in the morning, but no one answers, the voicemail is full as well (So I think we are NOT the only one experienced this ridicuous issue). Then we called the 1-888 number, and explained what happened. The customer rep on the phone couldn't get hold of the local warehouse neither, and told us to call back within several hours. (They did give us a case number: {removed per forum guidelines} though) We called back before noon, and was told they are not open on Sunday, and they don't know when will be get our TV delivered, maybe Monday morning.
    Ok, here is the thing, we have to work Mon- Fri, that's why we requested to deliver on Saturday. And come on, Best Buy, it is just a TV, it is not huge appliances that take you that much time.
    I can see why there was delay, ( not saying we were happy about it though...) But you could at least called us to let us know before you went home on our scheduled delivery date!!!! And were all those "45 mins away", "25 mins away" things lies???? 
    Dear Best Buy Coustomer Relations,
    I am expecting a responce back from you in a few business days from today, 06/07/15. Your responce should be sartisfying us. If we don't hear anything back from you or your responce to us doesn't satisfy us, then we will go talk to someone higher in your organization. Thank you,

    Hello MengyaLiu, and welcome to the forum,
    I’m honestly not sure why our delivery team would have told you they were on their way to your home and then not arrive without an explanation as to why. Our delivery agents should be notifying you of all necessary changes in their delivery schedules, as we realize the inconvenience any possible delay may cause, so it’s regrettable to hear we failed you in this regard. I truly apologize for any frustration this oversight may have caused.
    While I’ve personally documented your feedback here at the corporate office to ensure something of this nature doesn’t happen in the future, I’m glad to hear our delivery team was able to make this right and successfully delivered your TV yesterday. Please feel free to let us know how it went and if you have any further questions for me. I’ll be glad to help.
    Best wishes,
    Alex|Social Media Specialist | Best Buy® Corporate
     Private Message

  • How to find particular date lies in between two given dates

    hi,
    i have a problem. i have to find if particular day lies in between two given dates.
    example two dates are joindate and expirydate.
    1.joindate is 1/03/2007
    expdate is 1/03/2008
    now i have to find if 29 feb is in between this joindate and expirydate.
    if any1 has ny idea please reply asap.
    thanks.

    The Date class has a before() and after() method you can use to compare Date objects.

  • I purchased a Holux M-1200E Bluetooth GPS Data Logger.  The device paired with my laptop just fine so I know it is working right.  The device will not even show up on my iphone or ipad to pair via bluetooth.  Is there a way to pair without jailbreaking???

    I purchased a Holux M-1200E Bluetooth GPS Data Logger.  The device paired with my laptop just fine so I know it is working right.  The device will not even show up on my iphone or ipad to pair via bluetooth.  Is there a way to pair without jailbreaking???  I haven't had any trouble to date pairing any devic with my iphone or ipad, this is ridiculous!!!!  Is there a way to update my bluetooth settings on my iphone 4s to be able to have this device be recognized???  I love my apple devices, but this is very frustrating.  I bought this Data Logger for a specific purpuse to help out with my Search and Rescue volunteer activities, and I really need help with this!!!  I am hoping apple will help me!!!
    Thanks,
    Melissa

    melissafromlenexa wrote:
    That is not the right device, it is the
    Holux
    M-1200E Bluetooth GPS Logger
    I looked at the same sight for that and it does not say that.  This is the first time I have posted a question, you don't have to be mean about it.  I am trying to get this to work for a good cause. 
    It may be the best source of assistance is the manufacturer of the device. I suspect you will need a specific app for the iPhone to get it to work, but the site is rather ambiguous about that.

  • Throttled with lies

    I'm the bad guy... at least according to Verizon's throttling policy for the remaining "unlimited" (haha!) data customers utilizing 3G.  And yes, it is throttling, "network optimization" doublespeak aside; a better term might be "bottom line optimization."  I understand the desire to not end up in the same situation that ATT/Cingular did, whom I left for Verizon because their connectivity became atrocious.  This action, however, is a step backward, disrecpectful of their most active users, and demonstrates a glaring lack of vision with regards to the ever-blossoming world of mobile data connectivity.  I'm technically knowledgeable and understand that 10 million users all maxing out their connections 24/7 is unsustainable with existing architecture, I get it, but that's not what's happening.  This action is nothing more than a means of forcing the remaining "unlimited" (again hah!) data users off of these grandfathered plans and onto the new tiered rate structure and ultimately is about $$$ and not equal opportunity bandwidth allocation.  And if bandwidth is at that much of a premium, then it's Verizon's fault for not appropriately scaling up to accomodate the incredible increase in data users driven by it's own push towards smartphones for everyone and the adoption of the iphone; not the fault of users that use more data than the average person.
    Verizon explains, as justification for this bandwidth throttling, that they are trying to protect the 95% of users who do not exceed 2gb/month by reigning in these "abusers" who use "inordinate" amounts of data because apparently Verizon's network is so weak that a mere 5% of its user base can completely ruin the experience of the other 95%.  But wait, this does not apply to 4G customers or anyone that's on the tiered billing plan.  So, if being an "abuser" and using "inordinate" amounts of data is OK as long as Verizon is making more money, then it's really not about bandwidth consumption is it, because those same heavy users are not being throttled... as long as Verizon makes more money.  My friend has a 4G phone that NEVER gets 4G connectivity because 3G is the best we have in our rural state, he also upgraded to this phone just prior to the elimination of the "unlimited" plans.  Yet he is not affected by the throttling.  We are both just over 7gb for our current billing cycle, my phone has been throttled and is now essentially unusable for the very things that it is marketed for; I can send texts, emails, view basic website but any sort of streaming is now out of the question for the remainder of my billing cycle?  Possible the next cycle as well?  Even many websites load painfully slowly because most sites are pretty graphic intensive in this day and age.  And so I am paying for a service that the service provider is now preventing me from utilizing as intended.  My friend, at the same level of data usage on an unlimited plan, is unaffected.  
    Also, with regards to "network intelligence" not being "throttling" because it only, well, throttles in areas that are "congested" that's not accurate.  I live in a low population bedroom town, a large percentage of which, I assure you, are not avid smartphone streamers and many of whom have landline broadband connections to their homes.  I would often get 900kpbs upwards to 2mbps regularly when streaming and do so without interruption or pausing to buffer in most cases.  Since my "throttling" the other day I cannot break 300kbps and anything I stream pauses every 60 seconds to buffer as I watch my bandwidth oscillate between 50kbps and, at a rare maximum, 300 kbps.  This is not a congested area.  I go to work in a more heavily-populated town, still 300 kpbs max.  I take lunch and go into the city, the largest and most populated city in our state, still 300, actually popped up to 350 in what I would consider the most congested portion of our state.  Where's the "network intelligence" Verizon?...
    7gb!  Wow, how can you possibly use that much data?!?  Is it really that hard to comprehend how someone could easily tear through that much data?  Utilizing the Netflix app alone, an app approved and available in the Market, this can be accomplished rather easily.  A rough average on an hour episode of streaming media is, ballpark, around what 300mb?  So, watching 7 one-hour episodes of a tv show streamed through Netflix would equate to around 2gb; you're now an "abuser" using "inordinate" amounts of data.  "Inordinate" apparently equating to watching two 1-hour tv shows/week streamed through your phone.  Given that the average American watches 5 hours of tv a day and spends even more time online, that usage estimate is actually conservative relative to the typical level of media consumption in the United States.
    If Verizon wants to used a tiered billing system as everyone is now, that's their perogative, however modifying plans previously labeled as "unlimited" in order to correct for a forecasting mistake made by Verizon itself is unacceptable.  Verizon, you should have allowed these plans to expire within their existing contract dates without meddling with individual users' bandwidth allocations; they would have all eventually gone away and you would have a lot fewer **bleep**-off customers.  I repeat, I have a phone that is now essentially unusable for the majority of functions that it is marketed for because of an inentional restriction against me as a customer by Verizon... yet I am expected, of course, to continue paying for the very service they are essentially blocking me from using because, while Verizon can modify the terms of any contract they see fit, I certainly cannot.  What if your cable provider, most of which utilize streaming video through digital cable boxes now, turned off your cable access for the rest of the month or only let you watch channels 1-10 because, sir, you've been watching far too much tv and it's preventing our other customers from viewing shows... mmhmm, that wouldn't upset any tv viewers now would it?
    Verizon, of course, knows that other providers do this as well and that I, of course, want to continue my media consumption, and so they have the upper hand.  I, like an increasing number of people, use my phone for everything.  I have no cable, no cable broadband, no landline phone, my phone is my connection to the world, partly because that's how I prefer it, partly because I can't afford to pay several different companies for access to the same thing.  I either fold and drop $300 on a new 4G phone and renew my contract with a tiered data plan and get financially raped and have to constantly stress about how much data I've used or I incurr a new monthly fee with, say, my cable provider to avoid having to pay out the nose to Verizon for access to the SAME content.
    Rant aside, the bottom line is this: Verizon is lying.  Let me say that again, Verizon is lying about the justification for this move.  It's not about equal oppotunity bandwidth, it's about Verizon realizing they can increase their revenue stream... otherwise, wouldn't those tiered folks be getting throttled as well if they "abuse" and use "inordinate" amounts of data?  Oh no, of course not, Verizon just bills them more.  This scenario is as ridiculous as charging $20/month for text messaging, which, by the way, is also data.
    Here's an idea Verizon.  Why not take some of piles of money you're making by fleecing customers with "abusive," "inordinate" fees and upgrade your network to accomodate the very scenario that you as a company have been promoting, if that is in fact the real issue at the core of this.  And maybe someone in your PR department will think really hard about demonizing your users in the future for using your product in the very manner it was intended and painting us as outside the law to the bulk of your client base.  This little to do with heavy data users and everything to do with $$$ and possibly the inability of Verizon to meet the service needs of a exponentially growing smartphone market that it helped to encourage.
    I have gone from highly recommending Verizon as a service provider to other folks to now being dissapointed and bitter from my experience.  All of this, of course, occurred without any notification to me or any kind of notice either on my online account management or in my electronic bill, as they also apparently stated would occurr.  More than likely this and the new tiered billing will lead to me seeking another form of connectivity and dropping my Verizon plan options to the absolute minimum across the board or switching phone providers simply because of how insultingly this has been framed, and I suspect I'm not alone... which results in less $$$ to Verizon.  Good job, guys.

    Spot on _ BULLS EYE!!  You aren't alone. I want to validate your rant.  Verizon went out of their way to sell me the same $59.99 unlimited broadband 4 yrs ago and have now been hassling me and twisting my arm with every aggravating phone call I make to complain.  I have had the throttling removed three times.  This time they said we can't remove it but change your plan and you'll be at full speed immediately.  I am sick and tired of the lying.  They all can't even tell the same story.  Just last week I was told by more than one employee that my device must be bad because they don't throttle. 
    Occupy Verizon would be good - How do you get these ****** to PAY - Are their any Attorneys out there - I know they originally sold THOUSANDS of those plans.  I'm ******!!!!!!
    A Corporation that tells lies and different stories from its employees has to be held Accountable - Financially
    Give me back my $59.99 per month times 48 months and its still not enough for the hell they have put me through.  My computer has been slowed to the point my mail center timed out and was unable to download important PDF Contracts.  HELLO!!! Verizon - Thats money out of MY Bottom line. Get it?   THX

  • HT1420 Hi I am trying to sync my pone but wont allow me to transfer music purchased on the phone. States I have 5 authorised computers on my account but when i  logg into my account it only identifies 1 so i carn't deactive?  trying to backup data to put

    Hi I am trying to sync my ip3 but wont allow me to transfer music purchased on the phone to itunes on the laptop. States I have 5 authorised computers on my account but when i  logg into my itunes account it only identifies 1 so i carn't deactive all to start again? I am trying to backup data fom myip3 to put on ip4 so carnt even complete sync atm Any ideas on what to do??

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use. 
    If your sister doesn't know the password for her old ID, and if her old ID is an earlier version of her current ID, she needs to temporarily recreate the old ID so you can delete if from your phone using her current password.  To do this, have her go to https://appleid.apple.com, click Manage my Apple ID and sign in with her current iCloud ID.  Click edit next to the primary email account, change it back to her old email address and save the change.  Then edit the name of the account to change it back to her old email address.  You can now use the password for her current ID to turn off Find My iDevice on your device, even though it prompts you for the password for her old account ID.  After you do this, Next, have your sister recreate her current ID again by going back to https://appleid.apple.com and changing her primary email address and iCloud ID name back to the way it was.
    Then your can save any photo stream photos that you wish to keep to the camera roll on your device, then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted.  You will be prompted to either keep or delete the iCloud data from your device.  If the data is already in another account you can choose Delete.  If you need to migrate it to another account, choose Keep, then choose Merge when signing into the new account.

  • Hello my name is consuela mayfield and I hope you have read my emails I sent to you off of lately and If u dint I'm askin I'm trying to logg into my iTunes for my apple ID and when I logg into it it says either I can't conne.

    I need help with my iPod touch and I deleted my iTunes account and trying to make a new one but won't let me it keeps telling me cannot connect to iTunes or server not found and I cannot connect to my computer because It freezes and turns off and I'm try a see if I logg on iTunes on here will it let me download iTunes on here instead of the other one could someone help out please!!???
    <Email Edited by Host>

    You really should not post your email address on a public forum such as this unless you just love spam. I have requested that Host edit for you protection.
    Allan

  • How to implement logger in this ftp server

    I have written a FTP Server that is used by the clients to upload xml over to the server.
    Currently it is using a console and it is printing stuff out on a console.
    I have tried a lot to implement a logger class so that all console messages get written to a file.
    But it has not been working out at all.
    I would deeply appreciate if all you java gurus out there could modify the code given below to correctly log messages to a log file.
    Please do Explain if possible ...I will try to rectify this issue in several other applications i developed as well.
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    import java.text.DateFormat;
    import java.text.Format;
    import java.lang.Object;
    import java.lang.*;
    import javax.crypto.*;
    import javax.crypto.spec.PBEKeySpec;
    import javax.crypto.spec.PBEParameterSpec;
    import java.security.spec.AlgorithmParameterSpec;
    import java.security.spec.KeySpec;
    public class FTPServer
    {     public static void main(String args[]) throws Exception
         {     ServerSocket soc=new ServerSocket(5217);
              System.out.println("FTP Server Started on Port Number 5217");
              while(true)
                   System.out.println("Waiting for Connection ...");
                   transferfile t=new transferfile(soc.accept());               
    class transferfile extends Thread
         Socket ClientSoc;
         DataInputStream din;
         DataOutputStream dout;     
         transferfile(Socket soc)
         {     try
              {     ClientSoc=soc;                              
                   din=new DataInputStream(ClientSoc.getInputStream());
                   dout=new DataOutputStream(ClientSoc.getOutputStream());
                   System.out.println("FTP Client Connected ...");
                   System.out.println("External IP of Client ..." + ClientSoc.getInetAddress());
                   //System.out.println("FTP Client Connected ..." + ClientSoc.getRemoteSocketAddress());
                   start();               
              catch(Exception ex)
    //encrypto routine starts
    class DesEncrypter {
            Cipher ecipher;
            Cipher dcipher;   
            // 8-byte Salt
            byte[] salt = {
                (byte)0xA9, (byte)0x9B, (byte)0xC8, (byte)0x32,
                (byte)0x56, (byte)0x35, (byte)0xE3, (byte)0x03 };   
            // Iteration count
            int iterationCount = 19;   
           DesEncrypter(String passPhrase) {
                try {
                    // Create the key
                    KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray(), salt, iterationCount);
                    SecretKey key = SecretKeyFactory.getInstance(
                        "PBEWithMD5AndDES").generateSecret(keySpec);
                    ecipher = Cipher.getInstance(key.getAlgorithm());
                    dcipher = Cipher.getInstance(key.getAlgorithm());   
                    // Prepare the parameter to the ciphers
                    AlgorithmParameterSpec paramSpec = new PBEParameterSpec(salt, iterationCount);   
                    // Create the ciphers
                    ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
                    dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
                } catch (java.security.InvalidAlgorithmParameterException e) {
                } catch (java.security.spec.InvalidKeySpecException e) {
                } catch (javax.crypto.NoSuchPaddingException e) {
                } catch (java.security.NoSuchAlgorithmException e) {
                } catch (java.security.InvalidKeyException e) {
            // Buffer used to transport the bytes from one stream to another
            byte[] buf = new byte[1024];   
            public void encrypt(InputStream in, OutputStream out) {
                try {
                    // Bytes written to out will be encrypted
                    out = new CipherOutputStream(out, ecipher);   
                    // Read in the cleartext bytes and write to out to encrypt
                    int numRead = 0;
                    while ((numRead = in.read(buf)) >= 0) {
                        out.write(buf, 0, numRead);
                    out.close();
                } catch (java.io.IOException e) {
            public void decrypt(InputStream in, OutputStream out) {
                try {
                    // Bytes read from in will be decrypted
                    in = new CipherInputStream(in, dcipher);   
                    // Read in the decrypted bytes and write the cleartext to out
                    int numRead = 0;
                    while ((numRead = in.read(buf)) >= 0) {
                        out.write(buf, 0, numRead);
                        //added later on
                        in.close();                    
                    out.close();
                } catch (java.io.IOException e) {
    }     //encryptor routine ends
    //not implemented right now as we arent using the ftp server to download stuff...can be activated later on if we want
         void SendFile() throws Exception
              String filename=din.readUTF();
              File f=new File(filename);
              if(!f.exists())
                   dout.writeUTF("File Not Found");
                   return;
              else
              {     dout.writeUTF("READY");
                   FileInputStream fin=new FileInputStream(f);
                   int ch;
                   do
                        ch=fin.read();
                        dout.writeUTF(String.valueOf(ch));
                   while(ch!=-1);     
                   fin.close();     
                   dout.writeUTF("File Received Successfully");                                   
         String Compare(String filename) throws Exception
                        ///dout.writeUTF("entering compare");
                        String dateTempString=new String();
                        Date dateValue=new Date();
                        SimpleDateFormat formatter = new SimpleDateFormat ("hhmmss");
                        dateTempString = formatter.format(dateValue);
                        File dir1 = new File("C:\\FTPnew");
                        boolean success2 = dir1.mkdir();
                        if (!success2) {
                             // Directory creation failed /Already Exists
                        File dir = new File("C:\\FTPnew\\server");
                        boolean success = dir.mkdir();
                        if (!success) {
                             // Directory creation failed /Already Exists
                        File ftemp=new File(dir,dateTempString + filename);
                        File fnewtemp=new File(dir,"new-enc-"+filename);
                        // Create encrypter/decrypter class
                        DesEncrypter encrypter = new DesEncrypter("My Pass Phrase!");
                        FileOutputStream fout=new FileOutputStream(fnewtemp);     
                        int ch;
                        String temp;
                        do
                        {     temp=din.readUTF();
                             ch=Integer.parseInt(temp);
                             if(ch!=-1)
                                  fout.write(ch);                         
                        }while(ch!=-1);
                        fout.close();
                        //dout.writeUTF("written temp en file");
                        // Decrypt
                    encrypter.decrypt(new FileInputStream(fnewtemp),
                    new FileOutputStream(ftemp));
                        //String Option;
                        dout.writeUTF("Delete");                    
                        System.out.println("File Upload Successfull--Duplicate file with timestamp Created");          
                        boolean success1 = fnewtemp.delete();                    
                        return "hello" ;
         void ReceiveFile() throws Exception
              String ip=din.readUTF();
              System.out.println("\tRequest Coming from Internal IP Address : "+ ip);
              String filename=din.readUTF();
              if(filename.compareTo("File not found")==0)
                   return;
              // Destination directory
       File dir11 = new File("C:\\FTPnew");
                        boolean success22 = dir11.mkdir();
                        if (!success22) {
                             // Directory creation failed /Already Exists
                        File dir = new File("C:\\FTPnew\\server");
                        boolean success21 = dir.mkdir();
                        if (!success21) {
                             // Directory creation failed /Already Exists
              File f=new File(dir ,"enc-"+filename);
              File fe=new File(dir,filename);
              String option;
              if(fe.exists())
                   //dout.writeUTF("File Already Exists");
                   String compvalue = Compare(filename);
                   //dout.writeUTF(compvalue);
                   if(compvalue.compareTo("hello")==0)
                        //dout.writeUTF("Transfer Completed");
                        return;
                   option=din.readUTF();
              else
                   //dout.writeUTF("SendFile");
                    option="Y";
                   if(option.compareTo("Y")==0)
                        // Generate a temporary key.       
            // Create encrypter/decrypter class
             DesEncrypter encrypter = new DesEncrypter("My Pass Phrase!");
                 FileOutputStream fout=new FileOutputStream(f);                    
                        int ch;
                        String temp;
                        do
                        {     temp=din.readUTF();
                             ch=Integer.parseInt(temp);
                             if(ch!=-1)
                                  fout.write(ch);                         
                        }while(ch!=-1);
                        fout.close();                    
                        // Decrypt
                    encrypter.decrypt(new FileInputStream(f),
                    new FileOutputStream(fe));          
                        boolean success2 = f.delete();
                        dout.writeUTF("Delete");
                        System.out.println("File Upload Successfull");                    
                   else
                        return;
         public void run()
              while(true)
                   try
                   String Command=din.readUTF();
                   if(Command.compareTo("SEND")==0)
                        System.out.println("\tSEND Command Received ...");     
                        ReceiveFile();
                        continue;
                   catch(Exception ex)
                        //System.out.println("\tClient Terminated Abnormally ...........");
                        continue;
    }

    Stick a
    Logger log = Logger.getLogger( "me ftp server" );at the top.
    Checn Sys.out.println to log.info( ... )
    Add a logging prefs file.
    http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html

  • Error when running VI logger 2.01 with MX driver

    Hi,
    When I run a VI task , the following message from Task Validation shows up:
    Database does not exist in the specified path.
    I have reinstalled the software, but it want fix the problem.
    How do I solve this problem?
    Do I need the full vers. of VI logger, to run and log data?
    Do I need the Citadel database installed ? Where do I finde the Citadel database? What CD? I have the full NI Academic software.
    Please help me!!!
    I'm LOST.
    S.
    Tævje
    [email protected]

    Look here for solving problem.
    RegardsMessage Edited by Indiana on 04-21-2005 08:33 AM
    Message Edited by Indiana on 04-21-2005 08:34 AM
    Message Edited by Indiana on 04-21-2005 08:34 AM
    Message Edited by Indiana on 04-21-2005 08:36 AM

  • "file not found" error in VI Logger when running an imported VI Logger task

    I'm having trouble getting all of my imported tasks to run in VI Logger.
    I'm using VI Logger 2.0, with an SCXI-1100.  The data acquisition tasks I import run fine.  One of the VI Logger tasks I've imported runs OK, but the other one gives an error:
    "Engine Error!
    Error Code = 7
    LabView: File not found.  The file may have been moved or deleted, or the file path might be incorrectly formatted for the OS."
    If I create a new VI Logger task, the new task works OK.  And my 1st VI Logger task to be imported works OK.  So I know my setup mostly works.  But our company has never been able to figure out importing tasks very well, so I'm looking for help.
    Question 1: What file is LabView looking for?  I've checked my Export path and database path, and they are identical in both the working task and the non-working task.
    Question 2: Where else might I look for the difference between the 2 VI Logger tasks?  Neither task uses any weird characters in the name, both have analog input channels and calculated channels.  And I've mixed and matched the data acquisition tasks with no change (the good VI Logger task will run with either data task, the bad VI Logger task won't run with either data task), so I'm pretty sure the problem is in the VI Logger task, and not the data task.  I've also tried importing the 2nd task on its own, as a separate import function, but that gave the same error.
    Thanks for the help in advance,
    Jake

    Hi Spex,
    I can import the VI Logger task OK (from another PC running VI Logger 2.0), but I can't run the task.  I've attached the file.  The "1 channel" task runs OK.  The "x-probe" task starts, takes 1 or 2 data points, then hangs for a few seconds, then pops up the "file not found" error. The data acquisition taks run OK, so I don't think they're the problem.
    This file I've attached includes 2 good data tasks ("1 channel" and xprobe"), 1 good VI Logger task ("1 channel"), and my non-working VI Logger task ("x-probe", which works fine on the PC it was exported from).
    I have also tried exporting the non-working VI Logger task on its own, and it still imports OK, but still doesn't run, and gives the same error.
    Thanks,
    Jake
    Attachments:
    configData1.zip ‏353 KB

  • Cannot print reports as PDF: Logger not set error

    Hi all,
    I'm trying to print some reports as PDF and I have the following problem:
    - I followed the step "5.Installing and Configuring Apache FOP" of http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    - When I try to print my report I get this message on OC4J console:
    08/04/30 11:54:42 [ERROR] Logger not set
    08/04/30 11:54:42 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Par
    08/04/30 11:54:42 [INFO] building formatting object tree
    08/04/30 11:54:42 [INFO] setting up fonts
    08/04/30 11:54:42 [INFO] [1]
    08/04/30 11:54:42 [WARNING] table-layout=auto is not supported, using fix
    08/04/30 11:54:42 [WARNING] Sum of fixed column widths 720000 greater tha
    um specified IPD 658800
    08/04/30 11:54:42 [INFO] Parsing of document complete, stopping renderer
    My question is about the Logger error. What is exactly a Logger?
    May I define it in j2ee-logging.xml file of OC4J?
    I'm working with:
    - APEX 3.0.1
    - Java SDK 1.4.2
    - Oracle Containers for J2EE (10.1.3.2)
    Thanks!
    Roger

    Hi again,
    I still didn't found the solution to my problem. In the "ascontrol.log" file of OC4J there is this warning:
    2008-05-05 11:36:28,934 [OC4J Launcher] WARN jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions administrators:F for wallet at E:\oc4j\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    Is it significant?
    Thanks

  • Verizon Customer Service Lies, does not follow their own contract!

    Heres what I've been dealing with. Can anyone out there tell me if Verizon has to go by the same Terms & Conditions set forth for Customers? I think they would have to,right because it has to be a meeting of the minds and if they tell me one thing but they don't have to do the same time. I feel like as judge Judy & Judge Marion ( sorry not sure how to spell here name BUT LOVE LOVE HER SHOW ON PEOPLE's COURT) that for there to be a Contract that it has to be follfollowed the same way for each person in it ,or it would not be a contract because both parties would have to get something out of it and ALSO FOLLOW THAT SAME RULES SET FORTH IN THE CONTRACT.
    Sometimes it's not always about the price. To a large number of U.S. It's about the Quality of the derive not so much about the little difference in a monthly plan, even tho to me I want both. But at Verizon I get great cell service, BUT THE ABSOLUTE WORST CUSTOMER CARE ON THE PLANT. and I just don't mean CS REPS having a bad day because we all get them . What I'm talking about how almost everyone of them lie in some way or another. And finaily after about the ten time of them lying to you about sometime ( like only being abole to a NCR ONE CELL PHONE WHEN YOUR IS BROKEN AND ONLY WANTED A NEW ONE OF WHAT YOU HAVE "NOT '5 New Certified Refurbished Ones "that are all broken just like the first one. )I finally called Samsung about this because every service rep was telling me the same thing. I would tell them that the contract states' NEW ONE, NCRO, or ONE COMPARABLE TO THE ONE I HAVE' Samsung rep told me that Verizon was out right Lieing to me because they only sell the phones in Bulk to the Cell Phone Providers, after that it's WHAT VERIZON WANTS TO DO AND OF COURSE THEY WANT TO MAKE YOU SPENT MORE MONEY NOW AND IN THE LONG RUN. YOU SEE ALL I WANTED WAS THE ONE I HAD BUT A NEW ONE NOT ANOTHER 6 REFURBISHED one. But nope Verizon would not do that so I could keep the broken one or I would have to pay more money to get another comparable to mine. I feel like I had no opinion but to borrow money and get new one, I paid $100. For new Samsung Galaxy s5 because I had the Galaxy s4 new from them when we signed contract. And after 4 months and all the run a rounds they had me do,I was so very upset. Anyway when I order the new one with the Service Rep In Corp, she promised me there would be NO OTHER FEES OR MONEY WHAT SO EVER THAT I WOULD HAVE TO PAY, BECAUSE I BORROWED THE $100 and I could not and would not spend anymore money with them, BUT SAD TO SAY THEY LIE AGAIN. BECAUSE I HAD A FEW DIFFERENT CHARGES ON MY BILL. OK TAXES, EVEYONE HAS TO PAY THOSE RIGHT, BUT THE FEES THAT THEY CHARGE FOR THIS OR THAT AND AN UP GRADE FEE WAS A DOWN RIGHT LIE. SO FROM SEPT 2014 to April 2015 I have been fight them to take of the charges right. Them in Oct 2015 I went into store to see about their home internet service and a rep there told me that it would more then likely be best for me to go with the Promo that they were having to the end of the month. I even have a letter he gave me about the $100. Discounted price a month but on back he wrote what my bill would be evey month with all my discounts and such. It was $ 200.26 . I even got a letter from Verizon stating that I can in the store and changed my plan the 18 of Oct & it would take in affect on the 27 of Oct my monthly billing cycle. So I told the Rep to go ahead and do it..we agreed that if I didn't like it or want to chance to some else I could. Well here comes Nov 2015 bill and there's no DISCOUNT AT ALL. SO since Nov2015 when I called them about this ( I won't go into all the lies there because we would be here all day) till April 2015 I have been fighting this mistake they made and the charges of the up grade fees and all.
    I Finaily told them that I was done with this that I could not go on and on anymore. I had just gotten out of Hospital ano put on Anxiety Ned's because of all the stress I've been  having every single month with them. Everything could just had been avoided if they would just have given me a NEW GALAXYs4 instead of having to buy a nit het phone. Oh by the way which I just found out that by them having me to have to buy the new one or keep the broken on that I now made my contract go for another 9 months till 2016 when it was to be over this Dec when we signed up. They said since I upgraded that it extended it. Well the way I see it that if there is no upgrade fees because I was told there would be none and they finailly took the charges off and gave me the credit for it shows that there was not a meeting of the minds so there is no extended contract. I have to say that after going to Verizon, Best Buy , then to Verizon another time and the countless house I have spent on the service reps that it would be the best for both parties to walk away from all this contract and all. I have every record of the people ,date, time I talked to them , plus all text messages, & FaceBook messages back and forth for at least 100hours or more( 2 time I spend the day and evening at Verizon ,where they sent me to Best Buy to find out at the end I should never have been sent there to begin with so 1 time 51/2 hours, then around 4 hours because they would not talk to me because I did not have my licenses, even tho I had been there multitude times, & know all the addresses, phone numbers, names, and af course the only thing that I have to give to the reps when I'm online is a passcode which I had also. So no I had to take a 45 min ride back hoe to get it ,got back at 7 pm stayed till after closing when I told the manager Tom at the big Verizon store in Gainesville Fl off of Newberry rd and i-75 that I would just let him work on it and please credit my account. And of course did not happen. LIES, LIES LIES. So now we are going to go to small claims court/ mediation at the court house ,not with Verizon people who work for them But are not involved with the case they say. I thing that's one of the reason that they don't want to go to a Jury trail because they know that they would lost most of the time, at least this time I'm for sure. So all the people that are out there having terrible customers service with Verizon I hope for the best for you. Please let me know how things go with your concerns with your Cell Phone Providers. I'm on FaceBook under " CUSTOMERS LIKE ME, DISLIKE VERIZON WIRELESS" again thanks so much for listening and sending me hopes that things turn out for me. Agape Patricia

    First, Verizon follows Samsung's warranty rules. The only time you would get a new phone (other than buying it) is if the device was defective within the first 14 days or if the device was so new that there would be Certified Like New Replacements available yet. Now, with that said, there is no way that 6 devices would have the same hardware problem. When you have multiple devices with the same issue it is more likely than not that the issue is software related. For example, my LG G3 was great up until I received the Lollipop update then, wouldn't you know, I stopped receiving notifications for a lot of apps while connected to wifi. This is a software issue and is not Verizon's fault. However, if you believe that you are owed a brand new phone, you should take it up with Samsung. You are just as much a customer of theirs as you are VZW's.
    Then it sounds like VZW broke the contract and gave you the option to upgrade at a discounted price and you purchased the Galaxy S5. So here, there was, as you say, a meeting of the minds. Whether you misunderstood the terms or they were not explained to you remains to be seen. However, VZW did NOT have to let you upgrade but when you do you are ALWAYS held to the new contract terms. THEN...they refunded the $40 upgrade fee for you. I still can't see how you are making out badly in this deal.
    It was hard to decipher your post and I am still not completely sure of what you are talking about with the home service.
    What do you expect to happen at this point? You won't (shouldn't) be given any more considerations. That has already been done. What it sounds like to me is that you are causing all of the stress in your life. If it is really that bad with Verizon, you are free to break your contract by paying the Early Termination Fees and switch carriers. There is nothing holding you to VZW.

  • Iphone 6 and the lies Verizon keeps pushing

    Order 2 iphone 6's on 10/08/2014 with a 10/24/2014 delivery date.  Called twice that day because I hadn't had notification and was told that it shipped and was on it's way....lies.  Called later that night talked to a very good rep and said, they werent' coming.  I got an email later stating that Verizon was "sorry" and that it would be delivered by 11/3/14.  Low and behold it is still not here, now I am being told 11/7/14 but no email.
    Verizon lied, I know it's not all there fault but they promised people phones and couldn't deliver.  If you can find an iphone 6 with a different provider until you receive your phone you can cancel the order and get out of the contract deal.  YOU DO NOT HAVE A CONTRACT UNTIL YOU RECEIVE THE PHONE.  I am going to find either an AT&T or US Cellular store that has the phones I want because they have them in stock, if you want your iphone 6 now, you can go to another provider and get one.

    I wasn't frustrated until after the 24th when I was told my phones would absolutely be there by the 3rd of November, now I'm frustrated, add to the fact I was lied to multiple times but customer service representatives that "oh it has shipped" or "you should see that by the end of the day" or "well FedEx does take time to deliver but it is there".  NO, NO, and NO.  That's the biggest issue.  Bad news is one thing, it's still the truth, but lies for the sake of placating the customer, that's just bad.  That's why I"m spreading the word, if you don't have your phone but can get it with another provider, do it, my contract is not valid until I activate that new phone as well as anyone else's that's in the same boat.  You are giving me no reason to stay, no, "hey, sorry we weren't forthcoming with delivery dates, here's 2gb of free data for being a great customer and for our dishonesty"  All I'm hearing is, "well we said some things we couldn't back up but please be patient, but well, we really don't care in the long run as you are just one person"

Maybe you are looking for