I am trying to send plain text data to graphite server with the following code:

```
      try (
            Socket socket = new Socket("companyHost", 2003);
            Writer writer = new OutputStreamWriter(socket.getOutputStream());) {

        Long timestamp = System.currentTimeMillis() / 1000;
        System.out.println(timestamp);

        String sentMessage = "graphite.carbon.local.test.showone 1 " + timestamp;
        System.out.println(sentMessage);
        writer.write(sentMessage);
        writer.flush();

    } catch (IOException e) {

        e.printStackTrace();
    }

```

But when i check the carbon server under companyHost:port in my web browser, my data isn't there, there is nothing under graphite.carbon.local. Am I missing anything?

My output in the console seems ok (No errors/exceptions):

```
1409233165
graphite.carbon.local.test.showone 1 1409233165

```

I will try to provide more information if necesarry.