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
java.util.concurrent.TimeoutException | |
at br.com.eb.peer.AbstractItem.waitResponse(AbstractItem.java:84) | |
at br.com.eb.peer.RestfulPeerController.listDirectories(RestfulPeerController.java:310) | |
at br.com.ws.p2p.LoginResource.getListDirectories(LoginResource.java:64) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:168) | |
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:70) |
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 static void main(String[] args) throws JSONException { | |
JSONObject obj = new JSONObject(); | |
obj.put("id", 24); | |
obj.put("name", "Marco"); | |
obj.put("namorados", new JSONArray() | |
.put( new JSONObject().put("name", "Paulo") ) | |
.put( new JSONObject().put("name", "Lenin") ) | |
); | |
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
cLast login: Wed Mar 7 15:34:26 on ttys006 | |
rafarocha:client 2 rafaelrocha$ java -jar p2p_client.jar 81 | |
17:35:58 [main] br.com.eb.app.client.AppClient initializing - (AppClient.java:28) | |
17:35:58 [main] Creating one PeerId control... - (ClientNodeController.java:25) | |
17:35:58 [main] Removing cache files... - (JxtaNode.java:67) | |
17:35:58 [main] HTTP PORT: 2687 - (JxtaNode.java:108) | |
17:35:58 [main] Adding seeds... - (JxtaNode.java:115) | |
17:35:58 [main] RENDEZVOUS URL: http://172.27.251.71:9901 - (JxtaNode.java:127) |
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
// código cliente android afim pegar dados server | |
WebResource resource = Client.create().resource( SERVER_URI ); | |
MultivaluedMap<String, String> map = new MultivaluedMapImpl(); | |
GenericType<JAXBElement<FileDataList>> listDataType = new GenericType<JAXBElement<FileDataList>>() {}; | |
JAXBElement<FileDataList> jaxbContact = content | |
.path("/login/listFiles/") | |
.accept(MediaType.APPLICATION_JSON).entity(map) | |
.post(listDataType); | |
System.out.println( jaxbContact.getValue() ); |
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
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accessController' defined in file [/Users/rafaelrocha/Documents/workspace/ustore/p2p_server/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [br.com.eb.server.access.AccessController]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String; | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:939) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:883) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.j |
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 static void main(String[] args) { | |
String[] names = new String[] { "um", "dois", "tres", "quatro", "cinco"}; | |
List<A> aaa = new ArrayList<A>(); | |
List<A> bbb = new ArrayList<A>(); | |
for (int i = 0, j = names.length-1; i < names.length; i++, j--) { | |
aaa.add( new A(names[i]) ); | |
bbb.add( new A(names[j]) ); | |
} | |
bbb.remove(0); |
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
java.lang.NullPointerException | |
at org.springframework.data.neo4j.fieldaccess.RelationshipEntities.<init>(RelationshipEntities.java:46) | |
at org.springframework.data.neo4j.fieldaccess.RelatedToViaCollectionFieldAccessorFactory$RelatedToViaCollectionFieldAccessor.<init>(RelatedToViaCollectionFieldAccessorFactory.java:74) | |
at org.springframework.data.neo4j.fieldaccess.RelatedToViaCollectionFieldAccessorFactory.forField(RelatedToViaCollectionFieldAccessorFactory.java:56) | |
at org.springframework.data.neo4j.fieldaccess.FieldAccessorFactoryProviders$FieldAccessorFactoryProvider.accessor(FieldAccessorFactoryProviders.java:48) | |
at org.springframework.data.neo4j.fieldaccess.FieldAccessorFactoryProviders.getFieldAccessors(FieldAccessorFactoryProviders.java:78) | |
at org.springframework.data.neo4j.fieldaccess.DefaultEntityState.<init>(DefaultEntityState.java:52) | |
at org.springframework.data.neo4j.support.node.NodeEntityState.<init>(NodeEntityState.java:38) | |
at org.springframework.data.neo4j.support.node.NodeEntityStateFact |
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
Download: 3artigo_dengue_hemorragica.pdf | |
05:48:48 [FileManagerAgent] [RUN] FileManagerAgent - GET_INFO3artigo_dengue_hemorragica.pdf - (AbstractAgent.java:79) | |
05:48:48 [FileManagerAgent] [RUN] FileManagerAgent - GET_INFO3artigo_dengue_hemorragica.pdf - (AbstractAgent.java:79) | |
#_#_#_#_#_#_#_# | |
Chosen this time: urn:jxta:uuid-59616261646162614E50472050325033434E313333314233B234B73538333103 | |
Chosen last time: null | |
Equals? false | |
All adresses: [urn:jxta:uuid-59616261646162614E50472050325033434E313333314233B234B73538333103] | |
#_#_#_#_#_#_#_# | |
05:48:55 [pool-2-thread-5] Operation completed (GET_INFO3artigo_dengue_hemorragica.pdf). - (AbstractAgent.java:114) |
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
BOLA.PRETA | |
@Path("/files") class { | |
@GET @Path("/directories") directories(Map map) { | |
injetar strategy >>> [controller, resource ] | |
manipular conteudo via command >>> … | |
} | |
@GET @Path("/list") list(Map map) {} | |
@GET @Path("/download") | |
@PUT @Path("/upload") upload(Map map) {} | |
@DELETE @Path("/remove") remove(Map map) {} |
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
enum MappingCallerControllers { | |
UnitTesting(RoutingDatasourceTest.class, new String[] { "injectSessionFactory" }); | |
private MappingCallerControllers(Class<?> klazz, String[] methods) { | |
this.klazz = klazz; | |
this.methods = methods; | |
} | |
private Class<?> klazz; |