elective-stereophonic
elective-stereophonic
NRS v1.6.2 singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Pages: 1 ... 13 14 [15] 16 17 18  All

Author Topic: NRS v1.6.2  (Read 90664 times)

Tosch110

  • Hero Member
  • *****
  • Karma: +211/-18
  • Offline Offline
  • Posts: 2365
    • View Profile
Re: NRS v1.6.2
« Reply #280 on: November 10, 2015, 07:03:46 am »

Thoughts?
Users don't know what NRS is. It would just be confusing. :)

Why is the passphrase leaving the browser? I don't think there is any reason to do that.

No, Token could be created by pure Javascript.

I recall that Jay generates tokens using JavaScript, can someone point me to the JavaScript source code for this ?

Here you go :)

https://github.com/jonesnxt/jay-client/blob/master/js/jaycli.js

line 149 is: generateToken
line 201 is: parseToken

blackyblack1

  • Hero Member
  • *****
  • Karma: +165/-82
  • Offline Offline
  • Posts: 1764
    • View Profile
Re: NRS v1.6.2
« Reply #281 on: November 10, 2015, 07:05:33 am »

Thoughts?
Users don't know what NRS is. It would just be confusing. :)

Why is the passphrase leaving the browser? I don't think there is any reason to do that.

No, Token could be created by pure Javascript.

I recall that Jay generates tokens using JavaScript, can someone point me to the JavaScript source code for this ?
Take a look here: https://github.com/blackyblack/freemarket-lite/tree/e94955a78392cdcfac1d71b423bf774231b3cb51/public/js/jay

And here is the function: https://github.com/blackyblack/freemarket-lite/blob/e94955a78392cdcfac1d71b423bf774231b3cb51/public/js/jay/jaycli.js#L146
Logged

farl4bit

  • Hero Member
  • *****
  • Karma: +210/-45
  • Offline Offline
  • Posts: 3466
    • View Profile
    • Crypto Advies
Re: NRS v1.6.2
« Reply #282 on: November 11, 2015, 01:33:30 pm »

I have the Nxt Mac Wallet on more computers, but not everywhere do I see the Shapeshift exchange. How is that possible?

And second, there is this plugin "Hello World". The link to the website is not really good: http://moreinfosonhelloworldplugin.info. Not so professional, can it be deleted or made better.

Just suggestions. Thx.
Logged

sigwo

  • Full Member
  • ***
  • Karma: +14/-0
  • Offline Offline
  • Posts: 128
  • Founder, Darcrus
    • View Profile
    • Sigwo Technologies
Re: NRS v1.6.2
« Reply #283 on: November 11, 2015, 06:25:10 pm »

I have the Nxt Mac Wallet on more computers, but not everywhere do I see the Shapeshift exchange. How is that possible?

And second, there is this plugin "Hello World". The link to the website is not really good: http://moreinfosonhelloworldplugin.info. Not so professional, can it be deleted or made better.

Just suggestions. Thx.

I am pretty sure the 'Hello World' plugin is just a test. If you would like to delete it, it's located in ~/nxt/html/ui/plugins. Have you enabled the ShapeShift plugin each time on each Mac the Nxt wallet was installed?
Logged

farl4bit

  • Hero Member
  • *****
  • Karma: +210/-45
  • Offline Offline
  • Posts: 3466
    • View Profile
    • Crypto Advies
Re: NRS v1.6.2
« Reply #284 on: November 11, 2015, 09:09:21 pm »

I have the Nxt Mac Wallet on more computers, but not everywhere do I see the Shapeshift exchange. How is that possible?

And second, there is this plugin "Hello World". The link to the website is not really good: http://moreinfosonhelloworldplugin.info. Not so professional, can it be deleted or made better.

Just suggestions. Thx.

I am pretty sure the 'Hello World' plugin is just a test. If you would like to delete it, it's located in ~/nxt/html/ui/plugins. Have you enabled the ShapeShift plugin each time on each Mac the Nxt wallet was installed?

"Hello World" doesn't bother me that much. I am just helping to get the client better for new users. This doesn't look that good. Maybe redirect te link to a page on Nxt.org with an explanation?

How do I enable the Shapeshift plugin?
Logged

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +440/-42
  • Offline Offline
  • Posts: 1796
    • View Profile
Re: NRS v1.6.2
« Reply #285 on: November 11, 2015, 09:20:30 pm »

I have the Nxt Mac Wallet on more computers, but not everywhere do I see the Shapeshift exchange. How is that possible?

If you are running 1.6.2 you should be able to load the ShapeShift exchange page by pressing the exchange icon on the top bar to the left of the cog wheel icon.
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

farl4bit

  • Hero Member
  • *****
  • Karma: +210/-45
  • Offline Offline
  • Posts: 3466
    • View Profile
    • Crypto Advies
Re: NRS v1.6.2
« Reply #286 on: November 11, 2015, 09:29:26 pm »

I have the Nxt Mac Wallet on more computers, but not everywhere do I see the Shapeshift exchange. How is that possible?

If you are running 1.6.2 you should be able to load the ShapeShift exchange page by pressing the exchange icon on the top bar to the left of the cog wheel icon.

I know, but there isn't a button. And in the settings no option to activate it.



Logged

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +440/-42
  • Offline Offline
  • Posts: 1796
    • View Profile
Re: NRS v1.6.2
« Reply #287 on: November 11, 2015, 09:53:30 pm »

I have the Nxt Mac Wallet on more computers, but not everywhere do I see the Shapeshift exchange. How is that possible?

If you are running 1.6.2 you should be able to load the ShapeShift exchange page by pressing the exchange icon on the top bar to the left of the cog wheel icon.

I know, but there isn't a button. And in the settings no option to activate it.

It's some kind of version mismatch or client refresh issue. Either dig in the logs or install from scratch.
In 1.7.0e we should have an integrated Mac installer so hopefully we won't run into these issues anymore.
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

altsheets

  • Full Member
  • ***
  • Karma: +31/-1
  • Offline Offline
  • Posts: 232
  • check out #AAssetNXT #AltFolio and #AssetGraphs
    • View Profile
    • AssetGraphs-v2 live examples
Re: NRS v1.6.2
« Reply #288 on: November 12, 2015, 12:28:58 am »

Thanks a lot. There is so much progress in NXT, wow.

After quite a bit of searching around, I might have understood what I need to do.
Just checking with you, if I understood it correctly.


This is a summary of the incompatible API changes from 1.5 to 1.6.

If you use any of the following APIs, and require the additional fields returned
when the corresponding includeX parameters are set to true [...]

The getAccountTransactions and [...]

[...] no longer check for its existence. [...] will return an empty result.

I have a lot of code that is using the old API.
(My newest one is really pretty  ;) )

Fortunately all my API calls are bundled in an extra module,
so I guess it won't be too difficult to simply add that
'includeX parameter' into all calls - where needed.

Is that all I must do?


This will be easy to find as it will just fail:
The getAccountTransactions and [...] have been removed [...]

Actually, this change might be a bit trickier to locate
[...] no longer check for its existence. [...] will return an empty result.


What I am struggling to find is a clear and simple
"migrate from API 1.5 to API 1.6" document/manual.
Or is that above post all I need?


The wiki still states
Quote
This document corresponds to Nxt Software Version 1.5.15.

and when I fulltextsearch for "include" there, the first seemingly relevant finding is in getAccount.

Do I understand the changes correctly, that these are those inputx parameters

Quote
includeLessors is false to omit lessors, lessorsRS and lessorsInfo (optional)
includeAssets is false to omit assetBalances and unconfirmedAssetBalances (optional)
includeCurrencies is false to omit accountCurrencies (optional)
includeEffectiveBalance is false to omit effectiveBalanceNXT and guaranteedBalanceNQT (optional)


I suggest, someone knowledgeable writes a little chapter at the top of that page
(like "Quantity Units ... and QNT", "Prunable Data", "Properties Files")
- which gives an overview of the (at least the changed, or all) input parameters,
plus their defaults.


Secondly ... an idea ... what could perhaps help me, and others ...
are two public servers, one running 1.5.15, and one running 1.6.2,
where we can try out all the    ...:7876/test   commands, and see
their differences. Then a really cool "migration manual" could even link to
both result sets, and show their differences, side by side. Just an idea ...


Anyways, thanks. Any hint is appreciated.
Looks like 1.7 is still a bit in the future.
But one day, I will have to patch my code.

Best regards!
:-)
« Last Edit: November 12, 2015, 01:11:59 pm by altsheets »
Logged
AltFolio | Newbium DataSite | AAssetNXT & -HZ | AssetGraphs | ABEE | Advice | assetparser.py & shareholders.py | bamm.py | PeerCrawler | Github e.g. ChainCountDown, ethjsre | ... much more

coretechs

  • Sr. Member
  • ****
  • Karma: +161/-1
  • Offline Offline
  • Posts: 436
    • View Profile
Re: NRS v1.6.2
« Reply #289 on: November 14, 2015, 05:49:14 am »

Thoughts?
Users don't know what NRS is. It would just be confusing. :)

Why is the passphrase leaving the browser? I don't think there is any reason to do that.

No, Token could be created by pure Javascript.

https://nxtportal.org/tools/nxt_auth_token.html   :)
Logged
https://ardorportal.org - Ardor blockchain explorer | https://nxtportal.org - Nxt blockchain explorer | http://bitcoindoc.com - The Rise and Rise of Bitcoin
ARDOR-T43P-R2K9-8W79-9W2AL | NXT-WY9K-ZMTT-QQTT-3NBL7

rkfg

  • Jr. Member
  • **
  • Karma: +1/-0
  • Offline Offline
  • Posts: 33
    • View Profile
Re: NRS v1.6.2
« Reply #290 on: November 14, 2015, 12:48:31 pm »

I guess the header of the forum should be updated. Right now it says "News:Update to the latest Nxt Client 1.5.15".
Logged

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +440/-42
  • Offline Offline
  • Posts: 1796
    • View Profile
Re: NRS v1.6.2
« Reply #291 on: November 15, 2015, 05:40:42 am »

Are any regular home users still having trouble with 1.6.2?

I installed on a clean Linux machine yesterday and asset trade dialogs (buy/sell & recent) are very sketchy populating, usually not at all. Other stuff like pending market trades and MS currencies just say "loading...".

Firefox 64 bit. I've tried reloading browser cache and disabling script blockers and I'm on a quick laptop with SSD. Version 1.5.15 works fine from another node on my network.

1.6.2 is a stable version. Any error messages in your nxt.log or browser JavaScript console ?
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

Brangdon

  • Hero Member
  • *****
  • Karma: +229/-25
  • Offline Offline
  • Posts: 1389
  • Quality is addictive.
    • View Profile
Re: NRS v1.6.2
« Reply #292 on: November 15, 2015, 11:26:24 am »

"[Fatal Error] :79:1: Content is not allowed in trailing section." - what does this mean? I started getting it a few updates ago.
Logged

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +440/-42
  • Offline Offline
  • Posts: 1796
    • View Profile
Re: NRS v1.6.2
« Reply #293 on: November 15, 2015, 12:20:44 pm »

"[Fatal Error] :79:1: Content is not allowed in trailing section." - what does this mean? I started getting it a few updates ago.

Not familiar with this error message. Not even sure which component is emitting it.
In which UI page or modal do you see this message ?
Please check the browser JavaScript console for messages and post them here.
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

Brangdon

  • Hero Member
  • *****
  • Karma: +229/-25
  • Offline Offline
  • Posts: 1389
  • Quality is addictive.
    • View Profile
Re: NRS v1.6.2
« Reply #294 on: November 15, 2015, 03:04:09 pm »

It's from run.bat, during start-up. It's not to do with the browser or UI or Javascript; the API server isn't running yet. The messages before and after it appear in nxt.log, but this message doesn't. It also doesn't have a timestamp. I'm using Windows 8.1 and my run.bat is standard. It also happens on testnet. Here's a bit more context:

2015-11-15 14:54:37 INFO: nxt.hideErrorDetails = "false"
2015-11-15 14:54:37 INFO: nxt.myPlatform = "Brangdon2"
2015-11-15 14:54:37 INFO: nxt.myAddress = "brangdon.duckdns.org"
2015-11-15 14:54:37 INFO: Looking for UPnP gateway device...
2015-11-15 14:54:37 INFO: nxt.upnpGatewayTimeout not defined or not numeric, using default value 7000
2015-11-15 14:54:37 INFO: nxt.upnpDiscoverTimeout not defined or not numeric, using default value 3000
[Fatal Error] :79:1: Content is not allowed in trailing section.
[Fatal Error] :79:1: Content is not allowed in trailing section.
2015-11-15 14:54:40 FINE: There are no UPnP gateway devices
2015-11-15 14:54:40 WARNING: Your announced address does not match your external address
2015-11-15 14:54:40 INFO: nxt.peerServerPort = "7874"
2015-11-15 14:54:40 INFO: nxt.shareMyAddress = "true"
Logged

k3t3r

  • Jr. Member
  • **
  • Karma: +2/-0
  • Offline Offline
  • Posts: 53
    • View Profile
Re: NRS v1.6.2
« Reply #295 on: November 15, 2015, 08:25:03 pm »

Code: [Select]
Exception in thread "main" java.lang.UnsupportedClassVersionError: nxt/Nxt : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Just updated and receieve this message. nothing happens after this. Any suggestions?

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +440/-42
  • Offline Offline
  • Posts: 1796
    • View Profile
Re: NRS v1.6.2
« Reply #296 on: November 15, 2015, 08:44:56 pm »

Code: [Select]
Exception in thread "main" java.lang.UnsupportedClassVersionError: nxt/Nxt : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Just updated and receieve this message. nothing happens after this. Any suggestions?

Make sure you are using Java 8 (earlier versions of Java does not recognize the Java 8 version 52.0 class format thus causing this error)
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

k3t3r

  • Jr. Member
  • **
  • Karma: +2/-0
  • Offline Offline
  • Posts: 53
    • View Profile
Re: NRS v1.6.2
« Reply #297 on: November 15, 2015, 09:49:02 pm »

Arr great, thanks. trying this now.

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: NRS v1.6.2
« Reply #298 on: November 16, 2015, 07:38:47 am »

I have a lot of code that is using the old API.
(My newest one is really pretty  ;) )

Fortunately all my API calls are bundled in an extra module,
so I guess it won't be too difficult to simply add that
'includeX parameter' into all calls - where needed.

Is that all I must do?
Yes. It is better to add the include parameters only where needed, but if you don't have time to check in each case whether the extra info is needed or not, you can add them to all calls and clean it up later. The include*Info parameters return data that never changes (e.g. asset decimals), so if you already have it from a previous request on the same page, or can cache it, there is no need to get it again. The includeCounts parameter returns counts which of course can change any time, but in most calls you probably will not need those counts.

Quote
Actually, this change might be a bit trickier to locate
[...] no longer check for its existence. [...] will return an empty result.
Right, this one will be trickier to locate, but will also be less common and less critical. Instead of an error, you will get an empty result. It can only happen when you are reading the assetId, accountId, etc from user input. If you are getting those from a previous API response, obviously they exist and should give no error. Also this change only affects calls where the object itself is not needed. E.g., getAsset or getAccount will still return an error if supplied with invalid or non-existent asset or account. But getAccountAssets or getAssetTransfers will not return an error in such case, just an empty result list.
 
Quote
What I am struggling to find is a clear and simple
"migrate from API 1.5 to API 1.6" document/manual.
Or is that above post all I need?
That's all I can think of, but indeed the wiki should be updated.

Quote
The wiki still states
Quote
This document corresponds to Nxt Software Version 1.5.15.

and when I fulltextsearch for "include" there, the first seemingly relevant finding is in getAccount.

Do I understand the changes correctly, that these are those inputx parameters

Quote
includeLessors is false to omit lessors, lessorsRS and lessorsInfo (optional)
includeAssets is false to omit assetBalances and unconfirmedAssetBalances (optional)
includeCurrencies is false to omit accountCurrencies (optional)
includeEffectiveBalance is false to omit effectiveBalanceNXT and guaranteedBalanceNQT (optional)
Yes, and the default values of all those include parameters is now false.
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322

k3t3r

  • Jr. Member
  • **
  • Karma: +2/-0
  • Offline Offline
  • Posts: 53
    • View Profile
Re: NRS v1.6.2
« Reply #299 on: November 16, 2015, 08:18:11 am »

I updated to JAVA 8 and I got a bit further this time.
But now this error is repeated first:
Code: [Select]
2015-11-16 08:05:38 FINE: Failed to get transaction bytes for transaction: {"senderPublicKey":null,"signature":"21c95ae294b5a005520217f45ab0b727632f9776133f65d7af791512cfaedf0cba03ce8a0322434d271c6574b74b61496f0433e597231ec14d7174cc0f841f71","feeNQT":100000000,"type":0,"version":1,"ecBlockId":"4769055403441386039","attachment":{"version.OrdinaryPayment":0,"version.PublicKeyAnnouncement":1,"recipientPublicKey":"4a5345ffa1b109b5e7d9e11d2fa903e4a2136f76bdafed8ea2b8fc243a599245"},"subtype":0,"amountNQT":23400000000,"recipient":"7810313784242634809","ecBlockHeight":444989,"deadline":1440,"timestamp":48360239}
2015-11-16 08:05:38 SEVERE: Error popping off to 444999, java.lang.NullPointerException

then this:
Code: [Select]
at nxt.BlockchainProcessorImpl.popOffTo(BlockchainProcessorImpl.java:1537)
at nxt.BlockchainProcessorImpl.popOffTo(BlockchainProcessorImpl.java:1537)

then terminates with this:
Code: [Select]
2015-11-16 08:05:38 SEVERE: Errors running startup tasks:
null

java.lang.RuntimeException: Errors running startup tasks:
null

at nxt.util.ThreadPool.runAll(ThreadPool.java:150)
at nxt.util.ThreadPool.start(ThreadPool.java:74)
at nxt.Nxt$Init.<clinit>(Nxt.java:354)
at nxt.Nxt.init(Nxt.java:294)
at nxt.Nxt.main(Nxt.java:281)
2015-11-16 08:05:38 INFO: Shutting down...
2015-11-16 08:05:38 INFO: shutting down sendingService
2015-11-16 08:05:38 INFO: shutting down peersService
2015-11-16 08:05:43 INFO: some threads in peersService didn't terminate, forcing shutdown
2015-11-16 08:05:49 INFO: Database shutdown completed
2015-11-16 08:05:49 INFO: Nxt server 1.6.2 stopped.
Sorry I dont understand  the code very well.
Pages: 1 ... 13 14 [15] 16 17 18  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly