please Help me with this....
How can I add post data to URLRequest
getlex QName(PackageNamespace("flash.net"), "navigateToURL")
getglobalscope
findpropstrict QName(PackageNamespace("flash.net"), "URLRequest")
pushstring "http://hladino.com/api/camera/upload.php"
constructprop QName(PackageNamespace("flash.net"), "URLRequest"), 1
pushstring "_self"
call 2
pop
Related
I have route for file processing something like below,
fromF("file:in?recursive=false&noop=true&maxMessagePerPoll=10&readLock=idempotent&idempotentRepository=#fileRepo#readLockRemoveOnCommit=readLockRemoveOnRollback=true&delete=true&moveFailed=failedDir")
.onCompletion()
.process("CompletionProcess")
.end()
.threads(5)
.processe("fileProcess")
.nd();
cCurrently when it receives shutdown it waits 45secs and if it's not completed within 45 secs it goes forceshutdown and that time it call onCompletion(CompletionProcess). I have a code to update DB in CompletionProcess and because of that it throws ConfigurationPropertiesBindException as ....ApplicationContext has been closed already. and the file got move to failedDir.
My goal is to stop the route after 45 secs without any roll back, no onCompletion call, and file is as it is in dir.
I am pretty new to camel and trying to understand rollback stragety/shutdown strategy but can't find a solution for above yet. Please guide me.
Thanks!
Error Message: There was an error parsing the feed. Please ensure that
the feed is valid JSON or RSS.
Please look into the code below:
[
{
"uid": "urn:uuid:99098951-c0b1-4881-b3f9-b07d49f594a9",
"updateDate": "2019-02-1T21:22:14.0Z",
"titleText": "A hello world audio clip",
"mainText": "",
"streamUrl": "https://feeds.feedburner.com/ndtvsports-cricket",
"redirectionUrl": "https://www.ndtv.com/rss"
},
{
"uid": "urn:uuid:a687993c-5664-4261-a938-79a8526097db",
"updateDate": "2019-02-1T23:57:33.0Z",
"titleText": "A hello world audio clip",
"mainText": "",
"streamUrl": "https://feeds.feedburner.com/ndtvcooks-latest",
"redirectionUrl": "https://www.ndtv.com/rss"
}
]
i have create a json file of the above code and uploaded into S3 bucket of aws.amazon.com
After the i copied the path of the file and than paste in the actual code.
Finally when i deploy with code. I get an error message...
Please help with it...
Goal to create an audio flash briefing skill without using alexa template.
even if i put same path in developer portal by using template.. i ended up with same error message.
please help to resolve this or suggest me on add more than one feed.
Try to adopt your URL. Seems that your are not using the real rss path but some website which is build around.
Try an url like this:
https://feeds.feedburner.com/ndtvsports-cricket?fmt=xml
See: Getting raw XML data from a Feedburner RSS feed
You need to give a real rss path and not a path to a website which is showing a feed. (details here: https://developer.amazon.com/docs/flashbriefing/flash-briefing-skill-api-feed-reference.html)
I've been working with WAMP for 2 years now and it's the first time I got this problem. I created a new website base with Symfony, and now I'm adding some files to it in Windows (by creating a bundle in a console) but it doesn't appear in the browser in localhost even I refresh it, so when I go in /web, I got those errors like these :
( ! ) Fatal error: Uncaught Error: Class 'SNS\PlatformBundle\SNSPlatformBundle' not found in D:\wamp\www\sns_symfony\sns_symfony\app\AppKernel.php on line 20
( ! ) Error: Class 'SNS\PlatformBundle\SNSPlatformBundle' not found in D:\wamp\www\sns_symfony\sns_symfony\app\AppKernel.php on line 20
Call Stack
# Time Memory Function Location
1 0.0010 385736 {main}( ) ...\app.php:0
2 0.0070 418000 AppKernel->handle( ) ...\app.php:19
3 0.0070 418000 AppKernel->boot( ) ...\Kernel.php:195
4 0.0070 418000 AppKernel->initializeBundles( ) ...\Kernel.php:132
5 0.0070 417952 AppKernel->registerBundles( ) ...\Kernel.php:492
Can someone help me please ? ^^'
I'll explain myself more. I used the bundle generator of Symfony so I dind't write anything, juste used the console. By the way there is some folders that WAMP can't see (I don't see them in the browser in localhost) and the file he's looking for are in those folders he can't see. There is the problem.
First of all, double check if the bundle really exists on your hard drive. You're on Windows, so just go to D:\wamp\www\sns_symfony\sns_symfony\src and check if there's a PlatformBundle\SNSPlatformBundle.php in your src dir. If not - now you know the generator didn't generate anything. Maybe accidentally aborted?
Then check if you have right PSR-0 or PSR-4 (most likely ) namespace in your composer.json file. You can run php composer validate to see warnings.
And as the last step run composer dump-autoload which updates the autoload file
Finally I found the solution after hours of deeps researches. Here it is :
Create the bundle
Edit your app/config/config.yml file like (add templating: engines ['twig'] in framework:)
framework:
templating:
engines: ['twig']
Thanks for help people ! :D
SOLVED !
Is it possible to create/extend a CakePHP Exception handler which shows the url the user tried to access which throws the exception?
Usually when I look into my error.log file I see something like this:
2012-08-01 13:39:20 Error: [MissingControllerException] Controller class UserController could not be found.
#0 /www/htdocs/w0081e0e/app/webroot/index.php(104): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
I have a working UsersController but I'm not sure which url the user tried to access which in return throw this error. It would help me to see the url in the error.log file. Is that possible? Would I have to create/extend an exception handling file?
Update:
Instead of writing my own ExceptionHandler I just updated the "handleException" function in "lib/Cake/Error/ErrorHandler.php":
if (!empty($config['log'])) {
$message = sprintf("[%s] %s\n%s",
get_class($exception),
$exception->getMessage(),
$exception->getTraceAsString().' - http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\n"
);
CakeLog::write(LOG_ERR, $message);
}
I know that this is overwritten once I update my CakePHP Version but its a quick fix that works really fine for my situation.
You can write your own exception handlers. It's pretty well documented at http://book.cakephp.org/2.0/en/development/exceptions.html#create-your-own-exception-handler-with-exception-handler
Anyway the URL seems to be like http://something/user/something. The error says UserController could not be found, which is true as you only have a UsersController (plural). If you just want to avoid this error it might be enough to find the file which creates a /user/ URL.
I am using cakePHP 1.26 and TinyMCE v3.38.
The .js file of the TinyMSC is stored under this directory:
http://www.mysite/js/tiny_mce/tiny_mce.js
In the page where the users can post new topic,
the URL of this page is like this:
http://www.mysite/user/newpost
Now I need to add the javascript to this page, and I have tried these:
echo $javascript->link('/js/tiny_mce/tiny_mce.js');
echo $javascript->link('js/tiny_mce/tiny_mce.js');
echo $javascript->link('../js/tiny_mce/tiny_mce.js');
But the tiny_mce.js can not be reached.
I believe that Cake already knows that your javascript is in /js/ through using the $javascript->link() structure in the first place - so try
echo $javascript->link('tiny_mce/tiny_mce.js');
and see if you get anywhere.