{"action":"created","issue":{"url":"https://api.github.com/repos/oracle/graal/issues/1296","repository_url":"https://api.github.com/repos/oracle/graal","labels_url":"https://api.github.com/repos/oracle/graal/issues/1296/labels{/name}","comments_url":"https://api.github.com/repos/oracle/graal/issues/1296/comments","events_url":"https://api.github.com/repos/oracle/graal/issues/1296/events","html_url":"https://github.com/oracle/graal/issues/1296","id":445273599,"node_id":"MDU6SXNzdWU0NDUyNzM1OTk=","number":1296,"title":"Minimal JDBC example hanging","user":{"login":"elliots","id":622455,"node_id":"MDQ6VXNlcjYyMjQ1NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/622455?v=4","gravatar_id":"","url":"https://api.github.com/users/elliots","html_url":"https://github.com/elliots","followers_url":"https://api.github.com/users/elliots/followers","following_url":"https://api.github.com/users/elliots/following{/other_user}","gists_url":"https://api.github.com/users/elliots/gists{/gist_id}","starred_url":"https://api.github.com/users/elliots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliots/subscriptions","organizations_url":"https://api.github.com/users/elliots/orgs","repos_url":"https://api.github.com/users/elliots/repos","events_url":"https://api.github.com/users/elliots/events{/privacy}","received_events_url":"https://api.github.com/users/elliots/received_events","type":"User","site_admin":false},"labels":[{"id":837757615,"node_id":"MDU6TGFiZWw4Mzc3NTc2MTU=","url":"https://api.github.com/repos/oracle/graal/labels/substrate","name":"substrate","color":"e2c102","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-05-17T05:43:17Z","updated_at":"2019-05-17T09:34:54Z","closed_at":null,"author_association":"NONE","body":"Hi, I'm trying to use JDBC from a native-image but had a problem with the build executable hanging when trying to connect to the database.\r\n\r\nWhen trying to isolate the problem to create an issue, my project started working. Adding back things until it broke again I've worked out if I annotate one method in my project with @CEntryPoint but build as an executable instead of a shared library, the executable will start but not connect to a database.\r\n\r\nWhich is a bit strange obviously. It hangs somewhere inside Driver.connect.\r\nIf I comment out the @CEntryPoint annotation, it works.\r\nMy main method doesn't refer to the class with the annotation.\r\nThe class with the annotation is totally empty and imports nothing except IsolateThread, CEntryPoint, and CCharPointer.\r\n\r\nIs this known/expected? Should I make a project that demonstrates it?"},"comment":{"url":"https://api.github.com/repos/oracle/graal/issues/comments/493390213","html_url":"https://github.com/oracle/graal/issues/1296#issuecomment-493390213","issue_url":"https://api.github.com/repos/oracle/graal/issues/1296","id":493390213,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5MzM5MDIxMw==","user":{"login":"elliots","id":622455,"node_id":"MDQ6VXNlcjYyMjQ1NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/622455?v=4","gravatar_id":"","url":"https://api.github.com/users/elliots","html_url":"https://github.com/elliots","followers_url":"https://api.github.com/users/elliots/followers","following_url":"https://api.github.com/users/elliots/following{/other_user}","gists_url":"https://api.github.com/users/elliots/gists{/gist_id}","starred_url":"https://api.github.com/users/elliots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliots/subscriptions","organizations_url":"https://api.github.com/users/elliots/orgs","repos_url":"https://api.github.com/users/elliots/repos","events_url":"https://api.github.com/users/elliots/events{/privacy}","received_events_url":"https://api.github.com/users/elliots/received_events","type":"User","site_admin":false},"created_at":"2019-05-17T09:34:54Z","updated_at":"2019-05-17T09:34:54Z","author_association":"NONE","body":"What I'm saying is that if I have a class with an CEntryPoint whose name is \"connect\", I can't use JDBC drivers... in a native executable that doesn't even use the class with the CEntryPoint. I'm not calling that entrypoint. I'm not building it as a shared library."}}
{"actor":{"display_login":"elliots"}}