Skip to content

Instantly share code, notes, and snippets.

String binarySolo = "01001001 01100110 00100000 01111001 01101111 01110101 00100000 01100011 01100001 01101110 00100000 01110010 01100101 01100001 01100100 00100000 01110100 01101000 01101001 01110011 00101100 00100000 01111001 01101111 01110101 00100000 01100001 01110010 01100101 00100000 01110101 01101110 01100101 01101101 01110000 01101100 01101111 01111001 01100101 01100100";
for (String seg : binarySolo.split(" ")) {
System.out.print((char)Integer.parseInt(seg, 2));
}
This is without having a file name pattern match filter
FATAL [org.apache.camel.component.file.remote.FtpConsumer:CamelThread 4] - <Consumer Consumer[ftp://sms02@localhost:2121/autreq/ok?delay=5000&maxMessagesPerPoll=50&move=.processed&passiveMode=true&password=sms02] could not poll endpoint: ftp://sms02@localhost:2121/autreq/ok?delay=5000&maxMessagesPerPoll=50&move=.processed&passiveMode=true&password=sms02 caused by: Java heap space>
java.lang.OutOfMemoryError: Java heap space
at java.util.concurrent.ConcurrentHashMap.<init>(ConcurrentHashMap.java:613)
at java.util.concurrent.ConcurrentHashMap.<init>(ConcurrentHashMap.java:652)
at org.apache.camel.impl.DefaultExchange.getProperties(DefaultExchange.java:168)
at org.apache.camel.impl.DefaultExchange.setProperty(DefaultExchange.java:153)
FATAL [org.apache.camel.component.file.remote.FtpConsumer:CamelThread 5] - <Consumer Consumer[myFtpEndpointURI] could not poll endpoint: myFtpEndpointURI caused by: org/apache/camel/impl/LoggingExceptionHandler>
java.lang.NoClassDefFoundError: org/apache/camel/impl/LoggingExceptionHandler
at org.apache.camel.impl.DefaultConsumer.getExceptionHandler(DefaultConsumer.java:58)
at org.apache.camel.impl.DefaultConsumer.handleException(DefaultConsumer.java:88)
at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:277)
at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:137)
at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:98)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndRe
FATAL [org.apache.camel.component.file.remote.FtpConsumer:CamelThread 4] - <Consumer Consumer[myFtpEndpointURI] could not poll endpoint: myFtpEndpointURI caused by: org/apache/camel/util/ObjectHelper$ExceptionIterator>
java.lang.NoClassDefFoundError: org/apache/camel/util/ObjectHelper$ExceptionIterator
at org.apache.camel.util.ObjectHelper.createExceptionIterator(ObjectHelper.java:1158)
at org.apache.camel.processor.exceptionpolicy.DefaultExceptionPolicyStrategy.createExceptionIterator(DefaultExceptionPolicyStrategy.java:205)
at org.apache.camel.processor.exceptionpolicy.DefaultExceptionPolicyStrategy.getExceptionPolicy(DefaultExceptionPolicyStrategy.java:65)
at org.apache.camel.processor.ErrorHandlerSupport.getExceptionPolicy(ErrorHandlerSupport.java:84)
at org.apache.camel.processor.RedeliveryErrorHandler.handleException(RedeliveryErrorHandler.java:270)
at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:101)
// fails when the ftp server's idle timeout is less than the delay...
from("ftp://blah?move=.processed")
.to("bean:fileParser")
.delay(20 * 1000)
.beanRef("conanCore", "updateOperationOk")
;
// Router config....
from("direct:pairing")
.setHeader(Exchange.FILE_NAME, BeanLanguage.bean(FilenameGenerator.class, "generatePairingFilename"))
.to("velocity:/conax/Pairing.vm")
.to(conaxDestinationURI);
// conaxDestinationURI = "ftp://conaxTest@localhost:2121/autreq/req?passiveMode=true&password=conaxTest&tempFileName=${file:name}.tmp"
$ git pull origin usbmaster --dry-run
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 25 (delta 8), reused 0 (delta 0)
Unpacking objects: 100% (25/25), done.
From github.com:karlp/karlnet
* branch usbmaster -> FETCH_HEAD
There are no candidates for merging among the refs that you just fetched.
Generally this means that you provided a wildcard refspec which had no
matches on the remote end.