René's URL Explorer Experiment


Title: Concrete executor fails when generating tests for sockets · Issue #1590 · UnitTestBot/UTBotJava · GitHub

Open Graph Title: Concrete executor fails when generating tests for sockets · Issue #1590 · UnitTestBot/UTBotJava

X Title: Concrete executor fails when generating tests for sockets · Issue #1590 · UnitTestBot/UTBotJava

Description: To Reproduce Generate a test for the following method with sandbox.policy file configured: class SecurityCheck { public int connect(Socket socket) throws IOException { socket.connect(new InetSocketAddress("0.0.0.0", 22)); return 0; } } A...

Open Graph Description: To Reproduce Generate a test for the following method with sandbox.policy file configured: class SecurityCheck { public int connect(Socket socket) throws IOException { socket.connect(new InetSocket...

X Description: To Reproduce Generate a test for the following method with sandbox.policy file configured: class SecurityCheck { public int connect(Socket socket) throws IOException { socket.connect(new InetSocket...

Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1590

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Concrete executor fails when generating tests for sockets","articleBody":"**To Reproduce**\r\n\r\n1. Generate a test for the following method with sandbox.policy file configured:\r\n```java\r\nclass SecurityCheck {\r\n    public int connect(Socket socket) throws IOException {\r\n        socket.connect(new InetSocketAddress(\"0.0.0.0\", 22));\r\n        return 0;\r\n    }\r\n}\r\n```\r\n\r\n**Actual behavior**\r\n\r\nOne of the generated tests looks like this:\r\n```java\r\npublic void testConnect_errors() {\r\n    // Couldn't generate some tests. List of errors:\r\n    // \r\n    // 2 occurrences of:\r\n    // Default concrete execution failed\r\n\r\n    // 2 occurrences of:\r\n    /* RefType java.net.Inet6AddressImpl not loaded. If you tried to get the\r\n    RefType of a library class, did you call loadNecessaryClasses()? Otherwise\r\n    please check Soot's classpath. */\r\n\r\n}\r\n```\r\n\r\n2. Head to TEMP/UTBot/utbot-instrumentedprocess-errors folder and find the last log. This is where the stacktrace was found.\r\n\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n```\r\nWARNING: package jdk.internal.jtrfs not in java.base\r\n15:26:28.901 | INFO  | RdCoroutineScope          | RdCoroutineHost overridden \r\n15:26:28.953 | INFO  | ClientProtocolBuilder     | pid - 6292, port - 57422 \r\n15:26:28.955 | INFO  | ClientProtocolBuilder     | isJvm8 - false, isJvm9Plus - true, isWindows - true \r\nWARNING: Illegal reflective access by com.esotericsoftware.kryo.kryo5.unsafe.UnsafeUtil (file:/C:/DevFolder/UTBotJava/utbot-intellij/build/idea-sandbox/plugins/utbot-intellij/lib/utbot-instrumentation-2022.12-SNAPSHOT.jar) to constructor java.nio.DirectByteBuffer(long,int)\r\nWARNING: Illegal reflective access by com.esotericsoftware.kryo.kryo5.unsafe.UnsafeUtil (file:/C:/DevFolder/UTBotJava/utbot-intellij/build/idea-sandbox/plugins/utbot-intellij/lib/utbot-instrumentation-2022.12-SNAPSHOT.jar) to method sun.nio.ch.DirectBuffer.cleaner()\r\n15:26:29.326 | INFO  | InstrumentedProcess       | setup started \r\n15:26:29.357 | INFO  | InstrumentedProcess       | setup ended \r\n15:26:29.361 | INFO  | ClientProtocolBuilder     | signalled \r\n15:26:30.380 | INFO  | DynamicClassTransformer   | Transforming: SecurityCheck \r\n15:26:30.614 | ERROR | InstrumentedProcess       |  | org.utbot.framework.concrete.phases.ValueConstructionPhaseError: Error during phase of constructing values from models\r\n\tat org.utbot.framework.concrete.phases.ValueConstructionContext.wrapError(ValueConstructionContext.kt:29)\r\n\tat org.utbot.framework.concrete.phases.ValueConstructionContext.wrapError(ValueConstructionContext.kt:24)\r\n\tat org.utbot.framework.concrete.UtExecutionInstrumentation.invoke(UtExecutionInstrumentation.kt:243)\r\n\tat org.utbot.framework.concrete.UtExecutionInstrumentation.invoke(UtExecutionInstrumentation.kt:96)\r\n\tat org.utbot.instrumentation.process.InstrumentedProcessMainKt$setup$2.invoke(InstrumentedProcessMain.kt:128)\r\n\tat org.utbot.instrumentation.process.InstrumentedProcessMainKt$setup$2.invoke(InstrumentedProcessMain.kt:124)\r\n\tat org.utbot.rd.IdleWatchdog$wrapActiveCall$1$1.invoke(ClientProcessUtil.kt:96)\r\n\tat org.utbot.rd.IdleWatchdog.wrapActive(ClientProcessUtil.kt:83)\r\n\tat org.utbot.rd.IdleWatchdog$wrapActiveCall$1.invoke(ClientProcessUtil.kt:95)\r\n\tat com.jetbrains.rd.framework.IRdEndpoint$set$1.invoke(TaskInterfaces.kt:182)\r\n\tat com.jetbrains.rd.framework.IRdEndpoint$set$1.invoke(TaskInterfaces.kt:173)\r\n\tat com.jetbrains.rd.framework.impl.RdCall.onWireReceived(RdTask.kt:360)\r\n\tat com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:57)\r\n\tat com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:12)\r\n\tat com.jetbrains.rd.framework.impl.ProtocolContexts.readMessageContextAndInvoke(ProtocolContexts.kt:151)\r\n\tat com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:56)\r\n\tat com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:12)\r\n\tat com.jetbrains.rd.util.threading.SingleThreadSchedulerBase$queue$1.run(SingleThreadScheduler.kt:41)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\r\n\tat java.base/java.lang.Thread.run(Thread.java:829)\r\nCaused by: java.lang.reflect.InvocationTargetException\r\n\tat java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)\r\n\tat org.utbot.framework.concrete.constructors.MockValueConstructor$call$2.invoke(MockValueConstructor.kt:488)\r\n\tat org.utbot.framework.concrete.constructors.MockValueConstructor$call$2.invoke(MockValueConstructor.kt:487)\r\n\tat org.utbot.instrumentation.process.SecurityKt$runSandbox$1$1.invoke(Security.kt:38)\r\n\tat org.utbot.instrumentation.process.SecurityKt$sandbox$1.invoke(Security.kt:61)\r\n\tat org.utbot.instrumentation.process.SecurityKt$sandbox$2.invoke(Security.kt:77)\r\n\tat org.utbot.instrumentation.process.SecurityKt$sandbox$3.invoke(Security.kt:82)\r\n\tat org.utbot.instrumentation.process.SecurityKt$sandbox$4.run(Security.kt:88)\r\n\tat java.base/java.security.AccessController.doPrivileged(Native Method)\r\n\tat org.utbot.instrumentation.process.SecurityKt.sandbox(Security.kt:88)\r\n\tat org.utbot.instrumentation.process.SecurityKt.sandbox(Security.kt:82)\r\n\tat org.utbot.instrumentation.process.SecurityKt.sandbox(Security.kt:77)\r\n\tat org.utbot.instrumentation.process.SecurityKt.sandbox(Security.kt:61)\r\n\tat org.utbot.instrumentation.process.SecurityKt.runSandbox(Security.kt:38)\r\n\tat org.utbot.framework.concrete.constructors.MockValueConstructor.call(MockValueConstructor.kt:487)\r\n\tat org.utbot.framework.concrete.constructors.MockValueConstructor.updateWithExecutableCallModel(MockValueConstructor.kt:426)\r\n\tat org.utbot.framework.concrete.constructors.MockValueConstructor.constructFromAssembleModel(MockValueConstructor.kt:367)\r\n\tat org.utbot.framework.concrete.constructors.MockValueConstructor.construct(MockValueConstructor.kt:136)\r\n\tat org.utbot.framework.concrete.constructors.MockValueConstructor.constructMethodParameters(MockValueConstructor.kt:111)\r\n\tat org.utbot.framework.concrete.phases.ValueConstructionContext.constructParameters(ValueConstructionContext.kt:39)\r\n\tat org.utbot.framework.concrete.UtExecutionInstrumentation.invoke(UtExecutionInstrumentation.kt:136)\r\n\t... 18 more\r\nCaused by: java.lang.IllegalArgumentException: port out of range:-1\r\n\tat java.base/java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)\r\n\tat java.base/java.net.InetSocketAddress.\u003cinit\u003e(InetSocketAddress.java:224)\r\n\tat java.base/java.net.Socket.\u003cinit\u003e(Socket.java:395)\r\n\t... 42 more\r\n```\r\n\r\n**Environment**\r\n\r\n- JDK11\r\n- Fresh main\r\n- sandbox.policy file\r\n\r\n","author":{"url":"https://github.com/sofurihafe","@type":"Person","name":"sofurihafe"},"datePublished":"2022-12-26T12:52:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1590/UTBotJava/issues/1590"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c1310452-b848-3f88-1629-b8c2958104a6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCD56:1D22:7DF571:A708AD:698D88F0
html-safe-nonceb6cf8a172afa751a56db539086b50a29d7423b02da31c3b25a963022d0d30af5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDU2OjFEMjI6N0RGNTcxOkE3MDhBRDo2OThEODhGMCIsInZpc2l0b3JfaWQiOiI2MDA2NzU2OTA5MDc1MjM3MTA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb70df33130b76ac781a8ea18ee217b9744905b1cd6a7c8eacca066533cd75bc3
hovercard-subject-tagissue:1510926223
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UnitTestBot/UTBotJava/1590/issue_layout
twitter:imagehttps://opengraph.githubassets.com/30dbd40fec3710cd9b2c8327b576677fc2cd7ca5d296370e3e9e0beee2a0907d/UnitTestBot/UTBotJava/issues/1590
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/30dbd40fec3710cd9b2c8327b576677fc2cd7ca5d296370e3e9e0beee2a0907d/UnitTestBot/UTBotJava/issues/1590
og:image:altTo Reproduce Generate a test for the following method with sandbox.policy file configured: class SecurityCheck { public int connect(Socket socket) throws IOException { socket.connect(new InetSocket...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesofurihafe
hostnamegithub.com
expected-hostnamegithub.com
Nonec0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a
turbo-cache-controlno-preview
go-importgithub.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git
octolytics-dimension-user_id87413538
octolytics-dimension-user_loginUnitTestBot
octolytics-dimension-repository_id480810501
octolytics-dimension-repository_nwoUnitTestBot/UTBotJava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id480810501
octolytics-dimension-repository_network_root_nwoUnitTestBot/UTBotJava
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4c8f4bd0b67d7f1472d0ab3f49827eaae062a36b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/UnitTestBot/UTBotJava/issues/1590#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FUnitTestBot%2FUTBotJava%2Fissues%2F1590
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FUnitTestBot%2FUTBotJava%2Fissues%2F1590
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=UnitTestBot%2FUTBotJava
Reloadhttps://github.com/UnitTestBot/UTBotJava/issues/1590
Reloadhttps://github.com/UnitTestBot/UTBotJava/issues/1590
Reloadhttps://github.com/UnitTestBot/UTBotJava/issues/1590
UnitTestBot https://github.com/UnitTestBot
UTBotJavahttps://github.com/UnitTestBot/UTBotJava
Notifications https://github.com/login?return_to=%2FUnitTestBot%2FUTBotJava
Fork 45 https://github.com/login?return_to=%2FUnitTestBot%2FUTBotJava
Star 142 https://github.com/login?return_to=%2FUnitTestBot%2FUTBotJava
Code https://github.com/UnitTestBot/UTBotJava
Issues 386 https://github.com/UnitTestBot/UTBotJava/issues
Pull requests 33 https://github.com/UnitTestBot/UTBotJava/pulls
Discussions https://github.com/UnitTestBot/UTBotJava/discussions
Actions https://github.com/UnitTestBot/UTBotJava/actions
Projects 1 https://github.com/UnitTestBot/UTBotJava/projects
Wiki https://github.com/UnitTestBot/UTBotJava/wiki
Security 0 https://github.com/UnitTestBot/UTBotJava/security
Insights https://github.com/UnitTestBot/UTBotJava/pulse
Code https://github.com/UnitTestBot/UTBotJava
Issues https://github.com/UnitTestBot/UTBotJava/issues
Pull requests https://github.com/UnitTestBot/UTBotJava/pulls
Discussions https://github.com/UnitTestBot/UTBotJava/discussions
Actions https://github.com/UnitTestBot/UTBotJava/actions
Projects https://github.com/UnitTestBot/UTBotJava/projects
Wiki https://github.com/UnitTestBot/UTBotJava/wiki
Security https://github.com/UnitTestBot/UTBotJava/security
Insights https://github.com/UnitTestBot/UTBotJava/pulse
New issuehttps://github.com/login?return_to=https://github.com/UnitTestBot/UTBotJava/issues/1590
New issuehttps://github.com/login?return_to=https://github.com/UnitTestBot/UTBotJava/issues/1590
#1722https://github.com/UnitTestBot/UTBotJava/pull/1722
Concrete executor fails when generating tests for socketshttps://github.com/UnitTestBot/UTBotJava/issues/1590#top
#1722https://github.com/UnitTestBot/UTBotJava/pull/1722
https://github.com/sergeypospelov
comp-symbolic-engineIssue is related to the symbolic execution enginehttps://github.com/UnitTestBot/UTBotJava/issues?q=state%3Aopen%20label%3A%22comp-symbolic-engine%22
ctg-bugIssue is a bughttps://github.com/UnitTestBot/UTBotJava/issues?q=state%3Aopen%20label%3A%22ctg-bug%22
https://github.com/sofurihafe
https://github.com/sofurihafe
sofurihafehttps://github.com/sofurihafe
on Dec 26, 2022https://github.com/UnitTestBot/UTBotJava/issues/1590#issue-1510926223
sergeypospelovhttps://github.com/sergeypospelov
comp-symbolic-engineIssue is related to the symbolic execution enginehttps://github.com/UnitTestBot/UTBotJava/issues?q=state%3Aopen%20label%3A%22comp-symbolic-engine%22
ctg-bugIssue is a bughttps://github.com/UnitTestBot/UTBotJava/issues?q=state%3Aopen%20label%3A%22ctg-bug%22
UTBot Javahttps://github.com/orgs/UnitTestBot/projects/2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.