repeatedly getting uncaught exception in firebug - django
my project suddenly was started to throwing exception in firebug,I've not added any new thing,I'm confused,the error:
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://codeblogging.net/static/js/plugins.js :: :: line 99" data: no]
Line 0
I've just used django-tinymce in my project,but there was no problem until now,I removed the refrences to tinymce.js and tinymce-setup.js,but no difference!I really don't know what has happend!!
I finally updated firefox to 12 version and updated firebug to a compatible version,too.
Related
Logstash grok pattern to catch the first line with the string Exception
This is the an example log: 2022-01-07 11:05:01,185 [http-nio-8080-exec-526] WARN de.web.Main| = - Error while execute Request javax.servlet.ServletException: com.cg.blart.web.HttpInvocationException: Invalid tenant session at com.cg.blume.web.DispatchingServlet.doGet(DispatchingServlet.java:169) at de.jinx.lee.web.AutoDBUpgradeDispatchingServlet.lambda$doGet$0(AutoDBUpgradeDispatchingServlet.java:200) at de.jinx.lee.web.AutoDBUpgradeDispatchingServlet.addMDCKey(AutoDBUpgradeDispatchingServlet.java:297) Caused by: com.cg.blume.web.HttpInvocationException: Invalid tenant session at com.cg.blume.web.procedure.HttpSessionManager.get(HttpSessionManager.java:190) at de.jinx.lee.web.session.leeHttpSessionManager.get(leeHttpSessionManager.java:76) ... 41 more This ist the pattern so far: ^.*?Exception: +%{DATA:exception}$ The output i get is close but no cigar: "com.cg.blart.web.HttpInvocationException: Invalid tenant session". For the live of me i dont get it to match the whole line. Can you show me the way? The desired output is: javax.servlet.ServletException: com.cg.blart.web.HttpInvocationException: Invalid tenant session Here is a link for a test tool: https://grokdebug.herokuapp.com/
Solution was this pattern: (?<DATA:mps_exception>.*?(Exception:).*) It is explained here: https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html#_custom_patterns
WSO2 IS Unable to compile class for JSP
I'm using WSO2 IS 5.10 with docker and after making a change to the image, which has nothing to do with JSPs, opening the dashboard on the service provider list I see a white screen. In wso2 log I found errors like this: Servlet.service() for servlet [bridgeservlet] threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [17] in the generated java file: [/home/wso2carbon/wso2is-5.10.0/lib/tomcat/work/Catalina/localhost/ROOT/proxytemp/hc_1893914628/org/apache/jsp/application/list_002dservice_002dproviders_jsp.java] Only a type can be imported. org.wso2.carbon.identity.application.common.model.xsd.ApplicationBasicInfo resolves to a package An error occurred at line: [118] in the jsp file: [/application/list-service-providers.jsp] ApplicationBasicInfo cannot be resolved to a type 115: <% 116: String BUNDLE = "org.wso2.carbon.identity.application.mgt.ui.i18n.Resources"; 117: ResourceBundle resourceBundle = ResourceBundle.getBundle(BUNDLE, request.getLocale()); 118: ApplicationBasicInfo[] applications = null; 119: 120: String filterString = request.getParameter(ApplicationMgtUIConstants.SP_NAME_FILTER); 121: filterString = ApplicationMgtUIUtil.resolveFilterString(filterString); this disappears when restarting the image. I’d like to know what it’s due to
Codeception Allure Module error: [Doctrine\Common\Annotations\AnnotationException] The annotation "#env" ... was never imported
Our current project uses Codeception with the Codeception Allure addon and we are now seeing the following error when we run codecept run acceptance --env chrome --group banana --debug. This error began appearing a few days ago and we are unsure how to correct it. Has anyone ran into this error recently? I have found a number of old posts regarding similar issues but they have all been fixed by the project owners. [Doctrine\Common\Annotations\AnnotationException] [Semantical Error] The annotation "#env" in method LogIntoAdminCest::logIntoAdmin() was never imported. Did you maybe forget to add a "use" statement for this annotation? Exception trace: () at /vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php:54 Doctrine\Common\Annotations\AnnotationException::semanticalError() at /vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:727 Doctrine\Common\Annotations\DocParser->Annotation() at /vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:663 Doctrine\Common\Annotations\DocParser->Annotations() at /vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:354 Doctrine\Common\Annotations\DocParser->parse() at /vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php:284 Doctrine\Common\Annotations\AnnotationReader->getMethodAnnotations() at /vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php:71 Doctrine\Common\Annotations\IndexedReader->getMethodAnnotations() at /vendor/allure-framework/allure-php-api/src/Yandex/Allure/Adapter/Annotation/AnnotationProvider.php:43 Yandex\Allure\Adapter\Annotation\AnnotationProvider::getMethodAnnotations() at /vendor/allure-framework/allure-codeception/src/Yandex/Allure/Adapter/AllureAdapter.php:250 Yandex\Allure\Adapter\AllureAdapter->testStart() at n/a:n/a call_user_func() at /vendor/symfony/event-dispatcher/EventDispatcher.php:212 Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() at /vendor/symfony/event-dispatcher/EventDispatcher.php:44 Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /vendor/codeception/codeception/src/Codeception/PHPUnit/Listener.php:90 Codeception\PHPUnit\Listener->startTest() at /vendor/phpunit/phpunit/src/Framework/TestResult.php:386 PHPUnit_Framework_TestResult->startTest() at /vendor/codeception/codeception/src/Codeception/Test/Test.php:74 Codeception\Test\Test->run() at /vendor/phpunit/phpunit/src/Framework/TestSuite.php:722 PHPUnit_Framework_TestSuite->run() at /vendor/codeception/codeception/src/Codeception/PHPUnit/Runner.php:106 Codeception\PHPUnit\Runner->doEnhancedRun() at /vendor/codeception/codeception/src/Codeception/SuiteManager.php:157 Codeception\SuiteManager->run() at /vendor/codeception/codeception/src/Codeception/Codecept.php:184 Codeception\Codecept->runSuite() at /vendor/codeception/codeception/src/Codeception/Codecept.php:175 Codeception\Codecept->run() at /vendor/codeception/codeception/src/Codeception/Command/Run.php:376 Codeception\Command\Run->runSuites() at /vendor/codeception/codeception/src/Codeception/Command/Run.php:303 Codeception\Command\Run->execute() at /vendor/symfony/console/Command/Command.php:264 Symfony\Component\Console\Command\Command->run() at /vendor/symfony/console/Application.php:874 Symfony\Component\Console\Application->doRunCommand() at /vendor/symfony/console/Application.php:228 Symfony\Component\Console\Application->doRun() at /vendor/symfony/console/Application.php:130 Symfony\Component\Console\Application->run() at /vendor/codeception/codeception/src/Codeception/Application.php:103 Codeception\Application->run() at /vendor/codeception/codeception/codecept:36 run [-o|--override OVERRIDE] [-e|--ext EXT] [--report] [--html [HTML]] [--xml [XML]] [--tap [TAP]] [--json [JSON]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage [COVERAGE]] [--coverage-html [COVERAGE-HTML]] [--coverage-xml [COVERAGE-XML]] [--coverage-text [COVERAGE-TEXT]] [--coverage-crap4j [COVERAGE-CRAP4J]] [--no-exit] [-g|--group GROUP] [-s|--skip SKIP] [-x|--skip-group SKIP-GROUP] [--env ENV] [-f|--fail-fast] [--no-rebuild] [--] [<suite>] [<test>]
How to fix "InvalidSelectorError: Unable to locate an element with the xpath expression" issue?
I am trying to automate a webpage using Selenium and Python. I have used 'xpath checker - https://addons.mozilla.org/en-US/firefox/addon/xpath-checker/' in firefox and written the following code. Selenium-Python Code: def create_user(): #Click 'Administration' mydriver.find_element_by_xpath("//*[#id('main-navigation')/x:li[5]/x:a").click() mydriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); mydriver.find_element_by_xpath("//*[#id('main-navigation')/x:li[5]/x:ul/x:li[1]/x:ul[2]/x:li[2]/x:a").click() mydriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); mydriver.find_element_by_xpath("//*[#id('accordion')/x:li[2]/x:a").click() mydriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); create_user() If I execute the above, I am getting following error: InvalidSelectorException: Message: The given selector //*[#id('main-navigation') /x:li[5]/x:a is either invalid or does not result in a WebElement. The following error occurred: InvalidSelectorError: Unable to locate an element with the xpath expression //*[ #id('main-navigation')/x:li[5]/x:a because of the following error: SyntaxError: The expression is not a legal expression. Stacktrace: at FirefoxDriver.annotateInvalidSelectorError_ (file:///c:/users/admin/appda ta/local/temp/2/tmpgchoem/extensions/fxdriver#googlecode.com/components/driver-c omponent.js:10744) at FirefoxDriver.prototype.findElementInternal_ (file:///c:/users/admin/appd ata/local/temp/2/tmpgchoem/extensions/fxdriver#googlecode.com/components/driver- component.js:10775) at FirefoxDriver.prototype.findElement (file:///c:/users/admin/appdata/local /temp/2/tmpgchoem/extensions/fxdriver#googlecode.com/components/driver-component .js:10779) at DelayedCommand.prototype.executeInternal_/h (file:///c:/users/admin/appda ta/local/temp/2/tmpgchoem/extensions/fxdriver#googlecode.com/components/command- processor.js:12661) at DelayedCommand.prototype.executeInternal_ (file:///c:/users/admin/appdata /local/temp/2/tmpgchoem/extensions/fxdriver#googlecode.com/components/command-pr ocessor.js:12666) at DelayedCommand.prototype.execute/< (file:///c:/users/admin/appdata/local/ temp/2/tmpgchoem/extensions/fxdriver#googlecode.com/components/command-processor .js:12608) Could anyone please suggest some idea to fix this code.
You need extra ] to close [#id=...] block. So try mydriver.find_element_by_xpath("//*[#id='main-navigation']/x:li[5]/x:a").click() mydriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); mydriver.find_element_by_xpath("//*[#id='main-navigation']/x:li[5]/x:ul/x:li[1]/x:ul[2]/x:li[2]/x:a").click() mydriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); mydriver.find_element_by_xpath("//*[#id='accordion']/x:li[2]/x:a").click() mydriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Opencart Vqmod Error Writing Log
I want to ask opencart problem, I got this error: SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data OK {"country_id":"100","name":"Indonesia","iso_code_2":"ID","iso_code_3":"IDN" ,"address_format":"","postcode_required":"1","zone":[{"zone_id":"1507","country_id":"100","name":"Aceh","code":"Aceh","status":" 1"},{"zone_id":"1508","country_id":"100","name":"Bali","code":"Bali","statu s":"1"},{"zone_id":"1509","country_id":"100","name":"Banten","code":"Banten ","status":"1"},{"zone_id":"1510","country_id":"100","name":"Bengkulu","cod e":"BE","status":"1"},{"zone_id":"1511","country_id":"100","name":"D.I.Yogy akarta","code":"YG","status":"1"},{"zone_id":"1512","country_id":"100","nam e":"Gorontalo","code":"GO","status":"1"},{"zone_id":"1513","country_id":"10 0","name":"Jakarta","code":"Jakarta","status":"1"},{"zone_id":"1514","count ry_id":"100","name":"Jambi","code":"JA","status":"1"},{"zone_id":"1515","co untry_id":"100","name":"Jawa Barat","code":"JB","status":"1"},{"zone_id":"1516","country_id":"100","name ":"Jawa Tengah","code":"JT","status":"1"},{"zone_id":"1517","country_id":"100","nam e":"Jawa Timur","code":"JI","status":"1"},{"zone_id":"1518","country_id":"100","name ":"Kalimantan Barat","code":"KB","status":"1"},{"zone_id":"1519","country_id":"100","name ":"Kalimantan Selatan","code":"KS","status":"1"},{"zone_id":"1520","country_id":"100","na me":"Kalimantan Tengah","code":"KT","status":"1"},{"zone_id":"1521","country_id":"100","nam e":"Kalimantan Timur","code":"KI","status":"1"},{"zone_id":"1522","country_id":"100","name ":"Kepulauan Bangka Belitung","code":"BB","status":"1"},{"zone_id":"1537","country_id":"100","n ame":"Kepulauan Riau","code":"KPR","status":"1"},{"zone_id":"1523","country_id":"100","name ":"Lampung","code":"LA","status":"1"},{"zone_id":"1524","country_id":"100", "name":"Maluku","code":"MA","status":"1"},{"zone_id":"1525","country_id":"1 00","name":"Maluku Utara","code":"MU","status":"1"},{"zone_id":"1526","country_id":"100","name ":"Nusa Tenggara Barat","code":"NB","status":"1"},{"zone_id":"1527","country_id":"100","name ":"Nusa Tenggara Timur","code":"NT","status":"1"},{"zone_id":"1528","country_id":"100","name ":"Papua","code":"PA","status":"1"},{"zone_id":"3970","country_id":"100","n ame":"Papua Barat","code":"PB","status":"1"},{"zone_id":"1529","country_id":"100","name ":"Riau","code":"RI","status":"1"},{"zone_id":"3971","country_id":"100","na me":"Sulawesi Barat","code":"SR","status":"1"},{"zone_id":"1530","country_id":"100","name ":"Sulawesi Selatan","code":"SN","status":"1"},{"zone_id":"1531","country_id":"100","na me":"Sulawesi Tengah","code":"ST","status":"1"},{"zone_id":"1532","country_id":"100","nam e":"Sulawesi Tenggara","code":"SG","status":"1"},{"zone_id":"1533","country_id":"100","n ame":"Sulawesi Utara","code":"SA","status":"1"},{"zone_id":"1534","country_id":"100","name ":"Sumatera Barat","code":"SB","status":"1"},{"zone_id":"1535","country_id":"100","name ":"Sumatera Selatan","code":"SS","status":"1"},{"zone_id":"1536","country_id":"100","na me":"Sumatera Utara","code":"SU","status":"1"}],"status":"1"}<b>Warning</b>: file_put_contents(C:\xampp\htdocs\rumahjoy\vqmod/logs/Fri.log) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in <b>/home/sloki/user/h1604/sites/rumahjoy.com/www/vqmod/vqmod.php</b> on line <b>395</b>LOG FILE COULD NOT BE WRITTEN I have 2 question: First, what happen with my vqmod? It got C:\xampp (localhost). I've hosted it to server which must be /home/sloki/user/....... Second, what's wrong with JSON error? Because at localhost it works fine.
Upgrade to VQmod 2.3.2 then its solved..