This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEVERE: A message body writer for Java class conman.entities.User, and Java type class conman.entities.User, and MIME media type application/json was not found | |
May 22, 2011 11:17:06 PM com.sun.jersey.spi.container.ContainerResponse write | |
SEVERE: The registered message body writers compatible with the MIME media type are: | |
application/json -> | |
com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$App | |
com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$App | |
com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$App | |
com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$App | |
com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$App | |
*/* -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEVERE: Exception starting filter addCacheHeadersFilter | |
java.lang.ExceptionInInitializerError | |
at jetbrains.buildServer.web.AddCacheHeadersFilter.<clinit>(AddCacheHeadersFilter.java:6) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) | |
at java.lang.Class.newInstance0(Class.java:355) | |
at java.lang.Class.newInstance(Class.java:308) | |
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Api : Restish | |
{ | |
Api() | |
{ | |
Get("/customers", (req, res) => | |
{ | |
return View(new[] | |
{ | |
new { name = "Charles" } | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyClassMap: ClassMap<MyClass> | |
{ | |
public MyClassMap() | |
{ | |
Id(x => x.Id) | |
.Column("MyClassId") | |
.GeneratedBy.HiLo("100"); | |
Map(x => x.Something) | |
.Length(150); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Path("/customers") | |
class CustomerResource { | |
@GET | |
@Produces(Array(MediaType.APPLICATION_JSON)) | |
@Path("{id}") | |
def getJson(@PathParam("id") id: Int) = | |
"Id requested was: " + id.toString() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Path("/customers") | |
class CustomerResource { | |
@GET | |
def get = | |
"[{ 'name': 'James' }, { 'name': 'Gregory' }]" | |
@GET | |
def get(id) = | |
"{ 'name': 'James' }" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyEnum | |
{ | |
public static readonly MyEnum Value1 = new MyEnum("value1"); | |
public static readonly MyEnum Value2 = new MyEnum("value2"); | |
readonly string name; | |
MyEnum(string name) | |
{ | |
this.name = name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Establish context = () => | |
controller = Container.Resolve<OrderController>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.post '/buy', (req, res) -> | |
googleCheckout.sendInitialOrderRequest req, (redirectUrl) -> | |
res.redirect redirectUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git status: | |
# On branch master | |
# Changes to be committed: | |
# (use "git reset HEAD <file>..." to unstage) | |
# | |
# renamed: file -> elif | |
# | |
commit: |