|
|
Re: [File missing] Camel Route to Send and Receive Email [message #1702732 is a reply to message #1702703] |
Fri, 24 July 2015 11:30 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Hi Rajkumar,
Thanks for the files!
When I am deploying this process I am facing some errors!
Errors and Warning:
1. There is no IPPActivityInstanceOID (Warning)
2. If I ignore all the warning and deploy the process, there is execution error
![index.php/fa/22651/0/](index.php/fa/22651/0/)
Error Message Start
java.lang.IllegalArgumentException: No script engine could be created for: rhino-nonjdk
at org.apache.camel.builder.script.ScriptBuilder.createScriptEngine(ScriptBuilder.java:347)
at org.apache.camel.builder.script.ScriptBuilder.lookupScriptEngineFactory(ScriptBuilder.java:319)
at org.apache.camel.builder.script.ScriptBuilder.<init>(ScriptBuilder.java:110)
at org.apache.camel.builder.script.ScriptBuilder.<init>(ScriptBuilder.java:89)
at org.apache.camel.builder.script.ScriptLanguage.createExpression(ScriptLanguage.java:40)
at org.apache.camel.component.language.LanguageProducer.process(LanguageProducer.java:49)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:120)
Error Message End
Already a bug request has been opened ...
Bug link - https://bugs.eclipse.org/bugs/show_bug.cgi?id=428334
I tired to see the error and get the Jars files but then also I am getting the same error.
Could you please help me in regarding this?
I am using Stardust 3.0.0 on Eclipse Mars, ( in case you want to replicate the error)
I have installed an internal POP server to handle the mail being sent.
Thanks,
Kunal.
|
|
|
|
Re: [File missing] Camel Route to Send and Receive Email [message #1703225 is a reply to message #1702737] |
Wed, 29 July 2015 13:23 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Hi RajKumar,
I would like to use the approval email like in the example but I feel I may be doing something wrong while using Rhino jar thus getting 'No script engine could be created for: rhino-nonjdk' error!
Could you please be so kind to let me know step by step which jar files to download (may be there is some version issues) and where to put these jars (I currently put them in the tomcat/lib)
many thanks!
Kunal.
P.S. - Eclipse Stardust 3.0.0 Running on Tomcat 7.0.59
|
|
|
Re: [File missing] Camel Route to Send and Receive Email [message #1703255 is a reply to message #1703225] |
Wed, 29 July 2015 20:51 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Hi,
***Problem Solved***
I rechecked to see that the problem was coming due to the fact that in the producer property of 'PrepareEmailBody' camel producer application the following was given wrongly
<to uri="language:rhino-nonjdk" />
Once we change it to <to uri="language:rhino" /> the code starts to executing fine.
![Smile](images/smiley_icons/icon_smile.gif)
Extra Info
Also since JDK 1.7, Mozilla Rhino JS Engine has been included as default, thus I assume we do not even need to add any jars.
From website, Quote:Oracle's implementation of JDK 7 is co-bundled with the Mozilla Rhino based JavaScript engine which can be used in conjunction with javax.script (JSR-223) API.
But still the Rhino jar can be found from link -https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/Download_Rhino
Many Thanks!
Kunal.
|
|
|
|
|
Re: [File missing] Camel Route to Send and Receive Email [message #1708660 is a reply to message #1708658] |
Fri, 18 September 2015 13:19 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Hi Ajay,
Normally what procedure I follow to remove this error is : (Using the XPDL file in Eclipse and not on Web Portal)
1. Go to your Camel Application
2. General Tab -> Producer Route
3. Search for <to uri="language:rhino-nonjdk" />
4. Remove the "-nonjdk" thus making it look like <to uri="language:rhino" /> and then it most probably should work fine.
Regards,
Kunal.
|
|
|
|
Re: [File missing] Camel Route to Send and Receive Email [message #1708664 is a reply to message #1708661] |
Fri, 18 September 2015 13:35 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Hey Ajay,
I am sorry but I have no idea how to do this in the Web Portal.
What I can suggest as a temporary solution is as follows:
1. From the Web Portal, download the Process Model (It will be in XPDL format)
2. Open the model in Eclipse.
3. On the Right hand side you would be able to see Applications
and there you would be able to see the name of your Script.
4. Then follow what I said before.
Let me know if it works, otherwise you would have to wait till someone from Stardust Team replies.
Regards,
Kunal.
|
|
|
|
|
Re: [File missing] Camel Route to Send and Receive Email [message #1708807 is a reply to message #1708801] |
Mon, 21 September 2015 11:48 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Hey Ajay,
I am happy it works for you. ![Smile](images/smiley_icons/icon_smile.gif)
I don't think there would be any permanent change possible as I suppose that once you open the script in browser, the browser would use its internal default lib and that has the 'nonjdk' part.
What I suggest is that you create your entire process etc and just before deploying the process, change those scripts in eclipse.
Regards,
Kunal.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04674 seconds