QFile created vs lastModified
I would get the two stamps of QFile:
created()
lastModified()
It seems that the BB10 always replace created()
file is stored in my sandbox/data
I test if the file exists, and then I do something like this:
QFile file(myPathToFile); if (!file.open(QIODevice::ReadWrite)) { return; } ..... file.write(*buffer); file.flush(); file.close();
now created() changed
Because I'm replacing the contents of an existing file, I expected to have unchanged created() and lastModified() updated.
or I'm doing something wrong update the content of a QFile?
PBernhardt wrote:
According to the docs, "if creation time or time of"last status change"are not available, returns identical lastModified().
https://developer.BlackBerry.com/native/reference/Cascades/QFileInfo.HTML#created
Looks like that's not available. Might be worth a feature in this case request.
so I'll create a feature request
I read the docs, but could not imagine that a modern OS like BB10 does not provide something basic like a timestamp of creation of file ;-)
Tags: BlackBerry Developers
Similar Questions
-
Cannot create a .db file in the folder data
I use this code
const QString fileName = QString("rules.db"); QString dataFolder = QDir::homePath(); QString newFileName = dataFolder + "/" + fileName; QFile file(newFileName); if(file.exists()) { qDebug()<<"FILE EXISTs"; }
leader. Exists() returns false. I don't understand what I'm doing wrong :-(
.the calling on QFile creates the file if it does not exist.
-
Hi am an oracle form
Forms [32 bit] Version 11.1.2.0.0 (Production)
Oracle Toolkit Version 11.1.2.0.0 (Production)
PL/SQL Version 11.1.0.7.0 (Production)
Oracle V11.1.2.0.0 - Production procedure generator
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Query Oracle 11.1.2.0.0 - Production Designer
Oracle virtual graphics system Version 11.1.2.0.0 (Production)
The GUI tools Oracle Utilities Version 11.1.2.0.0 (Production)
Oracle Multimedia Version 11.1.2.0.0 (Production)
Oracle tools integration Version 11.1.2.0.0 (Production)
Common tools Oracle zone Version 11.1.2.0.0
Oracle CORE Production 11.1.0.7.0
got error when starting of my h in Windows 7, the error is
Java plug-in 11.60.2.27
With the help of 1.8.0_60 - b27 version JRE Java hotspot Client VM
Home Directory user = C:\Users\username
----------------------------------------------------
c: clear console window
f: finalize objects on the finalization queue
g: garbage collection
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: Hide console
r: reload the policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: delete the cache of class loaders
0-5: set the level of trace to < n >
----------------------------------------------------
Basic: additional progress listener: sun.plugin.util.ProgressMonitorAdapter@7de350
Security: expected main URL: http://hostname:7001/forms/Java/frmall.jar
base: Plugin2ClassLoader.addURL parent called to http://hostname:7001/forms/Java/frmall.jar
network: cache entry found [url: http://hostname:7001/forms/java/frmall.jar, version: null]
cache: Add a MemoryCache entry: http://hostname:7001/forms/Java/frmall.jar
cache: resource http://hostname:7001/forms/Java/frmall.jar has expired.
network: connection http://hostname:7001/forms/Java/frmall.jar with proxy = LIVE
network: connection http://hostname:7001 / with proxy = LIVE
network: ResponseCode for http://hostname:7001/forms/Java/frmall.jar : 304
network: encoding for http://hostname:7001/forms/Java/frmall.jar : null
network: connection to http://hostname:7001/forms/Java/frmall.jar
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@c6efd8a0: 1
cache: reading manifest for http://hostname:7001/forms/java/frmall.jar: read = 89 full = 41933
cache: full load manifests for http://hostname:7001/forms/java/frmall.jarcache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@c6efd8a0: 2
Security: blacklist revocation checking is enabled
Security: Blacklist: created: NEED_LOAD, lastModified: 1454940031849
Security: Blacklist: check contains 7uIlwwg2/ldEZWBqvRL178yalVM =, now State NEED_LOAD
Security: Blacklist: loadCache
Security: Blacklist: not found in the cache
Security: Trusted libraries list control is enabled
Security: Trusted libraries list file not found
cache: reading signatories of 4971 http://hostname:7001/forms/Java/frmall.jar | C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\39\5b1b89e7-6ed050d0.idx
cache: fact readSigners (http://hostname:7001/forms/java/frmall.jar)
Security: Grant connect perm for http://hostname:7001/forms/Java/frmall.jar : java.security.Permissions@55db19 ( )
("java.net.URLPermission" "http://hostname:7001" ' "*: *")
("java.net.URLPermission" "http://hostname:7001 /-" ' "*: *")
)
Security: manifest for missing Codebase attribute: http://hostname:7001/forms/Java/frmall.jar
Security: missing Application Library eligible Codebase attribute manifest to: http://hostname:7001/forms/Java/frmall.jar
Security: deployment of C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs loading certificates
Security: responsible for deployment from C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs certificates
Security: loading of the deployment session certificate store certificates
Security: charge of the deployment session certificate store certificates
Security: loading of the deployment session certificate store certificates
Security: charge of the deployment session certificate store certificates
Security: loading of the deployment session certificate store certificates
Security: charge of the deployment session certificate store certificates
Security: loading of the deployment session certificate store certificates
Security: charge of the deployment session certificate store certificates
Security: loading the certificate Internet Explorer TrustedPublisher store certificates
Security: charge of the certificate Internet Explorer TrustedPublisher store certificates
Security: loading Internet Explorer FORBIDDEN certificate store certificates
Security: support of the Internet Explorer FORBIDDEN certificate store certificates
Security: validate the chain of certificates using the CertPath API
Security: the certificate has expired, check the timestamp information
Security: timestamp info is available
Security: the certificate has expired and it is time stamped in the validity period
Security: start checking the TSA certificate path
Security: loading of the ROOTS of the Internet Explorer certificate store certificates
Security: charge of the ROOTS of the Internet Explorer certificate store certificates
Security: loading Root CA certificates to C:\Program Files\Java\jre1.8.0_60\lib\security\cacerts
Security: charge of the root CA certificates of C:\Program Files\Java\jre1.8.0_60\lib\security\cacerts
Security: get the collection of certificates to the CA root certificate store
Security: get the collection of certificates to the CA root certificate store
Security: get the collection of certificates to the CA root certificate store
Security: get the collection of certificates to the CA root certificate store
Security: even if the certificate has expired, it is timestamped to the validity period and has valid ASD
Security: could not load file blacklisted.certs
Security: blacklisted.certs file contains no algorithm property.
Security: checking if the certificate is in the Internet Explorer FORBIDDEN certificate store
Security: checking if the certificate is in the Internet Explorer FORBIDDEN certificate store
Security: checking if the certificate is in the Internet Explorer FORBIDDEN certificate store
Security: checking if the certificate is in the Internet Explorer FORBIDDEN certificate store
Security: support the OCSP protocol is disabled
Security: support for the CRL is disabled
Security: off revocation checking
Security: backup of the certificates in the certificate deployment session store
Security: saves the certificates in the certificate deployment session store
Security: backup of the certificates in the certificate deployment session store
Security: saves the certificates in the certificate deployment session store
Base: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
Security: the certificate has expired, check the timestamp information
Security: timestamp info is available
Security: the certificate has expired and it is time stamped in the validity period
Security: start checking the TSA certificate path
Security: even if the certificate has expired, it is timestamped to the validity period and has valid ASD
Manifest missing attribute in the main container permissions: http://hostname:7001/forms/Java/frmall.jar
Security: manifest for missing Codebase attribute: http://hostname:7001/forms/Java/frmall.jar
Security: missing Application Library eligible Codebase attribute manifest to: http://hostname:7001/forms/Java/frmall.jar
Security: validate the chain of certificates using the CertPath API
Security: the certificate has expired, check the timestamp information
Security: timestamp info is available
Security: the certificate has expired and it is time stamped in the validity period
Security: start checking the TSA certificate path
Security: even if the certificate has expired, it is timestamped to the validity period and has valid ASD
Security: validation of SSV:
running: 1.8.0_60
asked: null
range: 1.6.0_12
javaVersionParam: 1.6.0_12
Rule set version: null
network: created version ID: 1.8.0.60
network: created version ID: 1.6.0.12
network: created version ID: 1.8.0.60
Security: ask the user or DRS to use later
Base: Embedding not enabled in the Configuration dialog boxes
Security: continue with the running version
Security: JUT Record:
Plugin2
http://hostname:7001/forms/frmservlet: lookandfeel = Oracle imagebase = codebase = false javascriptblocksheartbeat code = oracle.forms.engine.Main serverapp = heart rate default = __applet_request_version = 1.6.0_12 splashscreen = disablemdiscrollbars = applet_stop_timeout = 800 type=application/x-java-applet;jpi-version=1.6.0_12 maxeventwait = serverargs=escapeParams=truemodule=C:\Oracle\Middleware\FRMHome\forms\NOCF_MAIN.fmxuserid=debug=nohost=port=obr=YESrecord=collecttracegroup=mediumlog=term=ssoProxyConnect=no endusermonitoringurl = logo = guimode = 0 mayscript = true formsmessagelistener = height = 600 launchjnlp = endusermonitoringenabled = false allowalertclipboard = true digitsubstitution context highcontrast = false enablejavascriptevent = true = archive = frmall.jar networkretries = 0 recordfilename = clientdpi = separateframe = false disablevalidateclipboard = false background = codebase = / forms/java serverurl=/forms/lservlet;jsessionid=JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277?ifsessid=formsapp.9 legacy_lifecycle = false width = 750 = 1.6.0_12 colorscheme teal'c = java_version + d7vPOy + 7 + / jOCVjQwbuyjQmY2lyHEJYisLdreKdoOgxA3g8g / fHvw6av8XIMKt + zTK8xt2IfLejjzQvfbYT + KiwpnebJimfZeL2a6WKzq34NtTND50gyahndjTjMYGwR3l3kN3FgqJXhngnczHC1mlf8Z + W + BtstEnMOjmyik/6lEcM84mSgURYRAPUw1imPeQrvCd + 3g4SpVwh6VckCbVXWwVYwi/D3iUGfjZScXWu + dnMSH5/Y3zGwrZg ==
Security: manifest for missing Codebase attribute: http://hostname:7001/forms/Java/frmall.jar
Security: missing Application Library eligible Codebase attribute manifest to: http://hostname:7001/forms/Java/frmall.jar
Security: validate the chain of certificates using the CertPath API
Security: the certificate has expired, check the timestamp information
Security: timestamp info is available
Security: the certificate has expired and it is time stamped in the validity period
Security: start checking the TSA certificate path
Security: even if the certificate has expired, it is timestamped to the validity period and has valid ASD
Base: Applet loaded.
Base: Applet resized and added to the parent container
Base: PERF: AppletExecutionRunnable - applet.init () BEGIN; jvmLaunch dt 254323 us, pluginInit dt 8103359 us, TotalTime: 8357682 US
Base: Applet initialized
Base: from applet
Base: finished perf rollup
base: loaded image: pot: http://hostname:7001/forms/Java/frmall.jar!/Oracle/Forms/icons/splash.gif
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@c6efd8a0: 3
base: loaded image: pot: http://hostname:7001/forms/Java/frmall.jar!/Oracle/Forms/icons/oracle_logo.gif
base: loaded image: pot: http://hostname:7001/forms/Java/frmall.jar!/Oracle/Forms/icons/bgnd.gif
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@c6efd8a0: 4
cache: cleaning of the queue of reference: http://hostname:7001/forms/Java/frmall.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@c6efd8a0: 3
cache: cleaning of the queue of reference: http://hostname:7001/forms/Java/frmall.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@c6efd8a0: 2
network: cache entry not found [url: http://hostname:7001/forms/java/oracle/forms/engine/ErrorMessageBundle_en_ZA.class, version: null]
network: connection http://hostname:7001/forms/Java/Oracle/Forms/engine/ErrorMessageBundle_en_ZA.class with proxy = LIVE
network: connection http://hostname:7001 / with proxy = LIVE
network: cache entry not found [url: http://hostname:7001/forms/java/oracle/forms/engine/ErrorMessageBundle_en_ZA.properties, version: null]
network: connection http://hostname:7001/forms/Java/Oracle/Forms/engine/ErrorMessageBundle_en_ZA.properties with proxy = LIVE
network: cache entry not found [url: http://hostname:7001/forms/java/oracle/forms/engine/ErrorMessageBundle_en_ZA.properties, version: null]
network: connection http://hostname:7001/forms/Java/Oracle/Forms/engine/ErrorMessageBundle_en_ZA.properties with proxy = LIVE
Forms Session ID is formsapp.9
network: cache entry not found [url: http://hostname:7001/forms/registry/oracle/forms/registry/Registry.dat, version: null]
network: connection http://hostname:7001/forms/registry/Oracle/Forms/registry/registry.dat with proxy = LIVE
network: downloaded resource: http://hostname:7001/forms/registry/Oracle/Forms/registry/registry.dat
Content-Length: 2 463
Content-Encoding: null
network: written URL http://hostname:7001/forms/registry/Oracle/Forms/registry/registry.dat file C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\33\582ccb21-346da83a-temp
cache: Add a MemoryCache entry: http://hostname:7001/forms/registry/Oracle/Forms/registry/registry.dat
network: cache entry not found [url: http://hostname:7001/forms/registry/oracle/forms/registry/default.dat, version: null]
network: connection http://hostname:7001/forms/registry/Oracle/Forms/registry/default.dat with proxy = LIVE
network: connection http://hostname:7001 / with proxy = LIVE
The proxy host is null, and the proxy port is 0.
Native implementation of HTTP is used for the connection.
The connection mode is HTTP.
network: connection http://hostname:7001/Forms/lservlet; jsessionid = JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277? ifcmd = GetInfo & iflocale = in za & ifhost = hostname & IFIP = 10.124.21.2 with proxy = LIVE
network: CleanupThread used 76172 US
network: connection http://hostname:7001/forms/lservlet; jsessionid = JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277 with proxy = LIVE
Applet Forms version is 11.1.2.0
network: cache entry not found [url: http://hostname:7001/forms/java/oracle/forms/engine/RunformBundle_en_ZA.class, version: null]
network: connection http://hostname:7001/forms/Java/Oracle/Forms/engine/RunformBundle_en_ZA.class with proxy = LIVE
network: cache entry not found [url: http://hostname:7001/forms/java/oracle/forms/engine/RunformBundle_en_ZA.properties, version: null]
network: connection http://hostname:7001/forms/Java/Oracle/Forms/engine/RunformBundle_en_ZA.properties with proxy = LIVE
network: cache entry not found [url: http://hostname:7001/forms/java/oracle/forms/engine/RunformBundle_en_ZA.properties, version: null]
network: connection http://hostname:7001/forms/Java/Oracle/Forms/engine/RunformBundle_en_ZA.properties with proxy = LIVE
network: connection http://hostname:7001/forms/lservlet; jsessionid = JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277 with proxy = LIVE
network: connection http://hostname:7001/forms/lservlet; jsessionid = JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277 with proxy = LIVE
network: connection http://hostname:7001/forms/lservlet; jsessionid = JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277 with proxy = LIVE
network: connection http://hostname:7001/forms/lservlet; jsessionid = JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277 with proxy = LIVE
network: connection http://hostname:7001/forms/lservlet; jsessionid = JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277 with proxy = LIVE
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@c6efd8a0: 3
network: connection http://hostname:7001/forms/lservlet; jsessionid = JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277 with proxy = LIVE
network: connection http://hostname:7001/forms/lservlet; jsessionid = JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277 with proxy = LIVE
network: connection http://hostname:7001/forms/lservlet; jsessionid = JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277 with proxy = LIVE
cache: cleaning of the queue of reference: http://hostname:7001/forms/Java/frmall.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@c6efd8a0: 2
Security: manifest for missing Codebase attribute: http://hostname:7001/forms/Java/frmall.jar
Security: missing Application Library eligible Codebase attribute manifest to: http://hostname:7001/forms/Java/frmall.jar
Security: validate the chain of certificates using the CertPath API
Security: the certificate has expired, check the timestamp information
Security: timestamp info is available
Security: the certificate has expired and it is time stamped in the validity period
Security: start checking the TSA certificate path
Security: even if the certificate has expired, it is timestamped to the validity period and has valid ASD
Security: manifest for missing Codebase attribute: http://hostname:7001/forms/Java/frmall.jar
Security: missing Application Library eligible Codebase attribute manifest to: http://hostname:7001/forms/Java/frmall.jar
Security: validate the chain of certificates using the CertPath API
Security: the certificate has expired, check the timestamp information
Security: timestamp info is available
Security: the certificate has expired and it is time stamped in the validity period
Security: start checking the TSA certificate path
Security: even if the certificate has expired, it is timestamped to the validity period and has valid ASD
Security: manifest for missing Codebase attribute: http://hostname:7001/forms/Java/frmall.jar
Security: missing Application Library eligible Codebase attribute manifest to: http://hostname:7001/forms/Java/frmall.jar
Security: validate the chain of certificates using the CertPath API
Security: the certificate has expired, check the timestamp information
Security: timestamp info is available
Security: the certificate has expired and it is time stamped in the validity period
Security: start checking the TSA certificate path
Security: even if the certificate has expired, it is timestamped to the validity period and has valid ASD
Security: manifest for missing Codebase attribute: http://hostname:7001/forms/Java/frmall.jar
Security: missing Application Library eligible Codebase attribute manifest to: http://hostname:7001/forms/Java/frmall.jar
Security: validate the chain of certificates using the CertPath API
Security: the certificate has expired, check the timestamp information
Security: timestamp info is available
Security: the certificate has expired and it is time stamped in the validity period
Security: start checking the TSA certificate path
Security: even if the certificate has expired, it is timestamped to the validity period and has valid ASD
base: loaded image: pot: http://hostname:7001/forms/Java/frmall.jar!/Oracle/Forms/icons/frame.gif
cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@c6efd8a0: 3
cache: cleaning of the queue of reference: http://hostname:7001/forms/Java/frmall.jar
cache: deregisterReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@c6efd8a0: 2
network: connection http://hostname:7001/forms/lservlet; jsessionid = JhcQW4jTYn77p9RkB2Swy5Zcy1HrJXP612Gy1gVGcLw44QThrlRC!-1616911277 with proxy = LIVE
Base: Applet made visible
Base: Applet started
Base: said customer applet is launched
network: the update check to: https://javadl-ESD-secure.Oracle.com/update/securitypack.jar
network: connection https://javadl-ESD-secure.Oracle.com/update/securitypack.jar with proxy = LIVE
network: cache entry not found [url: file:/C:/Program%20Files/Java/jre1.8.0_60/lib/ext/sunec.jar, version: null]
network: cache entry not found [url: file:/C:/Program%20Files/Java/jre1.8.0_60/lib/ext/sunjce_provider.jar, version: null]
network: connection http://javadl-esd-secure.oracle.com:443 / with proxy = LIVE
network: update form to the address: C:\Users\username\AppData\LocalLow\Sun\Java\Deployment\security\securitypack.jar URL: https://javadl-ESD-secure.Oracle.com/update/securitypack.jar
java.net.UnknownHostException: ESD-javadl - secure.oracle.com
at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance (unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (unknown Source)
the impossible (unknown Source)
to sun.net.www.protocol.http.HttpURLConnection $10.run (unknown Source)
to sun.net.www.protocol.http.HttpURLConnection $10.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown_Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown_Source)
to sun.net.www.protocol.http.HttpURLConnection.access$ 200 (Unknown Source)
to sun.net.www.protocol.http.HttpURLConnection $9.run (unknown Source)
to sun.net.www.protocol.http.HttpURLConnection $9.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
at java.security.AccessController.doPrivilegedWithCombiner (unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown_Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown_Source)
at com.sun.deploy.util.SecurityBaseline.checkForUpdate (unknown Source)
in com.sun.deploy.util.SecurityBaseline.access$ 100 (unknown Source)
to com.sun.deploy.util.SecurityBaseline$ 1.run (unknown Source)
at java.lang.Thread.run (unknown Source)
Caused by: java.net.UnknownHostException: ESD-javadl - secure.oracle.com
at java.net.AbstractPlainSocketImpl.connect (unknown Source)
at java.net.PlainSocketImpl.connect (unknown Source)
at java.net.SocksSocketImpl.connect (unknown Source)
at java.net.Socket.connect (unknown Source)
at sun.security.ssl.SSLSocketImpl.connect (unknown Source)
at sun.net.NetworkClient.doConnect (unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown_Source)
at sun.net.www.http.HttpClient.openServer(Unknown_Source)
to sun.net.www.protocol.https.HttpsClient. < init >(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown_Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown_Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown_Source)
to sun.net.www.protocol.http.HttpURLConnection $6.run (unknown Source)
to sun.net.www.protocol.http.HttpURLConnection $6.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
at java.security.AccessController.doPrivilegedWithCombiner (unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown_Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown_Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown_Source)
to sun.net.www.protocol.http.HttpURLConnection.access$ 200 (Unknown Source)
to sun.net.www.protocol.http.HttpURLConnection $9.run (unknown Source)
to sun.net.www.protocol.http.HttpURLConnection $9.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
at java.security.AccessController.doPrivilegedWithCombiner (unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown_Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown_Source)
at java.net.HttpURLConnection.getHeaderFieldDate (unknown Source)
at java.net.URLConnection.getLastModified (unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getLastModified(Unknown_Source)
... 4 more
I have install the jdk java 8 and put the url of the form in the java Security tab it works
-
Problem with javascript:alert (document.lastModified)
After I've upgraded to Firefox 6.0.1 and 6.0.2 now today I can't get an answer to my javascript:alert (document.lastModified) help
in order to get a web page date.
You run this code through the address bar?
You can run is more JavaScript code via the address bar in Firefox 6 and later versions.
You see an error message in the tools > error Console.
Now, this code gets a security principal null for security reasons and has no effect (Bug 656433).
You must create a bookmarklet (keyword) and run the code by invoking this bookmark.NoScript can allow you to run this code through the address bar, see:
-
Creating a csv file, then send file contains an attachment...
I have a question to multiple segment...
I need to create a csv file and then attach this file to an e-mail. I have a general idea on how to get it going, but before I start coding I have a few questions...
These are the classes / pseudo-code...
- Create file, replace an existing one because just one instance of this file...
QString csvFile = QDir::homePath() "/ mycsvFileAttachement.csv";
QFile newFile (csvFile); - Data through the loop model and write each record in the file
Not sure how to do this part with C++. Any sample to show how to achieve?
- Create a new email and attach the newly created file... So, for this piece I was looking @ the MessageBuilder class...
https://developer.BlackBerry.com/Cascades/reference/bb__pim__message__messagebuilder.html
It would have been so much simpler to have the possibility to use the invoke framework to push a new message, user interface, but from what I've read, it is basically impossible to hang an attachment via the invoke framework. Is this correct?
- Display the user interface for new Message and wait until the message is pulled off by user
https://github.com/BlackBerry/Cascades-samples/tree/master/messages
To send an email, the example message gives me all the code necessary to accomplish this feature. But I also want to provide a contact selector the user, any sample that shows how to do this?
If the file save location is important you want to prompt the user in the dialog box a file selector. They can save documents or the SD card, etc. If not, then create a temporary file, i.e. do not use QDir::homePath();
filePicker = new FilePicker();
filePicker-> setType(FileType:: other);connect to this kind can at least make a deleteLater()
Connect (filePicker, signal (Canceled (()), this, slot (filePickerCanceledSlot ()));
sign in here to get the name of the file to save on
Connect (filePicker, SIGNAL (fileSelected(const QStringList &)),
This, SLOT (filePickerSelectedSlot (const QStringList)));What about writing in the file, the QTextStream use for you help. Do something like this:
QFile file (fileName);
bstatus = file.open (QIODevice::WriteOnly);
If (! bstatus) {}
qWarning()< "failed="" to="" open="" file="" "=""><>
return;
}QTextStream out (&file);)
QListIterator
iter (myObjets); {whilte (ITER.hastNext ()}
MO = iter.next ();
the < mo-=""> field1 < ","=""> < mo-=""> Field2< ","="" ....=""><>
}
file-> close();
I don't know how to send it as an attachment. You can search for it on this forum because it's a frequently asked question. Myself I could never get send attachment to work the way I wanted so abandoned. And decided the user can only send the file as an attachment if they want to.
I hope it is of some value.
- Create file, replace an existing one because just one instance of this file...
-
Hello
I want to know how to create a folder and a file inside a SD card and write data to the file.
I tried
QDir * dir = new QDir (QDir::currentPath() + "/... /...") ("/ removable/sdcard/MyFolder");
qDebug() < "path="" exists?="" "=""> < dir-=""> exists().
and it's all false,
I tried
QFile * zipFile = newQFile ("::currentPath() QDir +" "/... /... / removable/sdcard/MyFolder/filename.zip");
qDebug()
exists(). and it showed as false;
I checked access_shared and I am able to get the path to the SD card, please help
Thank & regards
Vishnu pascalp
QFile looks like just use open() with the correct attributes...
http://Qt-project.org/doc/Qt-4.7/QFile.html
QDir QFile are just classes used to interface with the system files IO.
-
Cannot create a .db file in the assets folder
I am trying to create a quizz.db file in the current folder by creating first a temporary quizz.db in the folder data and then creating tables inside and then copy it in the current folder. By debugging code, it shows that the folder is created. But I can't find it in the current folder. Here is the code
#include
#include #include #include using namespace bb::cascades; using namespace bb::data; SQLTest::SQLTest(bb::cascades::Application *app): QObject(app) { const QString fileName = QString("quizz.db"); QString dataFolder = QDir::homePath(); QString newFileName = dataFolder + "/" + fileName; QTemporaryFile file(newFileName); // Open the file that was created if (file.open()) { // Create an SqlDataAccess object SqlDataAccess sda(newFileName); // Create a table called Employee in the database file sda.execute("CREATE TABLE Employee( firstName VARCHAR(50),lastName VARCHAR(50), salary INT);"); // Insert employee records into the table sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Mike\", \"Chepesky\", 42000);"); sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Westlee\", \"Barichak\", 55000);"); sda.execute("INSERT INTO Employee (firstName, lastName, salary) VALUES (\"Ian\", \"Dundas\", 47000);"); if(sda.hasError()) { } else copyFileToAssetsFolder("quizz.db"); } } void SQLTest::copyFileToAssetsFolder(const QString fileName) { QString appFolder(QDir::homePath()); appFolder.chop(4); QString originalFileName = appFolder + "app/native/assets/" + fileName; QFile newFile(originalFileName); // If I enable this `if` condition the code satisfies it and removes the quizz.db file and then it satisfies the next `if` condition and successfully copies the quizz.db file from `data` folder to `assets` folder. /*if(newFile.exists()) QDir().remove(originalFileName);*/ // this `if` condition is not satisfied. Which should mean the quizz.db file has been created on assets folder. if (!newFile.exists()) { // If the file is not already in the assets folder, we copy it from the // data folder (read and write) to the assets folder (read only). QString dataFolder = QDir::homePath(); QString newFileName = dataFolder + "/" + fileName; QFile originalFile(newFileName); if (originalFile.exists()) { // Create sub folders if any creates the SQL folder for a file path like e.g. sql/quotesdb QFileInfo fileInfo(originalFileName); QDir().mkpath (fileInfo.dir().path()); if(!originalFile.copy(originalFileName)) { qDebug() << "Failed to copy file to path: " << originalFileName; } } else { qDebug() << "Failed to copy file data base file does not exists."; } } // mSourceInDataFolder = newFileName; } If activate the commented "If" condition of "copyFileToAssetsFolder" int he removes already created quizz.db file in the current folder (that Im unable to find) and goes inside the next ' if' and copy the quizz.db created on the folder "data" of active fodler. But in any case I don't find the quizz.db in the current folder. I really need help with this quickly. Thank you.
Thanks to read this to learn why you can have an application change the assets folder: https://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.native_sdk.devguide/com.qnx.d...
-
Error creating the file (Permission denied)
Hello
I'm trying to create a file and write in some information from my application for debugging, but always return a QFileError on creation.
An example of code:
QFile data("log.txt"); if (data.open(QFile::WriteOnly | QFile::Text)) { QTextStream out(&data); out << "Debug information"; }else{ qDebug() << "Error opening log.txt: " << data.error(); qDebug() << "Error description: " << data.errorString(); }
This return QFile code:penError. Error description: 'permission denied '.
How can I give write permissions?
Thanks for the help.
Please read the documentation to
https://developer.BlackBerry.com/Cascades/documentation/device_platform/filesystem/index.html
-
How to create a file name variable with the County and the date?
Objective: Create a file name variable with the County and the date
Error: get a lot of error. Do you know how to change my code?
Question: how to create a file name variable with the County and the date?
Mini code:
std::string * rawfilepath;
std::string * rawfilename;rawfilepath = "./shared/documents/";
RawFileName = rawfilepath + 'rawlog -' + 0 + '-.txt ';
QFile file (rawfilename);
If (file.exists ()) {}
rawfilenamecount ++;
RawFileName = "./shared/documents/rawlog-" + rawfilenamecount + "-.txt ';
}Thank you for your attention,
Thank tzander reminding me the idea. Method of cascades is not good for me because all of the kernel code is written by Native. If I change the channel to QString, I need to change a lot of codes.
Solution is below.
While (access (rawfilename, F_OK)! = - 1) {}
rawfilenamecount ++;
sprintf (format, RawFileName, rawfilenamecount);
fprintf (stderr, "file exists");
}Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
fprintf (rawlog, "System Time (ms)" ""); -
Creating a new class, I need to move my main method class SaveDate DynamicTest class. Below I've listed the code of both classes. The goal is to be able to run my class DynamicTest program. I need help to understand the process of moving my main method of a different class and creating an object of a class and calling its method.
public class {SaveData
private public static final map < String, Object > myCachedTreeMap = new TreeMap < String, Object > ();
public static final List < String > getLines (final String resourceParam, final Charset charset) throws IOException {}
System.out.println ("please:" + resourceParam);
If {(myCachedTreeMap.containsKey (resourceParam))
Use the file cached, to avoid a further reading.
System.out.println ("found in memory:" + resourceParam);
}
else {}
Load the file from the disk
System.out.println ("found in memory:" + resourceParam);
}
Returns a null value.
}
Public Shared Sub main (String [] args) throws IOException {}
String target_dir = "C:\\myfiles\\config\\en";
Line = "C:\\myfiles\\config\\en\\output.txt";
File dir = new File (target_dir);
File files [] = dir.listFiles ();
If (file == null: files.length < 1) {}
System.out.println ("file list is empty...");
return;
}
Open the Printwriter
PrintWriter OutputStream = new PrintWriter (output);
try {}
for (textFile file: files) {}
If (textFile.isFile () & & textFile.getName () .endsWith (".txt")) {}
readFromDisk (textFile);
}
}
}
{Finally
outputStream.close ();
}
String fileNameFromCache = "en_synonyms.txt";
Sheet1 = myCachedTreeMap.get (fileNameFromCache) object;
System.out.println (fileNameFromCache + ": \n" + "Sheet1");
}
@SuppressWarnings ("resource")
private static Sub readFromDisk(File textFile) throws FileNotFoundException, IOException {}
BufferedReader InputStream;
inputStream = null;
String content = "";
try {}
inputStream = new BufferedReader (new FileReader (textFile));
content = readFile (textFile);
System.out.println ("bytes read =" + content.length ());
Save the content
FileContentsObject Sheet1 = new FileContentsObject (System.currentTimeMillis (),
textFile.lastModified (), content,
textFile.getName (),
getLines (null, null));
Add to the map
myCachedTreeMap.put (textFile.getName (), Sheet1);
}
{Finally
If (inputStream! = null) {}
inputStream.close ();
}
}
}
private static String readFile(File f) throws FileNotFoundException, IOException, UnsupportedEncodingException {}
Text of StringBuilder = new StringBuilder (1024);
read int, N = 1024 * 1024;
char [] buffer = new char [N];
BufferedReader br = null;
try {}
BR = new BufferedReader)
(new) InputStreamReader
(new FileInputStream (f), 'UTF8'));
While (true) {}
read = br.read (buffer, 0, N);
If (read > 0)
Text.Append (new String (buffer, 0, read));
if(Read < N) {}
break;
}
}
}
{Finally
If (br! = null)
Br. Close();
}
Return text.toString ();
}
private static final class FileContentsObject {}
private long cachedTime; currentTime
private long lastModifiedTimestamp;
private string content
List < String > lines;
private String fileName;
public FileContentsObject (long cachedTime, long lastModifiedTimestamp,
Content string, String fileName, List < String > lines) {}
this.cachedTime = cachedTime;
this.lastModifiedTimestamp = lastModifiedTimestamp;
This.contents = content;
this.fileName = filename;
This.Lines = lines;
SimpleDateFormat sdf = new SimpleDateFormat ("MM/dd/yy hh: mm :"); ")
System.out.println ("time & Date:" + sdf.format (cachedTime));
System.out.println ("' last modification timestamp:" ")
+ sdf.format (lastModifiedTimestamp));
}
/**
*
* @return the lines of the file
*/
List < String > getLines() {}
Return this.lines;
}
public String toString() {}
"return"Sheet1 {}"+" fileName =' ' + filename + '------"+", content = "" "
+ content + "\"+ ", lastModifiedTimestamp ="
+ lastModifiedTimestamp + ', CurrentTime & Date ='
{+ cachedTime + '}';
}
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
public class DynamicTest {}
Public Shared Sub main (String [] args) {}
Game characters charset = Charset.forName("UTF-8");
try {}
List < String > = CacheData.getLines lines ("en_synonyms", character set);
If (rows! = null) {}
System.out.println ("number of rows:" + lines.size ());
for {(String ligne: lines)}
System.out.println ("DynamicTest:" + line);
}
}
} catch (IOException e) {}
e.printStackTrace ();
}
try {}
List < String > = CacheData.getLines lines ("en_stopwords", character set);
If (rows! = null) {}
System.out.println ("number of rows:" + lines.size ());
for {(String ligne: lines)}
System.out.println ("DynamicTest:" + line);
}
}
} catch (IOException e) {}
e.printStackTrace ();
}
}
}
I have read and watched videos about the creation of an object of a class and calling its method in a different class. I'm still confused on how to do it properly. By using the code below if someone can explain how to properly call the method of objects from my hand.
Huh? You have NOT posted any 'hand' or any 'method of objects '.
If you need help with the code, you need to view the code.
The Java tutorials has dozens of trails "Classes and objects": what they are, how to create and how to use them.
https://docs.Oracle.com/javase/tutorial/Java/javaOO/classes.html
1. create an instance of a class
2. call to one or more of the public methods of this class
If the class has public static methods, you don't need to create an instance first.
I suggest that you work your way through these tutorials. They include the WORKING example code.
-
Failed to create photo memories
I use the mac on the Sierra photos app, update that became my mac perfect condition a paralyzed slug.
According to the help of photos I can create a memory of an album as follows:
- Click on an album under Albums in the sidebar.
- Click Show as memory.
- Scroll down and click on add to memories
My problem is that I do not see 'display in memory '.
This means that I have no way to create a slideshow. No idea why I don't see "display memory"?
Concerning
My problem is that I do not see 'display in memory '.
When you select an album in the sidebar, 'Show as memory' is under the search field in the toolbar.
It is only available for standard albums, not for the smart albums.
-
Node of automation is much more difficult to 'uncheck' than to 'create '.
I use logical X about 5 months now, and I felt a fairly frustrating relationship with interaction of automation. When I load automation, 'creation' of a knot of automation is simple... 1. click anywhere along the yellow line creates a node that is precisely where I clicked. However, "popping/unclicking/destroy" this same node takes anywhere from 3 to 6 clicks to work. I would love to be able to uncheck these nodes with the same exact ease with which I am able to create. No relief in this case would be great! Thank you
Double click on the node to remove it... as simple as when it was created... Click to create, double-click Delete.
-
WHAT YEAR MODEL MODEL MC976LL/A WAS CREATED
WHAT YEAR MODEL MODEL MC976LL/A WAS CREATED
2012.
-
Can I create a recovery bootable USB through disk utility?
My HARD drive is dying, I can't access my Macintosh HD partition anymore and I can't reinstall OS because I SMART errors. Before the format and reinstall the attempt to load slow my computer, random errors, etc. So I definitely think that the HARD drive is near death. My plan is to replace my HDD for a Virgin SSD, I perform this task several times on computers of the victory but for MAC, I wonder how I will load the new OS. Can I make a bootable USB with the recovery partition, but on a USB key tools? Unofrtunately I have more available Mac to create the USB bootable through itunes.
My computer is the MacBook Pro (13-inch mid 2010), I have also all original packaging somewhere, if there is a CD that I can use, I certainly can get too.
Any advice?
Thank you!
Apple have this to do a USB installation...
Create an installer for OS X - Apple support bootable
Another option is to use the diskmakerx.com application
You must have the OS installer downloaded to make these methods of work is probably not practice on your failed drive.
Both of these options are to run a 'normal' operating system too. The recovery partition is not 'normal '.
Another option is to use the Internet recovery mode if your Mac supports...
Computers that can be upgraded to use OS X Internet Recovery - Apple Support
On macOS recovery - Apple Support
Use wired ethernet for best results, since it will download a bootable OS & then download the installer of the OS also.
I suspect you have the update of the firmware installed to add this feature if it has been updated over the last 3 years
You may be able to generate a score of alternative recovery to another disk (such as a USB key) If you want to just "compensation of base OS.
OS X: on Recovery Disk Wizard - Apple Support
A last solution would be to clone your drive failing on an external drive (or use the new SSD in a proper case). That can be done in the modes of recovery via disk utility. Basically, you use a feature to "restore" to clone one volume to another. (I don't see clear instructions for the moment so ask if you want to pursue this option).
-
Hi, I have an unknown error, when I create Apple ID. I am fill all forms of registration of new Apple ID, but in the end, it gives me an error like this: "for assistance to connect this support."
Click here and ask for help from the staff of the iTunes Store.
(145024)
Maybe you are looking for
-
the last two days, I get an error message and Firefox does not open. I'm on 9.0
The last two days, Firefox will not load. I get an error screen. I'm on 9.0
-
Cannot receive or send messages using Android.
I own a laptop and an Android, with Skype, the laptop works Skype perfectly without any problems so far, but the messaging feature in the Skype app on my phone seems to have stopped working together, as when I send a message using my phone, it appear
-
I got my Y570 and D drive, I have divided into two D and G, the other data and the other for the software, if I use the recovery key I will keep all files on drive D and G? Thank you
-
Compaq CQ62 screen lights with caps lock stuck.
Hello My computer compaq laptop is a month old. When I turn it on, I hear the fan, but that's all. No beeps and the only visible light is the caps lock key, which does not turn off. The screen is completely blank. No cursor blinking, no music windows
-
How to use a SELECT QUERY using fdmAPI.executeDML in the Jython Script FDMEE?
HelloIs just the way we use DELETE and INSERT statement using fdmAPI.executeDML, possible to run a SELECT statement and get the result in the variables?I want to refrain from using import java.sql and enter the connection information in a script. I w