[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
connection to SAP system through package sapjavaconnection(sapjco3)  XML
Forum Index -> Development
Author Message
afilazzola



Joined: 11/07/2024 16:27:48
Messages: 3
Offline

Hello guys,

could you help with the exception that I got, when I try to connect to sap system with sap java connection lpackage, as I showed in attached file

thanks
Regards
Antonio
 Filename CC_JCo_LT.odt [Disk] Download
 Description
 Filesize 69 Kbytes
 Downloaded:  409 time(s)

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Please check the messages in "Runtime Messages" below the preview area of the layout editor. There you should get more information.

For development purpose define the logging as follows: open Configuration > Logging in the tools. Define in the editor:

Code:
 <logging level="INFO"
          console="true"
          outputclassmethod="false">
 <loglevelmissingpropertyget level="INFO" stacktrace="true"/>
 </logging>
 


You then receive a stacktrace in the console and in the log.
Logs are in tomcat/work/Catalina/localhost/<yourapp>/

Kind regards! Björn


Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

...and just to add: the problem should be: there is a problem in the constructor in which you access SAP, the error is not caught within the constructor so it is passed to the one calling the instance, which is the Dispatcher (as you correctly found out)...

If you catch the error in the constructor, then you directly get the error and you can handle on your own:

Code:
 public PersonGridUI()
 {
     try
     {
          your existing code
     }
     catch (Throwable t)
     {
         t.printStacktrace();
     }
 }
 


Kind regards! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team