boot fails on windows - 0.11.2 - illegal path on windows

51 views
Skip to first unread message

donreeal

unread,
Apr 6, 2016, 3:02:51 PM4/6/16
to Baratine
Hey guys,


finally I found time to check out v 0.11.2 :). I think I found a bug here :(.

I've tried to get a small web-app up running - following your gradle tutorial http://doc.baratine.io/v0.11/tutorials/hello-eclipse-gradle/
=> Starting the Server on windows fails:

D:\hello-baratine-gradle>java -jar build\libs\hello-baratine-gradle-boot.jar
Exception in thread "main" java.nio.file.InvalidPathException: Illegal char <:> at index 2: /D:/hello-baratine-gradle/build/libs/hello-baratine-gradle-boot.jar
        at sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
        at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
        at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
        at sun.nio.fs.WindowsPath.parse(Unknown Source)
        at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source)
        at java.nio.file.Paths.get(Unknown Source)
        at com.caucho.v5.boot.BaratineBoot.newBootFile(BaratineBoot.java:135)
        at com.caucho.v5.boot.BaratineBoot.main(BaratineBoot.java:54)


windows: win7 32b
java version: 1.8.0_40



I've rerun my example on linux - it worked. Is it okay for you to post bugs here - or should I have used github repo?


Regards
donreeal



====================================
// Server.java
import static io.baratine.web.Web.*;

public class Server {
  public static void main(String[] args) {
    include(Login.class);
    start(args);
  }  
}

// Login.java
import io.baratine.service.Service;
import io.baratine.web.Get;
import io.baratine.web.RequestWeb;

@Service
public class Login {
  @Get("/login")
  public void get(RequestWeb req) {
    req.cookie("a-cookie", "a cookie; HttpOnly");
    req.ok("Login\n");
  }
  @Post("/login")
  public void post(RequestWeb req) {
    req.ok("Login Successful!\n");
  }
}

====================================

Scott Ferguson

unread,
Apr 6, 2016, 7:01:54 PM4/6/16
to barat...@googlegroups.com
On 4/6/16 12:02 PM, 'donreeal' via Baratine wrote:
Hey guys,


finally I found time to check out v 0.11.2 :). I think I found a bug here :(.

I've tried to get a small web-app up running - following your gradle tutorial http://doc.baratine.io/v0.11/tutorials/hello-eclipse-gradle/
=> Starting the Server on windows fails:

D:\hello-baratine-gradle>java -jar build\libs\hello-baratine-gradle-boot.jar
Exception in thread "main" java.nio.file.InvalidPathException: Illegal char <:> at index 2: /D:/hello-baratine-gradle/build/libs/hello-baratine-gradle-boot.jar

Thanks. I've confirmed it and fixed for 0.11.3 (which is probably early next week.)


        at sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
        at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
        at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
        at sun.nio.fs.WindowsPath.parse(Unknown Source)
        at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source)
        at java.nio.file.Paths.get(Unknown Source)
        at com.caucho.v5.boot.BaratineBoot.newBootFile(BaratineBoot.java:135)
        at com.caucho.v5.boot.BaratineBoot.main(BaratineBoot.java:54)


windows: win7 32b
java version: 1.8.0_40



I've rerun my example on linux - it worked. Is it okay for you to post bugs here - or should I have used github repo?

Either is fine.

-- Scott



Regards
donreeal



====================================
// Server.java
import static io.baratine.web.Web.*;

public class Server {
  public static void main(String[] args) {
    include(Login.class);
    start(args);
  }  
}

// Login.java
import io.baratine.service.Service;
import io.baratine.web.Get;
import io.baratine.web.RequestWeb;

@Service
public class Login {
  @Get("/login")
  public void get(RequestWeb req) {
    req.cookie("a-cookie", "a cookie; HttpOnly");
    req.ok("Login\n");
  }
  @Post("/login")
  public void post(RequestWeb req) {
    req.ok("Login Successful!\n");
  }
}

====================================
--
You received this message because you are subscribed to the Google Groups "Baratine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to baratine-io...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages