Skip to main content
JDias
Associate II
March 14, 2019
Solved

Hello, when i run as application my project in Eclipse after create controler pakage it sends this message: Caused by: java.lang.NullPointerException at com.st.myst25app.view.NfcTagController.initialize(NfcTagController.java:29) ... 23 more

  • March 14, 2019
  • 17 replies
  • 3239 views

..

    This topic has been closed for replies.
    Best answer by Damien G.

    The UnsatisfiedLinkError occurs when the path environment variable is not set to include the dependency directory.

    Please check the answer to this question to update it.

    17 replies

    ST Employee
    March 15, 2019

    Hello,

    it looks like you are trying to build the example project for a PC application using the ST25 SDK.

    I invite you to read the detailed guide provided in the SDK and located in

    ST25SDK-1.3.2\integration\pc\documentation\ST25PcDemoApp_software_guide.pdf

    It describes how to set up your Eclipse environment.

    Regards,

    Damien

    JDias
    JDiasAuthor
    Associate II
    March 19, 2019

    Hello Damien.

    Sorry but isn't needed to invite me to read the guide , because i am Reading it and that is the reason of my question. I am stuck on page 25 and 26. it is when i add the lines for readers in controller and i can't run the application and show me the message i mentioned before!

    Thanks

    ST Employee
    March 20, 2019

    Hi and thanks for the extra information.

    Did you trace the NullPointerException to a line in particular?

    As it occurs in initialize(), my guess is that it comes from a Label node that has a different name in the fxml file and in the controller. It is hard to say for sure without seeing your code.

    If you import the st25PcDemoApp into Eclipse (File > Open Projects from File System, then import source from ST25SDK-1.3.2\integration\pc\examples\st25PcDemoApp), do you still see the problem?

    JDias
    JDiasAuthor
    Associate II
    March 20, 2019

    Hello Damien,

    Thanks for your quick response.

    How can i trace the NullPointerException to a line?I am a beginner in this?Can you help me ?

    i am sending you the import in Eclipse and my Project.

    Thanks again.

    Em qua, 20 de mar de 2019 às 06:31, ST Community escreveu:

    ST Employee
    March 20, 2019

    In the Eclipse console window, where the following line appears, click on the first line. It should jump to the line in your code where the null pointer was dereferenced.

    Caused by: java.lang.NullPointerException

    at com.st.myst25app.view.NfcTagController.initialize(NfcTagController.java:29)

    Please report this line so we can figure out the cause of the problem.

    Thanks,

    Damien