Shane Burgel

Ranch Hand
+ Follow
since Sep 09, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shane Burgel

I tried setting this up for my project and it appears to work in the sense that a request is placed back on the queue if I kill the tomcat before it finishes, but if I let it run I get an exception. The only thing I changed was adding the jms transaction line below to a service that otherwise works fine. Is there a bug in Mule 2 or is there something else I need to do?



The exception:

ERROR [asyncDelivery4][2012-10-18 13:52:21,123] - org.oclc.mule.interceptors.FaultHandlingInterceptor Invocation failed: org.mule.api.service.ServiceException: Component that caused exception is: SedaService{ChangeServiceAnyXml}. Message payload is of type: JMSTextMessage at org.mule.component.DefaultLifecycleAdapter.invoke(DefaultLifecycleAdapter.java:216) at org.mule.component.AbstractJavaComponent.invokeComponentInstance(AbstractJavaComponent.java:83) at org.mule.component.AbstractJavaComponent.doInvoke(AbstractJavaComponent.java:74) at org.mule.component.AbstractComponent.invokeInternal(AbstractComponent.java:133) at org.mule.component.AbstractComponent.intercept(AbstractComponent.java:93) at org.mule.component.ComponentInterceptorInvoker.invoke(ComponentInterceptorInvoker.java:52) at org.mule.interceptor.InterceptorStack$Invoc.invoke(InterceptorStack.java:70) at org.mule.api.interceptor.Invocation$invoke.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at org.oclc.mule.interceptors.FaultHandlingInterceptor.intercept(FaultHandlingInterceptor.groovy:39) at org.mule.interceptor.InterceptorStack$Invoc.invoke(InterceptorStack.java:65) at org.mule.api.interceptor.Invocation$invoke.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at org.oclc.mule.interceptors.StatsLoggingInterceptor.intercept(StatsLoggingInterceptor.groovy:37) at org.mule.interceptor.InterceptorStack$Invoc.invoke(InterceptorStack.java:65) at org.mule.interceptor.InterceptorStack.intercept(InterceptorStack.java:46) at org.mule.component.ComponentInterceptorInvoker.invoke(ComponentInterceptorInvoker.java:48) at org.mule.component.AbstractComponent.invoke(AbstractComponent.java:165) at org.mule.service.AbstractService.invokeComponent(AbstractService.java:921) at org.mule.model.seda.SedaService.doSend(SedaService.java:256) at org.mule.service.AbstractService.sendEvent(AbstractService.java:499) at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:359) at org.mule.routing.inbound.DefaultInboundRouterCollection.send(DefaultInboundRouterCollection.java:228) at org.mule.routing.inbound.DefaultInboundRouterCollection.route(DefaultInboundRouterCollection.java:188) at org.mule.transport.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:382) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:258) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:203) at org.mule.transport.AbstractReceiverWorker$1.doInTransaction(AbstractReceiverWorker.java:147) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:117) at org.mule.transport.AbstractReceiverWorker.doRun(AbstractReceiverWorker.java:165) at org.mule.transport.AbstractReceiverWorker.run(AbstractReceiverWorker.java:67) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at org.mule.work.SyncWorkExecutor.doExecute(SyncWorkExecutor.java:41) at org.mule.work.MuleWorkManager.executeWork(MuleWorkManager.java:287) at org.mule.work.MuleWorkManager.doWork(MuleWorkManager.java:180) at org.mule.transport.jms.MultiConsumerJmsMessageReceiver$SubReceiver.onMessage(MultiConsumerJmsMessageReceiver.java:316) at com.ibm.mq.jms.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:2969) at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:406) at java.lang.Thread.run(Thread.java:619)
11 years ago
Ok I tried that and I still got the same error. Do you need to register a security manager for JConsole somehow?

Also in the case of the permission file, do you just specify the package that your code is in?
13 years ago
Well for starters you need to change your check for the whitespace after a punctuation mark. It might not always be one space. It could also include a return or something like that. Use "([\\?!\\.]\\s*)([a-z])"

As for the first character of the first sentence, I messed around a little and couldn't find a regex that would get that and the other sentences easily. I suggest just grabbing the first alpha character in the string and checking its' case manually and then running your regex.

13 years ago
I'm trying to implement the solution described here

I have everything configured to where I can see my log changing methods in the JConsole, but when I try to run one of them, I get an error that it can't find that class that contains the methods ("Log4jMBean" as described in the description linked above)

I already had to augment the path of JConsole to include the jms, groovy, and asm jars in order to get this far.

I'm not sure where to go from here.

13 years ago
LOL, here's a hint. It's encoded using a Vigenere Cipher.
13 years ago
Yep, it's not a shift. It's polyalphabetic. Keep trying!
13 years ago
Can you figure out how to decrypt this?

(I got bored and wrote an encryption program today that uses a standard technique and if you are anything like me you love puzzles so here you go)

xmzzxprpxrwhfgimafbtreazsmef
jvujweeuwlgkmnnwxwieegmilnnv
pvkkmaomqyzcufuqiwbnfvzkvhmr
tboumrnoyaaeigzxxgoiqfnujmhr
dwsehnqfnkfvecswsgmegimmwgee
btcwefnsmgfwsrdcxwmhrctkklia
hauxeiofzzqmobvzywevrtitvhue
qwylxrvugjghrqbqtsgdrtbgteif
ibnalcboazamugjwtxhrgimafbtr
eazsmefpngexrvdi
13 years ago
I tried using Woodstox instead of STaX and it seems to be working correctly.
What implementation of XMLStreamReader do you get? Which Location implementation?

I'm using groovy, I guess I should have said that up front. That is why I'm getting the codehaus implementation.
What is Sun's implementation of this?

Thanks for your help btw
My location object is an MXParser and the correct number can be obtained by added the bufAbsoluteStart value with the number that is returned.

How do I get the Location instance to return THAT number?

Karthik Shiraly wrote:Are you using a BufferedInputStream around a FileInputStream?



I found that after my last post but I can't seem to get the correct index from it.

With my byte by byte parser I get this as my first ten offsets:
[3235, 6467, 9699, 12931, 16163, 19395, 22627, 25859, 29091, 32323, 35555]

The location object gives me this. They aren't even in order and I know for a fact that there are none before 3235, so why are there numbers lower than that?
[3235, 6467, 1513, 4745, 7977, 3025, 6257, 1302, 4534, 7766, 2810]

Here is my code:

On second glance that won't work for me. I need the index, not the line number and column number.

Any other ideas?