elective-stereophonic
elective-stereophonic
[ANN] NXT+ - Adds Realtime Websockets + Blogging framework to NXT core
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Pages: 1 [2] 3  All

Author Topic: [ANN] NXT+ - Adds Realtime Websockets + Blogging framework to NXT core  (Read 11122 times)

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Re: [ANN] NXT+ - Adds Realtime Websockets + Blogging framework to NXT core
« Reply #20 on: April 01, 2015, 06:35:16 pm »

Funny thing, one day before you committed the changes to Github I was manually porting the FIMK websocket code to my local NXT repository. Had some errors and wanted to continue today, but now it's all there already!

Lol that sure is a coincidence, wanted to open source it earlier but as always to much to do and to little time.
You will be pushing back the improvements you make right?

I will, but don't expect anything. My java knowledge is limited, probably why I got the errors :)

Lets hope the errors are caused by that indeed.
Logged
HEAT: DEX | SDK | HOME

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Re: [ANN] NXT+ - Adds Realtime Websockets + Blogging framework to NXT core
« Reply #21 on: April 01, 2015, 06:36:24 pm »

If there is any interest in compiled binaries please let me know.
I could upload them to github and sign them with our FIMK pgp signature.
Logged
HEAT: DEX | SDK | HOME

m19

  • Jr. Member
  • **
  • Karma: +10/-0
  • Offline Offline
  • Posts: 65
    • View Profile
Re: [ANN] NXT+ - Adds Realtime Websockets + Blogging framework to NXT core
« Reply #22 on: April 01, 2015, 06:42:57 pm »

Funny thing, one day before you committed the changes to Github I was manually porting the FIMK websocket code to my local NXT repository. Had some errors and wanted to continue today, but now it's all there already!

Lol that sure is a coincidence, wanted to open source it earlier but as always to much to do and to little time.
You will be pushing back the improvements you make right?

I will, but don't expect anything. My java knowledge is limited, probably why I got the errors :)

Lets hope the errors are caused by that indeed.

Jep, your version works fine here on localhost.
Logged

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Logged
HEAT: DEX | SDK | HOME

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Re: [ANN] NXT+ - Adds Realtime Websockets + Blogging framework to NXT core
« Reply #24 on: April 09, 2015, 02:17:12 pm »

While I was busy preparing a new mofowallet release I thought why not make the search functionality in mofowallet instant similar to how google search works (you type and you get instant results).
I thought this would surely be possible and would not be too difficult. It turned out to be just 15 lines of javascript  :D
Planning to release the downloadable version and an update to FIMK server tomorrow.

For now for anyone looking for Accounts, Assets, Aliases or anything on the Goods Store.

MofoWallet Instant Search

Secret hint ...
Wildcard search character for aliases is the % character.
For all other categories use * as the wild card character..

Wondering how it could work so fast?
Thats just plain NXT at work there.
Mofowallet is connected to an instance of NXT+ which is basically NXT 1.4.16 with some goodies added.

Have fun!
Logged
HEAT: DEX | SDK | HOME

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Re: [ANN] NXT+ - Adds Realtime Websockets + Blogging framework to NXT core
« Reply #25 on: April 13, 2015, 11:14:40 am »

Fixed some bugs.. And added some features needed by mofowallet..

Allow search for account and asset id
https://github.com/fimkrypto/nxt-plus/commit/b4e1085bcd5039e0c4b4029c79bf872832597639

Fix account-id filter in EventForwarder
This fixes the situation where you could not correctly register a websocket listener to be alerted only for certain accounts.
When registering a filtered event listener account ID has to be given in numeric form (this will be changed in the future)
https://github.com/fimkrypto/nxt-plus/commit/fd5a64e08d9bab0ec5f29727441725bc5f836a5f

Replace nxt.websocketSSL with nxt.apiSSL
Not a very big deal it just made things easier for our hosted servers
https://github.com/fimkrypto/nxt-plus/commit/d9daf848233cecf04144c3131ad8ef838930c345
https://github.com/fimkrypto/nxt-plus/commit/691d25e4d54192b4d04018316b8f9ab1a4b04fcf
Logged
HEAT: DEX | SDK | HOME

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Logged
HEAT: DEX | SDK | HOME

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger

Updated NXT+ to the latest NXT 1.5.9 which makes it work after the hard hard fork at 445.000.
https://github.com/fimkrypto/nxt-plus/commit/b2335f0057a513643a1066ea5435403af0868e29

This will mostly allow hosted mofowallet to remain working after the fork.
Downloadable mofowallet will be updated a little later when the new features for FIMK 0.5 have been completed.
Logged
HEAT: DEX | SDK | HOME

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger

cross post: https://bitcointalk.org/index.php?topic=633304.msg11803380#msg11803380

We are preparing the upcoming release, part of this release is NXT-PLUS based on 1.5.12 and with the virtual exchange (some explanation here) enabled.
Assets can be found by typing part of the name or description in the filter box.



Try it out here:
https://www.mofowallet.com/launch.html#/activity/nxt/assets/latest

The new UI is (at the moment) only available on hosted mofowallet, expect some downtime from time to time while we upload new versions.



Try it out here:
https://www.mofowallet.com/launch.html#/assets/nxt/12071612744977229797/trade

Theme switcher still available under settings menu, current default theme is named "Google", if you used hosted mofowallet before you will still have "Yeti" theme selected. This theme is named "Slate", total of 19 themes available.



The upcoming Private Assets feature (FIMK only) and the new Email Account Identifiers (FIMK only) are available in the java server code but have not been turned on yet. For this a hard fork is required which will likely be happening in the coming weeks.
Logged
HEAT: DEX | SDK | HOME

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Logged
HEAT: DEX | SDK | HOME

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Logged
HEAT: DEX | SDK | HOME

yassin54

  • Hero Member
  • *****
  • Karma: +240/-14
  • Offline Offline
  • Posts: 2503
  • I am Homer, Sorry my english is Bad!!
    • View Profile

Thank you!  :)

TylerJordan

  • Jr. Member
  • **
  • Karma: +5/-2
  • Offline Offline
  • Posts: 37
    • View Profile

Greetings,

I am trying to get a nxt-plus server going.  I can successfully get the normal nxt server running (1.5.13); but the nxt-plus keeps giving me the error: "Error: Could not find or load main class nxt.Nxt"

What I've done so far:

1.) git clone https://github.com/fimkrypto/nxt-plus   (no errors)
2.) cd nxt-plus
3.) ./compile.sh   (successful)
4.) ./run-tor.sh    (Error: Could not find or load main class nxt.Nxt)

what am I doing wrong? Is this a PATH error? If so, why does the normal nxt server launch?

edit:  okay so ./run-tor.sh doesn't work, but ./run.sh is launching ... however it stops within 3 seconds with this error:

2015-07-31 13:55:08 SEVERE: Database error executing CALL FTL_CREATE_INDEX('PUBLIC', 'ACCOUNT', 'NAME,DESCRIPTION')
java.lang.RuntimeException: Database error executing CALL FTL_CREATE_INDEX('PUBLIC', 'ACCOUNT', 'NAME,DESCRIPTION')
   at nxt.db.DbVersion.apply(DbVersion.java:83)
   at nxt.NxtDbVersion.update(NxtDbVersion.java:614)
   at nxt.db.DbVersion.init(DbVersion.java:55)
   at nxt.db.BasicDb.init(BasicDb.java:136)
   at nxt.Db.init(Db.java:39)
   at nxt.Nxt$Init.<clinit>(Nxt.java:324)
   at nxt.Nxt.init(Nxt.java:297)
   at nxt.Nxt.main(Nxt.java:284)
Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY_KEY_9 ON FTL.INDEXES(SCHEMA, TABLE) VALUES ( /* key:2 */ 'PUBLIC', 'ACCOUNT', null)"; SQL statement:
INSERT INTO FTL.INDEXES(SCHEMA, TABLE, COLUMNS) VALUES(?, ?, ?) [23505-176]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)
   at org.h2.message.DbException.get(DbException.java:178)
   at org.h2.message.DbException.get(DbException.java:154)
   at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:103)
   at org.h2.index.PageBtree.find(PageBtree.java:121)
   at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:151)
   at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:104)
   at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:97)
   at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:88)
   at org.h2.index.MultiVersionIndex.add(MultiVersionIndex.java:59)
   at org.h2.table.RegularTable.addRow(RegularTable.java:120)
   at org.h2.command.dml.Insert.insertRows(Insert.java:157)
   at org.h2.command.dml.Insert.update(Insert.java:115)
   at org.h2.command.CommandContainer.update(CommandContainer.java:79)
   at org.h2.command.Command.executeUpdate(Command.java:254)
   at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:199)
   at org.h2.fulltext.FullTextLucene.createIndex(FullTextLucene.java:139)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.h2.engine.FunctionAlias$JavaMethod.getValue(FunctionAlias.java:481)
   at org.h2.expression.JavaFunction.getValue(JavaFunction.java:39)
   at org.h2.command.dml.Call.update(Call.java:48)
   at org.h2.command.CommandContainer.update(CommandContainer.java:79)
   at org.h2.command.Command.executeUpdate(Command.java:254)
   at org.h2.jdbc.JdbcStatement.executeUpdateInternal(JdbcStatement.java:132)
   at org.h2.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:117)
   at nxt.db.FilteredStatement.executeUpdate(FilteredStatement.java:45)
   at nxt.db.TransactionalDb$DbStatement.executeUpdate(TransactionalDb.java:278)
   at nxt.db.DbVersion.apply(DbVersion.java:74)


my java info:

2015-07-31 14:03:31 FINE: java.version = 1.8.0_45
2015-07-31 14:03:31 FINE: java.vm.version = 25.45-b02
2015-07-31 14:03:31 FINE: java.vm.name = Java HotSpot(TM) 64-Bit Server VM
2015-07-31 14:03:31 FINE: java.vendor = Oracle Corporation
2015-07-31 14:03:31 FINE: java.vm.vendor = Oracle Corporation
2015-07-31 14:03:31 FINE: java.home = /usr/lib/jvm/java-8-oracle/jre
2015-07-31 14:03:31 FINE: java.library.path = /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2015-07-31 14:03:31 FINE: java.class.path = nxt.jar:lib/websocket-api-9.2.11.v20150529.jar:lib/slf4j-jdk14-1.7.7.jar:lib/jetty-servlet-9.2.11.v20150529.jar:lib/websocket-servlet-9.2.11.v20150529.jar:lib/websocket-server-9.2.11.v20150529.jar:lib/websocket-common-9.2.11.v20150529.jar:lib/h2-1.3.176.jar:lib/jetty-servlets-9.2.11.v20150529.jar:lib/jetty-security-9.2.11.v20150529.jar:lib/json-simple-1.1.1.jar:lib/jetty-io-9.2.11.v20150529.jar:lib/bcprov-jdk15on-152.jar:lib/websocket-client-9.2.11.v20150529.jar:lib/jetty-continuation-9.2.11.v20150529.jar:lib/lucene-core-3.6.2.jar:lib/slf4j-api-1.7.7.jar:lib/jetty-util-9.2.11.v20150529.jar:lib/weupnp-0.1.3.jar:lib/jetty-server-9.2.11.v20150529.jar:lib/servlet-api-3.1.jar:lib/jetty-http-9.2.11.v20150529.jar:conf


EDIT:  I've now also tried copying over the nxt_db from my working version of NRS 1.5.13  but I got the same result as above.

thanks for your help!

« Last Edit: July 31, 2015, 04:09:16 am by TylerJordan »
Logged

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger

Nxt-plus compiles to a jar instead of classes as nxt does, for this run.sh was changed, run-tor.sh i've never used so it still relies on classes.
I've updated run-tor.sh, now it should work.

https://github.com/fimkrypto/nxt-plus/blob/master/run-tor.sh
Logged
HEAT: DEX | SDK | HOME

TylerJordan

  • Jr. Member
  • **
  • Karma: +5/-2
  • Offline Offline
  • Posts: 37
    • View Profile

Thanks, that fixed the run-tor.sh.  It now launches, but only gets to the same point that the normal run.sh gets to --- just one or two seconds after launch the server stops. 

Maybe the error is in here?:

2015-08-01 00:53:33 FINE: Database jdbc url set to jdbc:h2:nxt_db/nxt;DB_CLOSE_ON_EXIT=FALSE;MVCC=TRUE;CACHE_SIZE=262144 username sa
2015-08-01 00:53:36 FINE: Database connection pool current size: 1
2015-08-01 00:53:36 INFO: Database update may take a while if needed, current db version 247...
2015-08-01 00:53:36 FINE: Database connection pool current size: 2
2015-08-01 00:53:36 FINE: Will apply sql:
CALL FTL_CREATE_INDEX('PUBLIC', 'ACCOUNT', 'NAME,DESCRIPTION')
2015-08-01 00:53:36 SEVERE: Database error executing CALL FTL_CREATE_INDEX('PUBLIC', 'ACCOUNT', 'NAME,DESCRIPTION')
java.lang.RuntimeException: Database error executing CALL FTL_CREATE_INDEX('PUBLIC', 'ACCOUNT', 'NAME,DESCRIPTION')
   at nxt.db.DbVersion.apply(DbVersion.java:83)
   at nxt.NxtDbVersion.update(NxtDbVersion.java:614)
   at nxt.db.DbVersion.init(DbVersion.java:55)
   at nxt.db.BasicDb.init(BasicDb.java:136)
   at nxt.Db.init(Db.java:39)
   at nxt.Nxt$Init.<clinit>(Nxt.java:324)
   at nxt.Nxt.init(Nxt.java:297)
   at nxt.Nxt.main(Nxt.java:284)
Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY_KEY_9 ON FTL.INDEXES(SCHEMA, TABLE) VALUES ( /* key:2 */ 'PUBLIC', 'ACCOUNT', null)"; SQL statement:
INSERT INTO FTL.INDEXES(SCHEMA, TABLE, COLUMNS) VALUES(?, ?, ?) [23505-176]
   at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)
   at org.h2.message.DbException.get(DbException.java:178)
   at org.h2.message.DbException.get(DbException.java:154)
   at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:103)
   at org.h2.index.PageBtree.find(PageBtree.java:121)
   at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:151)
   at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:104)
   at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:97)
   at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:88)
   at org.h2.index.MultiVersionIndex.add(MultiVersionIndex.java:59)
   at org.h2.table.RegularTable.addRow(RegularTable.java:120)
   at org.h2.command.dml.Insert.insertRows(Insert.java:157)
   at org.h2.command.dml.Insert.update(Insert.java:115)
   at org.h2.command.CommandContainer.update(CommandContainer.java:79)
   at org.h2.command.Command.executeUpdate(Command.java:254)
   at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:199)
   at org.h2.fulltext.FullTextLucene.createIndex(FullTextLucene.java:139)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at org.h2.engine.FunctionAlias$JavaMethod.getValue(FunctionAlias.java:481)
   at org.h2.expression.JavaFunction.getValue(JavaFunction.java:39)
   at org.h2.command.dml.Call.update(Call.java:48)
   at org.h2.command.CommandContainer.update(CommandContainer.java:79)
   at org.h2.command.Command.executeUpdate(Command.java:254)
   at org.h2.jdbc.JdbcStatement.executeUpdateInternal(JdbcStatement.java:132)
   at org.h2.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:117)
   at nxt.db.FilteredStatement.executeUpdate(FilteredStatement.java:45)
   at nxt.db.TransactionalDb$DbStatement.executeUpdate(TransactionalDb.java:278)
   at nxt.db.DbVersion.apply(DbVersion.java:74)
   ... 7 more
2015-08-01 00:53:36 INFO: Shutting down...
2015-08-01 00:53:36 INFO: nxt.adminPassword not defined
2015-08-01 00:53:36 INFO: nxt.maxAPIRecords = "100"
2015-08-01 00:53:36 INFO: nxt.enableAPIUPnP = "false"



EDIT: after deleting the nxt_db folder and re-running I got this message as well:

Caused by: org.h2.jdbc.JdbcSQLException: Error creating or initializing trigger "FTL_ACCOUNT" object, class "org.h2.fulltext.FullTextLucene$FullTextTrigger", cause: "java.sql.SQLException: Column not found: NAME"; see root cause for details; SQL statement:
CREATE TRIGGER IF NOT EXISTS "PUBLIC"."FTL_ACCOUNT" AFTER INSERT, UPDATE, DELETE, ROLLBACK ON "PUBLIC"."ACCOUNT" FOR EACH ROW CALL "org.h2.fulltext.FullTextLucene$FullTextTrigger" [90043-176]


cheers
« Last Edit: July 31, 2015, 03:36:27 pm by TylerJordan »
Logged

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger

Are you using an existing nxt blockchain?
If you do it won't work since nxt-plus has a couple of changes made to the db schema making them incompatible.
Logged
HEAT: DEX | SDK | HOME

TylerJordan

  • Jr. Member
  • **
  • Karma: +5/-2
  • Offline Offline
  • Posts: 37
    • View Profile
Re: [ANN] NXT+ - Adds Realtime Websockets + Blogging framework to NXT core
« Reply #36 on: August 01, 2015, 07:25:48 am »

Are you using an existing nxt blockchain?
If you do it won't work since nxt-plus has a couple of changes made to the db schema making them incompatible.

No, although after it failed the first time I did try it with NRS db ... that failed too.  I then deleted everything and cloned fresh and tried again ... and when that failed I started posting here.
Logged

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Re: [ANN] NXT+ - Adds Realtime Websockets + Blogging framework to NXT core
« Reply #37 on: August 01, 2015, 07:39:37 am »

Seeing it too now. Will upload a fix in a moment.
Thanks for alerting me!

Uploaded the fix https://github.com/fimkrypto/nxt-plus/commit/7fa71649d1ecb045abfacf0375b2d8d14415d7cd you should be able to clone and get it running now.
« Last Edit: August 01, 2015, 07:51:45 am by verymuchso »
Logged
HEAT: DEX | SDK | HOME

TylerJordan

  • Jr. Member
  • **
  • Karma: +5/-2
  • Offline Offline
  • Posts: 37
    • View Profile
Re: [ANN] NXT+ - Adds Realtime Websockets + Blogging framework to NXT core
« Reply #38 on: August 01, 2015, 10:41:06 am »

Hooray - I confirm it's working for me! - thank you for your efforts   ;D
Logged

verymuchso

  • Hero Member
  • *****
  • Karma: +118/-2
  • Offline Offline
  • Posts: 549
    • View Profile
    • HEAT Ledger
Re: [ANN] NXT+ - Adds Realtime Websockets + Blogging framework to NXT core
« Reply #39 on: August 01, 2015, 10:49:57 am »

Hooray - I confirm it's working for me! - thank you for your efforts   ;D

Glad to hear, but honestly we require it to work for other purposes also.
So thanks for alerting me, if you run into anything else please let me know.
Logged
HEAT: DEX | SDK | HOME
Pages: 1 [2] 3  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly