Code Monkey home page Code Monkey logo

tron-studio's Introduction

DEPRECATION NOTICE

TronStudio project is now DEPRECATED and does not support the new TRC10 token smart contract functions. Please use TronBox for smart contract deployment.

Documentation

Tron Studio Documentation

Tron Studio

TronStudio is an IDE to develop/deploy/debug smart contract based on TVM.

Disable auto complete:

change studio.autocomplete to false in src/main/resources/studio.properties and re-build amd run

Screenshot

System Requirement

Oracle JDK 1.8

  • Windows 64Bit
  • Linux 64Bit
  • Mac

Compile & Run

./gradlew build -x test -x check
cd  build/libs
java -jar TronStudio.jar

Compile contract Nullpointer quick fix:

#8

tron-studio's People

Contributors

lucien-tronlab avatar shydesky avatar taiyangc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tron-studio's Issues

Unable to re-start on Windows64

OS: Windows 10 Pro 64bit
Java Ver: 8 Update 191 - installed today.

It built and ran it fine the first time. For some reason Tron Studio froze, so I closed and ended the task

When I attempted to re-start it, I got the error below.

I even deleted the build folder and recompiled, and it still returned this error.

$ java -jar TronStudio.jar
Exception in Application start method
File saved!
Exception in Application stop method
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
        at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: Exception in Application start method
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)
        at java.lang.Thread.run(Unknown Source)
Caused by: javafx.fxml.LoadException:
file:/C:/Users/snack/Downloads/tron-studio-3.2.2/tron-studio-3.2.2/build/libs/TronStudio.jar!/org/tron/studio/application.fxml

        at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2571)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)
        at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)
        at org.tron.studio.MainApplication.start(MainApplication.java:144)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
        at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
        ... 1 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.Trampoline.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2566)
        ... 17 more
Caused by: java.io.UncheckedIOException: java.nio.charset.MalformedInputException: Input length = 1
        at java.io.BufferedReader$1.hasNext(Unknown Source)
        at java.util.Iterator.forEachRemaining(Unknown Source)
        at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source)
        at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
        at org.tron.studio.MainController.initialize(MainController.java:49)
        ... 27 more
Caused by: java.nio.charset.MalformedInputException: Input length = 1
        at java.nio.charset.CoderResult.throwException(Unknown Source)
        at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
        at sun.nio.cs.StreamDecoder.read(Unknown Source)
        at java.io.InputStreamReader.read(Unknown Source)
        at java.io.BufferedReader.fill(Unknown Source)
        at java.io.BufferedReader.readLine(Unknown Source)
        at java.io.BufferedReader.readLine(Unknown Source)
        ... 32 more
Exception running application org.tron.studio.MainApplication

Issue installing Tron Studio on Mac

Task :compileJava
/Users/cryptoskillz/Documents/cryptodevelopment/tron/tron-studio/src/main/java/org/tron/studio/utils/NetworkNameValidator.java:8: error: cannot access Parent
public class NetworkNameValidator extends ValidatorBase {
^
class file for javafx.scene.Parent not found
when i run gradlew build command

uint256[] error in Tron Studio

When I add this function into contract code and try to deploy, studio stops to work with errors in console.

Function:

function funcName(address _userAddress) public view returns(uint256[]) {
     uint256[] memory itemsTotal = new uint256[](totalItems);
     for(uint8 i = 0; i < totalItems; i++) {
        itemsTotal[i] = someOtherFunction(i, _userAddress);
     }
     return itemsTotal;
  }

Errors in console:

ERROR [JavaFX Application Thread] [DefaultConfig](DefaultConfig.java:28) Uncaught exception     Thread[JavaFX Application Thread,5,main],java.lang.RuntimeException:    java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1774)

and

Caused by: java.lang.UnsupportedOperationException: Unsupported type encountered: uint256[]
    at org.tron.abi.datatypes.generated.AbiTypes.getTypeReference(AbiTypes.java:742)
    at org.tron.studio.ui.RightTabRunController.getContractRunPanel(RightTabRunController.java:403)
    at org.tron.studio.ui.RightTabRunController.onClickDeploy(RightTabRunController.java:318)

This function works well in Ethereum.

How to work with arrays like uint256[] in Tron?

Thank you

Unable to start Tron Studio on Windows 10

Exception in Application start method
File saved!
Exception in Application stop method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)
at java.lang.Thread.run(Unknown Source)
Caused by: javafx.fxml.LoadException:
file:/C:/Users/yadub/Desktop/MyProjects/tronstudio/tron-studio/build/libs/TronStudio.jar!/org/tron/studio/application.fxml

    at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2571)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)
    at org.tron.studio.MainApplication.start(MainApplication.java:144)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
    ... 1 more

Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.reflect.misc.Trampoline.invoke(Unknown Source)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2566)
... 17 more
Caused by: java.lang.NegativeArraySizeException
at org.apache.commons.lang3.StringUtils.repeat(StringUtils.java:5236)
at org.tron.studio.utils.FormatCode.calIndentLevel(FormatCode.java:87)
at org.tron.studio.utils.FormatCode.correctIndent(FormatCode.java:67)
at org.tron.studio.utils.FormatCode.formatAllCode(FormatCode.java:63)
at org.tron.studio.utils.FormatCode.(FormatCode.java:31)
at org.tron.studio.MainController.initialize(MainController.java:73)
... 27 more
Exception running application org.tron.studio.MainApplication

Cannot Compile

Exception in Application start method
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtil s$2 (file:/E:/TRONPROTOCOLDIRECTORIES/tron-studio/build/libs/TronStudio.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.se curity.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframewor k.cglib.core.ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect ive access operations
WARNING: All illegal access operations will be denied in a future release
javax.xml.transform.TransformerException: java.io.FileNotFoundException: C:\User s\Sahil\TronStudio\record\network.xml (The system cannot find the path specified )
at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl .getOutputHandler(Unknown Source)
at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl .transform(Unknown Source)
at org.tron.studio.MainApplication.writeIntoXML(MainApplication.java:110 )
at org.tron.studio.MainApplication.stop(MainApplication.java:123)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launch Application1$10(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAnd Wait$11(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLat er$9(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLat er$10(Unknown Source)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unk nown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native M ethod)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3( Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\Users\Sahil\TronStudio\record\netwo rk.xml (The system cannot find the path specified)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
... 13 more

java.io.FileNotFoundException: C:\Users\Sahil\TronStudio\record\network.xml (The system cannot find the path specified)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at java.base/java.io.FileOutputStream.(Unknown Source)
at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl .getOutputHandler(Unknown Source)
at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl .transform(Unknown Source)
at org.tron.studio.MainApplication.writeIntoXML(MainApplication.java:110 )
at org.tron.studio.MainApplication.stop(MainApplication.java:123)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launch Application1$10(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAnd Wait$11(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLat er$9(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLat er$10(Unknown Source)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unk nown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native M ethod)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3( Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Exception in Application stop method
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplica tionWithArgs(Unknown Source)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplica tion(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: Exception in Application start method
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplica tion1(Unknown Source)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launch Application$2(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/sun/javafx/css/StyleConverterImpl
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPath OrNull(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unkn own Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown So urce)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(U nknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at com.jfoenix.controls.JFXButton$StyleableProperties.(JFXButton .java:208)
at com.jfoenix.controls.JFXButton.(JFXButton.java:156)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.base/java.lang.Class.newInstance(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader$InstanceDeclarationElement.constru ctValue(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processStartElement(U nknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader.processStartElement(Unknown Source )
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader.access$2700(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader$IncludeElement.constructValue(Unkn own Source)
at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processStartElement(U nknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader.processStartElement(Unknown Source )
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml/javafx.fxml.FXMLLoader.load(Unknown Source)
at org.tron.studio.MainApplication.start(MainApplication.java:144)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launch Application1$9(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAnd Wait$11(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLat er$9(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLat er$10(Unknown Source)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unk nown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native M ethod)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3( Unknown Source)
... 1 more
Caused by: java.lang.ClassNotFoundException: com.sun.javafx.css.StyleConverterIm pl
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown So urce)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(U nknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 43 more
Exception running application org.tron.studio.MainApplication

unable to start tronstudio on mac

version: 3.2.2
java version:
java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)
os:
macOS Mojave 10.14.1

after I execute: java -jar TronStudio-1.0.0.jar

`txs size=8
]
Exception in Application start method
File saved!
Exception in Application stop method
java.lang.reflect.InvocationTargetException
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:498)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
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:498)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)
at java.lang.Thread.run(Thread.java:748)
Caused by: javafx.fxml.LoadException:
file:/Users/yhw/tron/tron-studio/build/libs/TronStudio.jar!/org/tron/studio/application.fxml

    at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2571)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)
    at org.tron.studio.MainApplication.start(MainApplication.java:144)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)

Caused by: java.lang.reflect.InvocationTargetException
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:498)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2566)
... 14 more
Caused by: java.lang.NegativeArraySizeException
at org.apache.commons.lang3.StringUtils.repeat(StringUtils.java:5236)
at org.tron.studio.utils.FormatCode.calIndentLevel(FormatCode.java:87)
at org.tron.studio.utils.FormatCode.correctIndent(FormatCode.java:67)
at org.tron.studio.utils.FormatCode.formatAllCode(FormatCode.java:63)
at org.tron.studio.utils.FormatCode.(FormatCode.java:31)
at org.tron.studio.MainController.initialize(MainController.java:73)
... 24 more
Exception running application org.tron.studio.MainApplication
`

can not compile the contract

when i compile the contract in the tron studio, there have tips show success, but there have nothing in detail, just only empty, anybody know what happend???

java -jar TronStudio.jar error on ubuntu

for executing this command java -jar TronStudio.jar , I am getting following error:

Exception in thread "main" java.lang.reflect.InvocationTargetException
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:498)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.UnsupportedOperationException: Unable to open DISPLAY
at com.sun.glass.ui.gtk.GtkApplication.(GtkApplication.java:68)
at com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:41)
at com.sun.glass.ui.Application.run(Application.java:146)
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:257)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:211)
at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:675)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:337)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
... 5 more

tron-studio Test Net IP?

QQ截图20190424220357

Failed to deployContract .UNAVAILABLE:io exception
creation of Test pending

Do you know Test Net IP ?Thank you

Address compilation error

Hi,

I have a compilation error when I try to directly write an address inside my contract.

Here is how I'm trying to do :
address test = 0x(some address here);

But I get this : Error : Expected primary expression.

Thank you.

Failed to deploy on Mac

failed to deploy on macOS High Sierra

UI output:
Failed to deployContract. Please try again

console output:
Your smart contract address will be: TTweLUyvNnku3FeRtm1b7G4qNPkLe1Znvz Receive unsigned txid = 4f6763e12f5ae84b9aca180fdfe735b2f56848f7f6835026db8c7602b1f38df8 Signed txid = e48577a997ec03927456ed19b8ec336a56c99c9ebb47acad85cdcb96e846c1ba

Window 10 64bit error when start

When i hit: java -jar TronStudio.jar in directiory build\libs getting this error:

Exception in Application start method
Exception in Application stop method
java.lang.reflect.InvocationTargetException
        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:498)
        at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
        at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
        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:498)
        at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)
        at java.lang.Thread.run(Thread.java:748)
Caused by: javafx.fxml.LoadException:
file:/C:/Users/khanh/Downloads/tron-studio-studio/build/libs/TronStudio.jar!/org/tron/studio/application.fxml

        at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2571)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)
        at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)
        at org.tron.studio.MainApplication.start(MainApplication.java:85)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
        at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
        ... 1 more
Caused by: java.lang.reflect.InvocationTargetException
        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:498)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
        at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2566)
        ... 17 more
Caused by: java.lang.NegativeArraySizeException
        at org.apache.commons.lang3.StringUtils.repeat(StringUtils.java:5236)
        at org.tron.studio.utils.FormatCode.calIndentLevel(FormatCode.java:87)
        at org.tron.studio.utils.FormatCode.correctIndent(FormatCode.java:67)
        at org.tron.studio.utils.FormatCode.formatAllCode(FormatCode.java:63)
        at org.tron.studio.utils.FormatCode.<init>(FormatCode.java:31)
        at org.tron.studio.MainController.initialize(MainController.java:72)
        ... 27 more
Exception running application org.tron.studio.MainApplication

NullPointerException

Hi. I always get this exception in console when try to compile any solidity code (e.g. HelloWorld from the tutorial). There are no any reaction in the app after "Compile" pressed.

HelloWorld.sol java.lang.NullPointerException22:42:54.956 ERROR [Thread-89] [DefaultConfig](DefaultConfig.java:28) Uncaught exception Thread[Thread-89,5,main],java.lang.NullPointerException at org.tron.studio.solc.CompilationErrorResult.parse(CompilationErrorResult.java:65) at org.tron.studio.ui.RightTabCompileController.lambda$onClickCompile$10(RightTabCompileController.java:75) at java.lang.Thread.run(Thread.java:748)

Archlinux,
Oracle JDK
$ java -version java version "1.8.0_181" Java(TM) SE Runtime Environment (build 1.8.0_181-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

What could I do to make it working?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.