SeleniumRC Script error - selenium-browserbot.js - selenium-rc

Problem:
In our application, we have same locators(id) for submit images (link + form submit) in Popup and main window. Main window submit image executes two javascript functions for click event. While trying through selenium, I'm getting following selenium error and submit action not happened. Unable to process, even if I clicked manually on the browser, which was opened by Selenium. But this scenario is working fine if I do manually end to end.
I tried with FormSubmit and ClickAt..No luck... Any trick/solution?
I found similar thread without any solution --> Selenium RC - selenium-browserbot.js error (http://stackoverflow.com/questions/2380543/selenium-rc-selenium-browserbot-js-error)
Environment:
Browser: IE8
Java: Sun Microsystems Inc. 16.0-b13
OS: Windows XP 5.1 x86
Selenium RC- selenium-server-1.0.3
Selenium Error Message
An error has occured in the script on this page
Line: 2120
Char: 9
Error: Permission denied
Code: 0
URL: file:///C:/DOCUME~1/script1/LOCALS~1/Temp/customProfileDira540839f44a5460e8f29cdcb8f3632a7/core/scripts/selenium-browserbot.js
Do you want to continue running scripts on this page?
HTML Source
<A onmouseover="imgOn('cmdSubmitbutton', 'submit');" onmouseout="imgOff('cmdSubmitbutton', 'submit');" onclick="return verifyAttachmentJS();submitOrder();" href="javascript:void(0);"><IMG title="Submit this form." border=0 name=cmdSubmitbutton src="/webtop/images/buttons/submit_off.gif"> </A>
selenium RC command history
type(desc1, asdasdas)
click(cmdAttachbutton)
click(cmdSubmitbutton)
click(cmdFinishbutton)
selectWindow(null)
type(ORD_TrackingNbr, 6666)
isElementPresent(cmdSubmitbutton)
clickAt(cmdSubmitbutton, 20,8)
Selenium Log Console
info(1331131785603): Executing: |type | findCnum | ABCDP60 |
info(1331131789088): Executing: |click | gobutton | |
error(1331131792666): Caught an exception attempting to log location; this should get noticed soon!
error(1331131792666): Unexpected Exception: Permission denied
error(1331131792666): Exception details: name -> Error, number -> -2146828218, description -> Permission denied, message -> Permission denied
info(1331131795494): Executing: |selectFrame | relative=up | |
info(1331131796275): Executing: |selectFrame | relative=up | |
info(1331131797056): Executing: |getLocation | | |
info(1331131797494): Executing: |click | xpath=//a[#id="ABCDP60" or #name="ABCDP60" or #href="ABCDP60" or normalize-space(descendant-or-self::text())="ABCDP60" or #href="http://172.18.70.63/webtop/ABCDP60"] | |
error(1331131806338): Caught an exception attempting to log location; this should get noticed soon!
error(1331131806338): Unexpected Exception: Permission denied
error(1331131806338): Exception details: name -> Error, number -> -2146828218, description -> Permission denied, message -> Permission denied
info(1331131808056): Executing: |click | //form[#id='form1']/table/tbody/tr/td[6]/a[4]/font/b | |
info(1331131815478): Executing: |click | cmdZipbutton | |
error(1331131815712): Caught an exception attempting to log location; this should get noticed soon!
error(1331131815712): Unexpected Exception: Permission denied
error(1331131815712): Exception details: name -> Error, number -> -2146828218, description -> Permission denied, message -> Permission denied
info(1331131835384): Executing: |selectWindow | name=attachdoc | |
info(1331131865634): Executing: |type | desc1 | asdasdas |
info(1331131876431): Executing: |click | cmdAttachbutton | |
info(1331131882290): Executing: |click | cmdSubmitbutton | |
info(1331131888290): Executing: |click | cmdFinishbutton | |
info(1331131894196): Executing: |selectWindow | null | |
info(1331131894306): Executing: |type | ORD_TrackingNbr | 6666 |
info(1331131898399): Executing: |isElementPresent | cmdSubmitbutton | |
info(1331131902290): Executing: |clickAt | cmdSubmitbutton | 20,8 |
info(1331132070023): Done appending missed logging messages
error(1331132070023): Caught an exception attempting to log location; this should get noticed soon!
error(1331132070023): Unexpected Exception: Permission denied
error(1331132070039): Exception details: name -> Error, number -> -2146828218, description -> Permission denied, message -> Permission denied
error(1331132115492): Caught an exception attempting to log location; this should get noticed soon!
error(1331132115492): Unexpected Exception: Permission denied
error(1331132115492): Exception details: name -> Error, number -> -2146828218, description -> Permission denied, message -> Permission denied

Related

ERROR: nxp-wlan-sdk-git-r0 do_compile: oe_runmake failed and /bin/sh: 1: scripts/mod/modpost: Permission denied

when I am creating image first time for imx8mm board via these command 
$source sources/poky/oe-init-build-env
`$bitbake phytec-qt5demo-image
it is showing ERROR: nxp-wlan-sdk-git-r0 do_compile: oe_runmake failed   , and 
/bin/sh: 1: scripts/mod/modpost: Permision denied .
typehost#host-OptiPlex-3010:~/yocto_imx8mm/yocto_source/build$ bitbake phytec-qt5demo-image
Loading cache: 100% |#################################################################################################| Time: 0:00:00 Loaded 5018 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies`
Build Configuration:
BB_VERSION = "1.44.0"
BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-phytec-linux" MACHINE = "phyboard-polis-imx8mm-3"
DISTRO = "yogurt-vendor-xwayland" `DISTRO_VERSION = "BSP-Yocto-FSL-i.MX8MM-PD21.1.0" `TUNE_FEATURES = "aarch64 cortexa53 crc crypto" `TARGET_FPU = "" `meta `meta-poky = "HEAD:d88d62c20d7d8da85f02edb170dae0280624ad7e" `meta-oe `meta-networking `meta-python `meta-multimedia `meta-filesystems `meta-perl `meta-gnome = "HEAD:2b5dd1eb81cd08bc065bc76125f2856e9383e98b" meta-bsp
meta-sdk meta-ml = "HEAD:63665ab70ca609451533101cded2a620b340768c"
meta-browser = "HEAD:ee3be3b5986a4aa0e73df2204a625ae1fe5df37e" meta-clang = "HEAD:711e593d5984aad3bf35c51b7ac4482982bc16c7"
meta-freescale = "HEAD:14f1a630a47375432f93c556927b879b51d84c4e" meta-freescale-3rdparty = "HEAD:dbcc686f52c3c84db8cb86aa8973a4e373651b98"
meta-freescale-distro = "HEAD:ca27d12e4964d1336e662bcc60184bbff526c857" meta-phytec = "HEAD:dcb4b2b9ddf26649f4487c07c3250b3d8233893b"
meta-qt5 = "HEAD:21ce4c124d9a972d9122f87c64ac2773bf04c284" meta-rauc = "HEAD:cc7d622b2d49c8c7d426bb9965ad1d58806ef52f"
meta-rust = "HEAD:53bfa324891966a2daf5d36dc13d4a43725aebed" meta-python2 = "HEAD:4400f9155ec193d028208cf0c66aeed2ba2b00ab"
meta-yogurt = "HEAD:12d36b8433d4730dbf7445bfac2b5cea618d94fd" meta-security
`meta-tpm = "HEAD:52e83e6b7e57bf352fd6770466996530dece3da5"
Initialising tasks: 100% |############################################################################################| Time: 0:00:03 Sstate summary: Wanted 1478 Found 0 Missed 1478 Current 909 (0% match, 38% complete)
NOTE: Executing Tasks NOTE: Setscene tasks completed
`ERROR: nxp-wlan-sdk-git-r0 do_compile: oe_runmake failed
``ERROR: nxp-wlan-sdk-git-r0 do_compile: Execution of '/home/host/yocto_imx8mm/yocto_source/build/tmp/work/aarch64-phytec-linux/nxp-wlan-sdk/git-r0/temp/run.do_compile.9800' failed with exit code 1:
`make[1]: Entering directory '/lib/modules/5.4.0-59-generic/build'
` Building modules, stage 2.
` MODPOST 0 modules
`/bin/sh: 1: scripts/mod/modpost: Permission denied
`scripts/Makefile.modpost:93: recipe for target '__modpost' failed
`make[2]: *** [__modpost] Error 126
`Makefile:1670: recipe for target 'modules' failed
`make[1]: *** [modules] Error 2
`make[1]: Leaving directory '/lib/modules/5.4.0-59-generic/build'
`Makefile:412: recipe for target 'default' failed
`make: *** [default] Error 2
`WARNING: exit code 1 from a shell command.
``
`ERROR: Logfile of failure stored in: `/home/host/yocto_imx8mm/yocto_source/build/tmp/work/aarch64-phytec-linux/nxp-wlan-sdk/git-r0/temp/log.do_compile.9800`
`Log data follows:
`| DEBUG: Executing shell function do_compile
`| NOTE: make -j 4 build
``| make -C /lib/modules/5.4.0-59-generic/build M=/home/host/yocto_imx8mm/yocto_source/build/tmp/work/aarch64-phytec-linux/nxp-wlan-sdk/git-r0/git/mxm_wifiex/wlan_src modules
`| make[1]: Entering directory '/lib/modules/5.4.0-59-generic/build'
| Building modules, stage 2.
| MODPOST 0 modules
| /bin/sh: 1: scripts/mod/modpost: Permission denied
| scripts/Makefile.modpost:93: recipe for target '__modpost' failed
| make[2]: *** [__modpost] Error 126
| Makefile:1670: recipe for target 'modules' failed
| make[1]: *** [modules] Error 2
| make[1]: Leaving directory '/lib/modules/5.4.0-59-generic/build'
| Makefile:412: recipe for target 'default' failed
| make: *** [default] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/host/yocto_imx8mm/yocto_source/build/tmp/work/aarch64-phytec-linux/nxp-wlan-sdk/git-r0/temp/run.do_compile.9800' failed with exit code 1:
| make -C /lib/modules/5.4.0-59-generic/build M=/home/host/yocto_imx8mm/yocto_source/build/tmp/work/aarch64-phytec-linux/nxp-wlan-sdk/git-r0/git/mxm_wifiex/wlan_src modules
| make[1]: Entering directory '/lib/modules/5.4.0-59-generic/build'
| Building modules, stage 2.
| MODPOST 0 modules
| /bin/sh: 1: scripts/mod/modpost: Permission denied
| scripts/Makefile.modpost:93: recipe for target '__modpost' failed
| make[2]: *** [__modpost] Error 126
| Makefile:1670: recipe for target 'modules' failed
| make[1]: *** [modules] Error 2
| make[1]: Leaving directory '/lib/modules/5.4.0-59-generic/build'
| Makefile:412: recipe for target 'default' failed
| make: *** [default] Error 2
| WARNING: exit code 1 from a shell command.`
|
`ERROR: Task (/home/host/yocto_imx8mm/yocto_source/sources/poky/../meta-imx/meta-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.bb:do_compile) failed with exit code '1'
Second Keyboard Interrupt, stopping...
Summary: 1 task failed:
/home/host/yocto_imx8mm/yocto_source/sources/poky/../meta-imx/meta-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.`
here
 anyone can help on this I have attached ss too ?
Thanks  
I am expecting successful image creation in yocto

Uploading a user image doesn't work!, whenever there is relation in upload

Remote Digital Ocean droplet running ubuntu 20.04 and nginx
4.6 Strapi
UBUNTU 20.04
Default SQL
18.13.0 Node
8.19.3 NPM
I am trying to upload an image that has:
formdata.append(“ref”, “user”);
formdata.append(“refId”, userId);
formdata.append(“field”, “profpic”);
formdata.append(“source”, “users-permissions”);
whenever the field is in the request the upload is failing, if I remove it the upload works but it’s not listed in the correct place that I want it to be.
I’m using strapi’s local upload api
strapiback.com/api/upload
this is what I'm getting in the logs
error: Cannot read properties of undefined (reading 'attributes')
0|api | TypeError: Cannot read properties of undefined (reading 'attributes')
0|api | at /root/strapi/node_modules/#strapi/database/lib/entity-manager/morph-relations.js:11:57
0|api | at Array.filter (<anonymous>)
0|api | at getMorphToManyRowsLinkedToMorphOne (/root/strapi/node_modules/#strapi/database/lib/entity-manager/morph-relations.js:7:8)
0|api | at deleteRelatedMorphOneRelationsAfterMorphToManyUpdate (/root/strapi/node_modules/#strapi/database/lib/entity-manager/morph-relations.js:28:24)
0|api | at Object.attachRelations (/root/strapi/node_modules/#strapi/database/lib/entity-manager/index.js:500:17)
0|api | at Object.create (/root/strapi/node_modules/#strapi/database/lib/entity-manager/index.js:230:20)
0|api | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|api | at async Object.add (/root/strapi/node_modules/#strapi/plugin-upload/server/services/upload.js:363:17)
0|api | at async Promise.all (index 0)
0|api | at async Object.upload (/root/strapi/node_modules/#strapi/plugin-upload/server/services/upload.js:173:23)
I was able to fix this issue
formdata.append('ref', 'plugin::users-permissions.user');
and no need for the source field

Problem with hibernate.hbm2ddl.auto in a migration

I have migrated a spring-boot project from MySQL to SQL Server. I don't have the necessary roles to use hibernate.hbm2ddl.auto = update.
How can I update without having access to sysadmin?
I need to update because I can't lose the records
2021-07-21 | 13:30:17.660 | INFO | main | o.h.t.h.SchemaUpdate | HHH000228: Running hbm2ddl schema update
2021-07-21 | 13:30:17.692 | WARN | main | .e.j.s.SqlExceptionHelper | SQL Error: 229, SQLState: S0005
2021-07-21 | 13:30:17.692 | ERROR | main | .e.j.s.SqlExceptionHelper | The SELECT permission was denied on the object 'sequences', database 'mssqlsystemresource', schema 'sys'.
2021-07-21 | 13:30:17.692 | WARN | main | ddedWebApplicationContext | Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
2021-07-21 | 13:30:17.692 | INFO | main | o.a.c.c.StandardService | Stopping service [Tomcat]
I don't know how you are invoking hbm2ddl but you can specify an output file and then apply these statements manually. You can configure this through the javax.persistence.schema-generation.scripts.create-target parameter. See the documentation for details: https://docs.jboss.org/hibernate/orm/5.5/userguide/html_single/Hibernate_User_Guide.html#configurations-hbmddl

Error while build error[E0282]: type annotations needed

error[E0282]: type annotations needed
--> /home/amiya/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9
|
541 | let accuracy = P::ACCURACY.saturated_into();
| ^^^^^^^^ consider giving `accuracy` a type
...
1595 | / implement_fixed!(
1596 | | FixedI64,
1597 | | test_fixed_i64,
1598 | | i64,
... |
1601 | | "_Fixed Point 64 bits signed, range = [-9223372036.854775808, 9223372036.854775807]_",
1602 | | );
| |__- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0282]: type annotations needed
--> /home/amiya/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9
|
541 | let accuracy = P::ACCURACY.saturated_into();
| ^^^^^^^^ consider giving `accuracy` a type
...
1604 | / implement_fixed!(
1605 | | FixedI128,
1606 | | test_fixed_i128,
1607 | | i128,
... |
1611 | | [-170141183460469231731.687303715884105728, 170141183460469231731.687303715884105727]_",
1612 | | );
| |__- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0282]: type annotations needed
--> /home/amiya/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9
|
541 | let accuracy = P::ACCURACY.saturated_into();
| ^^^^^^^^ consider giving `accuracy` a type
I am using Ubuntu 20.04, its giving same error for both
WASM_BUILD_TOOLCHAIN=nightly-2020-08-23 cargo build --release
and
WASM_BUILD_TOOLCHAIN=nightly-2020-10-05 cargo build --release
https://github.com/substrate-developer-hub/substrate-node-template/blob/4d97032c11b8c65936e53a61607d4522d45a29ea/Makefile
https://stackoverflow.com/a/63993797/1566713
Note: This should be fixed soon in substrate v2.0.1
For now you may need to downgrade your toolchain: https://substrate.dev/docs/en/knowledgebase/getting-started/#downgrading-rust-nightly
The known working date for me is 2020-10-5 for all toolchains, and the default uses nightly from that date.
I am on Ubuntu 20.04LTS as well, and use:
$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: ....
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu
nightly-2020-10-05-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu
installed targets for active toolchain
--------------------------------------
wasm32-unknown-unknown
x86_64-unknown-linux-gnu
active toolchain
----------------
nightly-2020-10-05-x86_64-unknown-linux-gnu (default)
rustc 1.49.0-nightly (beb5ae474 2020-10-04)
Here's the issue https://github.com/paritytech/substrate/issues/7287
Solve with just this single line
rustup default nightly-2020-10-06 && rustup target add wasm32-unknown-unknown
This was fixed already in v2.0.1, try deleting the project and cloning again using the following command.
git clone -b v2.0.1 --depth 1 https://github.com/substrate-developer-hub/substrate-node-template

can't get network-id using quantum_network in ansible ad-hoc command, while it works in neutron command

My environment: Ansible 1.7.1/Ubuntu
I have a private OpenStack network, it works correctly if I use the neutron command:
$ env | grep OS_
OS_PASSWORD=cai
OS_AUTH_URL=http://demo-controller:35357/v2.0
OS_USERNAME=larry
OS_TENANT_NAME=demo
$ neutron net-list
+--------------------------------------+---------+--------------------------+
| id | name | subnets |
+--------------------------------------+---------+--------------------------+
| 5ecc0fbb-091b-4c6a-b905-c73e66e1ffda | ext-net | 3aa6539d-24d3-4c06-.. |
| 76506b52-1980-470c-b438-094e8b4bb3e7 | demo-1 | 52cd943d-7f25-4a11-.. |
+--------------------------------------+---------+--------------------------+
Now I want to get the network-id using the quantum_network module:
$ ansible localhost -m quantum_network -a "state=present login_username=larry login_password=cai login_tenant_name=demo name=demo-1 auth_url=http://demo-controller:35357/v2.0/" -v
But that throws an authentication error:
... File \"/usr/lib/python2.7/dist-packages/keystoneclient/utils.py\", line 318, in
inner\n return func(*args, **kwargs)\n File \"/usr/lib/python2.7/dist- packages/keystoneclient/session.py\", line 251, in request\n raise exceptions.from_response(resp, method, url)\nkeystoneclient.apiclient.exceptions.Forbidden: You are not authorized to perform the requested action, admin_required. (HTTP 403)\n",
"parsed": false
What is the problem?
It is the bug in quantum_network module, see issue #7275, it requires admin permission to get tenant id, which is not needed always.
Not sure which ansible release will include this.
I use the commit as patch in my release

Resources