Questions tagged [getproperty]

84 questions
0
votes
0 answers

Trying to get property 'name' of non-object error while trying to change woocommerce breadcrumbs

I use following function to add WooCommerce parent & sub-categories in breadcrumbs: // Load Woocommerce product parent & sub-categories in breadcrumbs add_filter('x_breadcrumbs_data', 'post_parent_trail', 9999999, 2); function post_parent_trail…
Omid Toraby
  • 190
  • 11
0
votes
2 answers

How do I reliably and consistently get the calculated width style for a VIDEO element?

var vid = document.createElement("video"); vid.src = "big_buck_bunny_640x360.mp4"; document.getElementsByTagName("body")[0].appendChild(vid); console.log(window.getComputedStyle(vid, null).getPropertyValue("width")); The console invariably shows…
natlee75
  • 5,097
  • 3
  • 34
  • 39
0
votes
1 answer

TypeError: Cannot read property 'getProperty' of undefined? Node.js, Puppeteer

When trying to get the text of the 'name' element for my scraper. I try to grab it with the full Xpath and get the error 'TypeError: Cannot read property 'getProperty' of undefined' I tried just using the regular Xpath but that said name: 'skip…
Wadaygo
  • 93
  • 2
  • 16
0
votes
1 answer

How to get path of current directory in Web Application

While I try to get path of current dir like bellow in my project it gives the location of where eclipse is downloaded. String Cuurentdir= System.getProperty("user.dir"); I want path of my project dir. Note- Using tomcat as a server.
Athakkar
  • 11
  • 5
0
votes
0 answers

null pointer exception in getPropertyMsg?

Im trying to fix bugs, but i just cant find how to solve this part: This is the error. The program runs a bit, then in throws null-pointer Properties value: DEVELOPEMENT App is running... Exception in thread "main" java.lang.NullPointerException …
user12389421
0
votes
1 answer

Why does an infinite recursion error appear while processing JSON.stringify

function repErr(key, value) { let error = {}; Object.getOwnPropertyNames(value).forEach(function (key) { error[key] = value[key]; }); return error; } When I call JSON.stringify(err, repErr) i see an error too much recursion in…
0
votes
1 answer

How do I get the os name from the client program?

There are parts of the program that are affected by OS type. so i try to branch by os name as below. when I run it locally,it works. but I run it as a client program after uploading it to the server, it seems that it can not get the os name. Please…
0
votes
0 answers

Java - Determine common path for every user that runs my application

I have created an application (You can find the entire thing here to see the problem yourself: https://github.com/Tressos-Aristomenis/Snakes-And-Ladders-JavaFX-from-scratch !) and I have put some background music. I am actually using a folder called…
A.Tressos
  • 35
  • 7
0
votes
1 answer

Get/Update "REST Request Properties" value in SOAPUI is coming NULL

I am trying to get the Property value and Set it with different value in SoapUI's "REST Request Properties" (NOT the custom properties). It just gives me NULL value Here is what I did: 1. Get test step object 2. get the property value with name of…
ktmrocks
  • 361
  • 1
  • 5
  • 18
0
votes
1 answer

How can I get the Lists inside an Object? c#

I have this object: Object Adress - count = 2 - System.Collections.Generic.List
[0] Address City - "Text" - string State - "Text" - string [1] Address City - "Text" - string State - "Text" -string Notes - "Text" -…
Lucio Zenir
  • 365
  • 2
  • 8
  • 18
0
votes
1 answer

getProperty() always returns null - Java

In the following code the getProperty() method always returns null, even if I add a default for loadNumberOfAccounts(); so its not null, the next method which uses getProperty() will return null. storing the properties works…
0
votes
0 answers

Get smtpaddress from outlook using mailItem.PropertyAccessor.GetProperty

I have been trying to find sources for the following, i have to rework a piece of code which is not working. It runs on our clients machine, they are very security aware and block almost everything. Can a group policy block the following fro doing a…
Stripes
  • 31
  • 1
  • 7
0
votes
2 answers

Get system user name through PHP or Javascript

How can I get current logged system username through PHP or JavaScript. We have an built in function in Java such as: String userName = System.getProperty("user.name"); but I could not find similar command in any of the technology I need. I need it…
user8268874
0
votes
0 answers

'jsp:getProperty' Cannot find any information on property 'name' in a bean of type package.Class error

I am trying to implement the jsp:useBean tag. Here are the following files. A simple name retrieval is to be performed. index.html Title
0
votes
1 answer

System.Reflection.TargetException error

I have a main class where I am looping through each internal property in my cleats class property. Each internal property in my cleats class is of type BeltProperty (another class that contains information like value and id's). private…
andrewvb
  • 17
  • 6