问:
Playwright chrome instance does not respond while opening new page
I am using playwright-rust implementation inside the docker, trying to automate a website, but the issue I am facing is when it reach to open a new page, it stop responding in side the docker. There are the logs I get from the playwright.

```<code>[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] SEND Req { id: 10, guid: "browser-type@43af88863e863765963c2986930eac42", method: "launch", params: {"headless": Bool(true)} }
None
Committing offsets: Ok(())
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] RECV {"guid":"browser-type@43af88863e863765963c2986930eac42","method":"__create__","params":{"type":"Browser","initializer":{"version":"92.0.4498.0","name":"chromium"},"guid":"browser@aeeb8a7bc1cd03be692db83160e2636d"}}
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] RECV {"id":10,"result":{"browser":{"guid":"browser@aeeb8a7bc1cd03be692db83160e2636d"}}}
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] SEND Req { id: 11, guid: "browser@aeeb8a7bc1cd03be692db83160e2636d", method: "newContext", params: {"sdkLanguage": String("")} }
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] RECV {"guid":"browser@aeeb8a7bc1cd03be692db83160e2636d","method":"__create__","params":{"type":"BrowserContext","initializer":{"isChromium":true},"guid":"browser-context@744e111f024c383f760775a92d3f98cb"}}
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] RECV {"id":11,"result":{"context":{"guid":"browser-context@744e111f024c383f760775a92d3f98cb"}}}
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] SEND Req { id: 12, guid: "browser-context@744e111f024c383f760775a92d3f98cb", method: "newPage", params: {} }''
</code>```

This is the Rust code where it is being called.

```<code>    pub async fn build_browser(
         proxy: Option<ProxySettings>,
         playwright: Arc<Playwright>,
    ) -> Result<(Arc<Browser>, Arc<BrowserContext>)> {
        debug!("creating new browser");
        //should be switchable to any browser later with configurations for now chromimum
        let browser_type = playwright.chromium();
        let mut browser_launcher = browser_type.launcher().headless(true);
        if !proxy.is_none() {
            browser_launcher = browser_launcher.proxy(proxy.unwrap());
        }

        let browser = Arc::new(browser_launcher.launch().await?);
        let browser_context = Arc::new(browser.context_builder().build().await?);

        debug!("browser has been created");
        Ok((browser, browser_context))
    }
    pub async fn open_new(
        email: &str,
        password_hash: &str,
        proxy: Option<ProxySettings>,
        playwright: Arc<Playwright>,
        cookies_manager: Arc<Mutex<CookiesManager>>,
    ) -> Result<(Self, bool)> {
        info!("We are trying to login in the browser");
        let (browser, browser_context) = Self::build_browser(proxy, playwright.clone()).await?;
        // keep using tab for better understanding
        info!("browser context built");
        let _tab = browser_context.new_page().await.unwrap();
        //...
    }
</code>```

after browser_context.new_page().await.unwrap(); is called it does not give any response keep hanging there. But contrary to this it works with run out of the docker. And one more interesting thing is if I see the docker container process we can see chrome instance is running there.

```<code>UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
root                19272               19201               0                   22:57               ?                   00:00:10            /app/target/release/service
root                19550               19272               0                   22:57               ?                   00:00:00            /bin/sh /root/.cache/ms-playwright/playwright-rust/driver/playwright.sh run-driver
root                19554               19550               0                   22:57               ?                   00:00:00            /root/.cache/ms-playwright/playwright-rust/driver/node /root/.cache/ms-playwright/playwright-rust/driver/package/lib/cli/cli.js run-driver
root                20265               19554               31                  23:08               ?                   00:14:57            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --user-data-dir=/tmp/playwright_chromiumdev_profile-sJjhND --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window
root                20267               20265               0                   23:08               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-zygote-sandbox --no-sandbox --headless --headless
root                20268               20265               0                   23:08               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-sandbox --headless --headless
root                20286               20268               81                  23:08               ?                   00:39:02            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=renderer --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --force-color-profile=srgb --remote-debugging-pipe --allow-pre-commit-input --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --ozone-platform=headless --field-trial-handle=5151956782728765150,10929878616647120254,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --disa
root                20321               20267               0                   23:08               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=gpu-process --field-trial-handle=5151956782728765150,10929878616647120254,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --no-sandbox --disable-dev-shm-usage --disable-breakpad --headless --ozone-platform=headless --headless --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --use-gl=disabled --override-use-software-gl-for-tests --shared-files
root                22047               19554               31                  23:17               ?                   00:12:11            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --user-data-dir=/tmp/playwright_chromiumdev_profile-c8EaqE --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window
root                22049               22047               0                   23:17               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-zygote-sandbox --no-sandbox --headless --headless
root                22050               22047               0                   23:17               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-sandbox --headless --headless
root                22067               22050               81                  23:17               ?                   00:31:12            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=renderer --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --force-color-profile=srgb --remote-debugging-pipe --allow-pre-commit-input --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --ozone-platform=headless --field-trial-handle=3248009288479842313,6307992858770365040,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --disab
root                22097               22049               0                   23:17               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=gpu-process --field-trial-handle=3248009288479842313,6307992858770365040,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --no-sandbox --disable-dev-shm-usage --disable-breakpad --headless --ozone-platform=headless --headless --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --use-gl=disabled --override-use-software-gl-for-tests --shared-files
root                23901               19554               30                  23:44               ?                   00:03:35            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --user-data-dir=/tmp/playwright_chromiumdev_profile-THqdoC --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window
root                23903               23901               0                   23:44               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-zygote-sandbox --no-sandbox --headless --headless
root                23904               23901               0                   23:44               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-sandbox --headless --headless
root                23921               23904               80                  23:44               ?                   00:09:21            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=renderer --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --force-color-profile=srgb --remote-debugging-pipe --allow-pre-commit-input --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --ozone-platform=headless --field-trial-handle=10776091224041476131,14293814787319111420,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --dis
root                23961               23903               0                   23:44               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=gpu-process --field-trial-handle=10776091224041476131,14293814787319111420,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --no-sandbox --disable-dev-shm-usage --disable-breakpad --headless --ozone-platform=headless --headless --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --use-gl=disabled --override-use-software-gl-for-tests --shared-files
root                24917               19554               24                  23:55               ?                   00:00:04            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --user-data-dir=/tmp/playwright_chromiumdev_profile-K0z8PD --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window
root                24919               24917               0                   23:55               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-zygote-sandbox --no-sandbox --headless --headless
root                24920               24917               0                   23:55               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-sandbox --headless --headless
root                24938               24920               64                  23:55               ?                   00:00:12            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=renderer --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --force-color-profile=srgb --remote-debugging-pipe --allow-pre-commit-input --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --ozone-platform=headless --field-trial-handle=6371735118124582706,3023160193025494599,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --disab
root                24963               24919               0                   23:55               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=gpu-process --field-trial-handle=6371735118124582706,3023160193025494599,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --no-sandbox --disable-dev-shm-usage --disable-breakpad --headless --ozone-platform=headless --headless --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --use-gl=disabled --override-use-software-gl-for-tests --shared-files
</code>```

can't figure it out what's wrong. Any help would be appreciated.

Body:
I am using playwright-rust implementation inside the docker, trying to automate a website, but the issue I am facing is when it reach to open a new page, it stop responding in side the docker. There are the logs I get from the playwright.

[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] SEND Req { id: 10, guid: "browser-type@43af88863e863765963c2986930eac42", method: "launch", params: {"headless": Bool(true)} }
None
Committing offsets: Ok(())
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] RECV {"guid":"browser-type@43af88863e863765963c2986930eac42","method":"__create__","params":{"type":"Browser","initializer":{"version":"92.0.4498.0","name":"chromium"},"guid":"browser@aeeb8a7bc1cd03be692db83160e2636d"}}
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] RECV {"id":10,"result":{"browser":{"guid":"browser@aeeb8a7bc1cd03be692db83160e2636d"}}}
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] SEND Req { id: 11, guid: "browser@aeeb8a7bc1cd03be692db83160e2636d", method: "newContext", params: {"sdkLanguage": String("")} }
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] RECV {"guid":"browser@aeeb8a7bc1cd03be692db83160e2636d","method":"__create__","params":{"type":"BrowserContext","initializer":{"isChromium":true},"guid":"browser-context@744e111f024c383f760775a92d3f98cb"}}
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] RECV {"id":11,"result":{"context":{"guid":"browser-context@744e111f024c383f760775a92d3f98cb"}}}
[2023-01-12T18:55:38Z DEBUG playwright::imp::core::transport] SEND Req { id: 12, guid: "browser-context@744e111f024c383f760775a92d3f98cb", method: "newPage", params: {} }''

This is the Rust code where it is being called.

    pub async fn build_browser(
         proxy: Option<ProxySettings>,
         playwright: Arc<Playwright>,
    ) -> Result<(Arc<Browser>, Arc<BrowserContext>)> {
        debug!("creating new browser");
        //should be switchable to any browser later with configurations for now chromimum
        let browser_type = playwright.chromium();
        let mut browser_launcher = browser_type.launcher().headless(true);
        if !proxy.is_none() {
            browser_launcher = browser_launcher.proxy(proxy.unwrap());
        }

        let browser = Arc::new(browser_launcher.launch().await?);
        let browser_context = Arc::new(browser.context_builder().build().await?);

        debug!("browser has been created");
        Ok((browser, browser_context))
    }
    pub async fn open_new(
        email: &str,
        password_hash: &str,
        proxy: Option<ProxySettings>,
        playwright: Arc<Playwright>,
        cookies_manager: Arc<Mutex<CookiesManager>>,
    ) -> Result<(Self, bool)> {
        info!("We are trying to login in the browser");
        let (browser, browser_context) = Self::build_browser(proxy, playwright.clone()).await?;
        // keep using tab for better understanding
        info!("browser context built");
        let _tab = browser_context.new_page().await.unwrap();
        //...
    }

after browser_context.new_page().await.unwrap(); is called it does not give any response keep hanging there. But contrary to this it works with run out of the docker. And one more interesting thing is if I see the docker container process we can see chrome instance is running there.

UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
root                19272               19201               0                   22:57               ?                   00:00:10            /app/target/release/service
root                19550               19272               0                   22:57               ?                   00:00:00            /bin/sh /root/.cache/ms-playwright/playwright-rust/driver/playwright.sh run-driver
root                19554               19550               0                   22:57               ?                   00:00:00            /root/.cache/ms-playwright/playwright-rust/driver/node /root/.cache/ms-playwright/playwright-rust/driver/package/lib/cli/cli.js run-driver
root                20265               19554               31                  23:08               ?                   00:14:57            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --user-data-dir=/tmp/playwright_chromiumdev_profile-sJjhND --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window
root                20267               20265               0                   23:08               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-zygote-sandbox --no-sandbox --headless --headless
root                20268               20265               0                   23:08               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-sandbox --headless --headless
root                20286               20268               81                  23:08               ?                   00:39:02            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=renderer --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --force-color-profile=srgb --remote-debugging-pipe --allow-pre-commit-input --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --ozone-platform=headless --field-trial-handle=5151956782728765150,10929878616647120254,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --disa
root                20321               20267               0                   23:08               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=gpu-process --field-trial-handle=5151956782728765150,10929878616647120254,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --no-sandbox --disable-dev-shm-usage --disable-breakpad --headless --ozone-platform=headless --headless --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --use-gl=disabled --override-use-software-gl-for-tests --shared-files
root                22047               19554               31                  23:17               ?                   00:12:11            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --user-data-dir=/tmp/playwright_chromiumdev_profile-c8EaqE --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window
root                22049               22047               0                   23:17               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-zygote-sandbox --no-sandbox --headless --headless
root                22050               22047               0                   23:17               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-sandbox --headless --headless
root                22067               22050               81                  23:17               ?                   00:31:12            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=renderer --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --force-color-profile=srgb --remote-debugging-pipe --allow-pre-commit-input --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --ozone-platform=headless --field-trial-handle=3248009288479842313,6307992858770365040,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --disab
root                22097               22049               0                   23:17               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=gpu-process --field-trial-handle=3248009288479842313,6307992858770365040,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --no-sandbox --disable-dev-shm-usage --disable-breakpad --headless --ozone-platform=headless --headless --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --use-gl=disabled --override-use-software-gl-for-tests --shared-files
root                23901               19554               30                  23:44               ?                   00:03:35            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --user-data-dir=/tmp/playwright_chromiumdev_profile-THqdoC --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window
root                23903               23901               0                   23:44               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-zygote-sandbox --no-sandbox --headless --headless
root                23904               23901               0                   23:44               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-sandbox --headless --headless
root                23921               23904               80                  23:44               ?                   00:09:21            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=renderer --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --force-color-profile=srgb --remote-debugging-pipe --allow-pre-commit-input --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --ozone-platform=headless --field-trial-handle=10776091224041476131,14293814787319111420,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --dis
root                23961               23903               0                   23:44               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=gpu-process --field-trial-handle=10776091224041476131,14293814787319111420,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --no-sandbox --disable-dev-shm-usage --disable-breakpad --headless --ozone-platform=headless --headless --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --use-gl=disabled --override-use-software-gl-for-tests --shared-files
root                24917               19554               24                  23:55               ?                   00:00:04            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --user-data-dir=/tmp/playwright_chromiumdev_profile-K0z8PD --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-startup-window
root                24919               24917               0                   23:55               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-zygote-sandbox --no-sandbox --headless --headless
root                24920               24917               0                   23:55               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=zygote --no-sandbox --headless --headless
root                24938               24920               64                  23:55               ?                   00:00:12            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=renderer --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --force-color-profile=srgb --remote-debugging-pipe --allow-pre-commit-input --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --ozone-platform=headless --field-trial-handle=6371735118124582706,3023160193025494599,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --disab
root                24963               24919               0                   23:55               ?                   00:00:00            /root/.cache/ms-playwright/chromium-878941/chrome-linux/chrome --type=gpu-process --field-trial-handle=6371735118124582706,3023160193025494599,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=BlinkGenPropertyTrees,ImprovedCookieControls,LazyFrameLoading,PaintHolding,SameSiteByDefaultCookies,TranslateUI --no-sandbox --disable-dev-shm-usage --disable-breakpad --headless --ozone-platform=headless --headless --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --use-gl=disabled --override-use-software-gl-for-tests --shared-files

can't figure it out what's wrong. Any help would be appreciated.


来源: stackexchange

问:
Gerrit: no longer able to "submit whole topic"
The last time I used Gerrit (several years ago, might have been in the context of Android), I remember that it was only possible to submit changes in different repositories with the same topic at the same time. A quick Internet search for "Gerrit submit whole topic" seems to confirm this. But now, with version 3.7.0, when I approve one change with a given topic, while other changes with the same topic are not yet approved, I am still able to submit that change. Furthermore, when all changes with a topic are approved, no "submit whole topic" button appears in the UI as it used to.

When did this change? What is now the correct way to force changes across several repositories to be submitted together?

ContentLicense: CC BY-SA 4.0


问:
Spring boot admin console in Istio
We are running spring boot admin console inside Istio and trying to connect to pods with actuator end points. When SBAC tries to connect to a pod, it gives 502. We checked the logs and it sounds that SBAC is duplicating the IP address in the request URL

```<code>
boot-admin-console 2023-01-12 19:26:54.480 DEBUG 1 --- [or-http-epoll-3] r.n.http.client.HttpClientOperations
   : [db6578e5-10, L:/172.30.208.27:34026 - R:172.30.198.29/172.30.198.29:8080] Received response (auto-read:false) : RE
 SPONSE(decodeResult: success, version: HTTP/1.1)
 spring-boot-admin-console HTTP/1.1 200 OK
 spring-boot-admin-console x-content-type-options:
 spring-boot-admin-console x-xss-protection:
 spring-boot-admin-console cache-control:
 spring-boot-admin-console pragma:
 spring-boot-admin-console expires:
 spring-boot-admin-console x-frame-options:
 spring-boot-admin-console content-type:
 spring-boot-admin-console date:
 spring-boot-admin-console x-envoy-upstream-service-time:
 spring-boot-admin-console server:
 spring-boot-admin-console transfer-encoding:
 spring-boot-admin-console 2023-01-12 19:26:54.480 DEBUG 1 --- [or-http-epoll-3] r.n.r.DefaultPooledConnectionProvider
   : [db6578e5-10, L:/172.30.208.27:34026 - R:172.30.198.29/172.30.198.29:8080] onStateChange(GET{uri=/actuator/health,
 connection=PooledConnection{channel=[id: 0xdb6578e5, L:/172.30.208.27:34026 - R:172.30.198.29/172.30.198.29:8080]}}, [r
 esponse_received])
</code>```

Any ideas?

We have the headless service for the target service to allow connectivity between SBAC and the application pod. I curled the target pod actuator endpoint from the sbac pod and it is accessible but from the UI is giving 502

Title: Spring boot admin console in Istio

Body:
We are running spring boot admin console inside Istio and trying to connect to pods with actuator end points. When SBAC tries to connect to a pod, it gives 502. We checked the logs and it sounds that SBAC is duplicating the IP address in the request URL

boot-admin-console 2023-01-12 19:26:54.480 DEBUG 1 --- [or-http-epoll-3] r.n.http.client.HttpClientOperations
   : [db6578e5-10, L:/172.30.208.27:34026 - R:172.30.198.29/172.30.198.29:8080] Received response (auto-read:false) : RE
 SPONSE(decodeResult: success, version: HTTP/1.1)
 spring-boot-admin-console HTTP/1.1 200 OK
 spring-boot-admin-console x-content-type-options:
 spring-boot-admin-console x-xss-protection:
 spring-boot-admin-console cache-control:
 spring-boot-admin-console pragma:
 spring-boot-admin-console expires:
 spring-boot-admin-console x-frame-options:
 spring-boot-admin-console content-type:
 spring-boot-admin-console date:
 spring-boot-admin-console x-envoy-upstream-service-time:
 spring-boot-admin-console server:
 spring-boot-admin-console transfer-encoding:
 spring-boot-admin-console 2023-01-12 19:26:54.480 DEBUG 1 --- [or-http-epoll-3] r.n.r.DefaultPooledConnectionProvider
   : [db6578e5-10, L:/172.30.208.27:34026 - R:172.30.198.29/172.30.198.29:8080] onStateChange(GET{uri=/actuator/health,
 connection=PooledConnection{channel=[id: 0xdb6578e5, L:/172.30.208.27:34026 - R:172.30.198.29/172.30.198.29:8080]}}, [r
 esponse_received])

Any ideas?

We have the headless service for the target service to allow connectivity between SBAC and the application pod. I curled the target pod actuator endpoint from the sbac pod and it is accessible but from the UI is giving 502


问:
How use FileField model with ReportBro with Django?
I have a FileField field in a Django model that I want to read to display in my ReportBro report that use AWS S3 Bucket.

```<code>class Inspection_File(models.Model):
inspection = models.ForeignKey(Inspection, null=True, on_delete=models.CASCADE,
                               related_name='fk_inspection_inspectionfile')
imageNumber = models.IntegerField(null=True, blank=True)
file_name = models.CharField(max_length=500, null=True, blank=True)
file = models.FileField(max_length=500, storage=InspectionDataStorage(), null=True, blank=True)
thumbnail = models.CharField(max_length=500, null=True, blank=True)
category = models.ForeignKey(Inspection_File_Category, null=True, on_delete=models.CASCADE,
                             related_name='fk_inspfilecategory_inspectionfile')
commentary = models.TextField(blank=True, null=True)

class Meta:
    db_table = 'ins\".\"file'
</code>```

ReportBro has 3 ways to print images, open a local file, by base64, or by URL images_reportbro.
However, in my case, using the URL is a very long process, so I need to read the file to keep it in memory and send it directly to the report.
Try using this code:

```<code>test = image.file.open(mode='rb')
</code>```

It has not worked, the report does not give me an error but the spaces appear blank, as if it did not recognize the type of file that I am sending.
But when I open a file from my directory it works.
When reviewing the data types I realized that locally I have an io.BufferedReader and in the other a FileField Class.

```<code>marker_image = open('media/db model.png', 'rb')
# <class '_io.BufferedReader'>
test = image.file.open(mode='rb')
# <class 'django.db.models.fields.files.FieldFile'>
</code>```

In theory, that would be the main problem why it doesn't work, does anyone know if a FileField can be transformed into a BufferedReader?

Body:
I have a FileField field in a Django model that I want to read to display in my ReportBro report that use AWS S3 Bucket.

class Inspection_File(models.Model):
inspection = models.ForeignKey(Inspection, null=True, on_delete=models.CASCADE,
                               related_name='fk_inspection_inspectionfile')
imageNumber = models.IntegerField(null=True, blank=True)
file_name = models.CharField(max_length=500, null=True, blank=True)
file = models.FileField(max_length=500, storage=InspectionDataStorage(), null=True, blank=True)
thumbnail = models.CharField(max_length=500, null=True, blank=True)
category = models.ForeignKey(Inspection_File_Category, null=True, on_delete=models.CASCADE,
                             related_name='fk_inspfilecategory_inspectionfile')
commentary = models.TextField(blank=True, null=True)

class Meta:
    db_table = 'ins\".\"file'

ReportBro has 3 ways to print images, open a local file, by base64, or by URL images_reportbro.
However, in my case, using the URL is a very long process, so I need to read the file to keep it in memory and send it directly to the report.
Try using this code:

test = image.file.open(mode='rb')

It has not worked, the report does not give me an error but the spaces appear blank, as if it did not recognize the type of file that I am sending.
But when I open a file from my directory it works.
When reviewing the data types I realized that locally I have an io.BufferedReader and in the other a FileField Class.

marker_image = open('media/db model.png', 'rb')
# <class '_io.BufferedReader'>
test = image.file.open(mode='rb')
# <class 'django.db.models.fields.files.FieldFile'>

In theory, that would be the main problem why it doesn't work, does anyone know if a FileField can be transformed into a BufferedReader?


问:
How can I fix this issue in Ruby?
I have the following code, the purpose is to create read, and add to JSON file in Ruby
I will copy the code and the error am getting down here

game_module.rb

```<code>    require 'json'
require_relative '../classes/game'
require 'date'

def load_games
    data = []
    file = './json_files/games.json'
    if File.exist?(file)
      JSON.parse(File.read(file)).each do |game|
        publish_date = game['publish_date'] ? Date.parse(game['publish_date']) : nil
        last_played_at = game['last_played_date'] ? Date.parse(game['last_played_date']) : nil
        data.push(Game.new(publish_date, game['multiplayer'], last_played_at, archived: game['archived']))
      end
    else
      File.write('./json_files/games.json', [])
    end

    data
  end

  def create_game
    data = []
    @games.each do |game|
      data.push(game.publish_date, game.multiplayer, game.last_played_date, archived: game.archived)
    end
    File.write('./json_files/games.json', JSON.generate(data))
  end
</code>```

game.rb file

```<code>    require_relative './items'
require 'date'

class Game < Item
  attr_accessor :multiplayer, :last_played_date

  def initialize(date, multiplayer, last_played_date, archived: false, id: nil)
    super(id, date, archived: archived)
    @multiplayer = multiplayer
    @last_played_date = Date.parse(last_played_date)
  end

  def can_be_archived?
    current_date = Date.today
    super && (current_date.year - @last_played_date.year) > 2
  end
end
</code>```

json file

```<code>[{"publish_date":"2022-01-01", "multiplayer": false, "last_played_date": "2021-12-31","archived": false}]
</code>```

the error text

```<code>no implicit conversion of Date into String (TypeError)

 from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/classes/items.rb:8:in `initialize'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/classes/game.rb:8:in `initialize'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/modules/game_module.rb:12:in `new'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/modules/game_module.rb:12:in `block in load_games'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/modules/game_module.rb:9:in `each'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/modules/game_module.rb:9:in `load_games'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/app.rb:22:in `<class:App>'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/app.rb:5:in `<top (required)>'
        from main.rb:1:in `require_relative'
        from main.rb:1:in `<main>
</code>```

Title: How can I fix this issue in Ruby?

Body:
I have the following code, the purpose is to create read, and add to JSON file in Ruby
I will copy the code and the error am getting down here

game_module.rb

    require 'json'
require_relative '../classes/game'
require 'date'

def load_games
    data = []
    file = './json_files/games.json'
    if File.exist?(file)
      JSON.parse(File.read(file)).each do |game|
        publish_date = game['publish_date'] ? Date.parse(game['publish_date']) : nil
        last_played_at = game['last_played_date'] ? Date.parse(game['last_played_date']) : nil
        data.push(Game.new(publish_date, game['multiplayer'], last_played_at, archived: game['archived']))
      end
    else
      File.write('./json_files/games.json', [])
    end

    data
  end

  def create_game
    data = []
    @games.each do |game|
      data.push(game.publish_date, game.multiplayer, game.last_played_date, archived: game.archived)
    end
    File.write('./json_files/games.json', JSON.generate(data))
  end

game.rb file

    require_relative './items'
require 'date'

class Game < Item
  attr_accessor :multiplayer, :last_played_date

  def initialize(date, multiplayer, last_played_date, archived: false, id: nil)
    super(id, date, archived: archived)
    @multiplayer = multiplayer
    @last_played_date = Date.parse(last_played_date)
  end

  def can_be_archived?
    current_date = Date.today
    super && (current_date.year - @last_played_date.year) > 2
  end
end

json file

[{"publish_date":"2022-01-01", "multiplayer": false, "last_played_date": "2021-12-31","archived": false}]

the error text

no implicit conversion of Date into String (TypeError)

 from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/classes/items.rb:8:in `initialize'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/classes/game.rb:8:in `initialize'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/modules/game_module.rb:12:in `new'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/modules/game_module.rb:12:in `block in load_games'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/modules/game_module.rb:9:in `each'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/src/modules/game_module.rb:9:in `load_games'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/app.rb:22:in `<class:App>'
        from /home/shaker/Desktop/microverse - backend /Ruby-Catalog-of-my-things/app.rb:5:in `<top (required)>'
        from main.rb:1:in `require_relative'
        from main.rb:1:in `


问:
Exception when calling ConfirmApi->colletstdPost:[400] Client error: `POST https://s3p.smobilpay.staging.maviance.info/v2/collectstd` resulted in `400
In sombilpay-php Api, I used this code.

```<code>$apiInstance = new \Maviance\S3PApiClient\Service\ConfirmApi($this->client, $this->config);
</code>```

In here

```<code> $this->config = new \Maviance\S3PApiClient\Configuration();
 $this->client = new \Maviance\S3PApiClient\ApiClient($this->token,$this->secret,['verify' => false]);
</code>```

when I send this request

```<code>$result = $apiInstance->collectstdPost($this->xApiVersion,new \Maviance\S3PApiClient\Model\CollectionRequest($request->data));
</code>```
```<code>        In here $request-\>data  is  {"quoteId":"1d5708c0-2d9e-420a-8085-ac27b13d8974", "customerPhonenumber":"237661393032", "customerEmailaddress":"test@gmail.com"}
</code>```

there are some exception errors.

Exception when calling ConfirmApi->colletstdPost:[400] Client error: `POST https://s3p.smobilpay.staging.maviance.info/v2/collectstd%5C%60 resulted in a `400 Bad Request` response: {"devMsg":"The provided Quote ID is not or no longer valid","usrMsg":"Quote id invalid","respCode":4209,"link":"http:\/\ (truncated...)

I think I missed in $request->data like these options,  serviceNumber and trid. but How I can set this option?

please help me.

I have already success request like

```<code>$this->config->setHost($this->url);
$apiInstance = new \Maviance\S3PApiClient\Service\MasterdataApi($this->client, $this->config);
            try {
                $result = $apiInstance->serviceGet($this->xApiVersion);
</code>```

and

```<code>$this->config->setHost($this->url);
$apiInstance = new \Maviance\S3PApiClient\Service\InitiateApi($this->client, $this->config);
   try{
      $result = $apiInstance->quotestdPost($this->xApiVersion,new \Maviance\S3PApiClient\Model\QuoteRequest($request->data));
</code>```

But there is error in

```<code>$this->config->setHost($this->url);
$apiInstance = new \Maviance\S3PApiClient\Service\ConfirmApi($this->client, $this->config);
     try{
        $result = $apiInstance->collectstdPost($this->xApiVersion,new \Maviance\S3PApiClient\Model\CollectionRequest($request->data));
</code>```

THere are errors in above. please help me.

Body:
In sombilpay-php Api, I used this code.

$apiInstance = new \Maviance\S3PApiClient\Service\ConfirmApi($this->client, $this->config);

In here

 $this->config = new \Maviance\S3PApiClient\Configuration();
 $this->client = new \Maviance\S3PApiClient\ApiClient($this->token,$this->secret,['verify' => false]);

when I send this request

$result = $apiInstance->collectstdPost($this->xApiVersion,new \Maviance\S3PApiClient\Model\CollectionRequest($request->data));

        In here $request-\>data  is  {"quoteId":"1d5708c0-2d9e-420a-8085-ac27b13d8974", "customerPhonenumber":"237661393032", "customerEmailaddress":"test@gmail.com"}

there are some exception errors.

Exception when calling ConfirmApi->colletstdPost:[400] Client error: `POST <a href="https://s3p.smobilpay.staging.maviance.info/v2/collectstd%5C%60" rel="nofollow noreferrer">https://s3p.smobilpay.staging.maviance.info/v2/collectstd%5C%60</a> resulted in a `400 Bad Request` response: {"devMsg":"The provided Quote ID is not or no longer valid","usrMsg":"Quote id invalid","respCode":4209,"link":"http:\/\ (truncated...)

I think I missed in $request->data like these options,  serviceNumber and trid. but How I can set this option?

please help me.

I have already success request like

$this->config->setHost($this->url);
$apiInstance = new \Maviance\S3PApiClient\Service\MasterdataApi($this->client, $this->config);
            try {
                $result = $apiInstance->serviceGet($this->xApiVersion);

and

$this->config->setHost($this->url);
$apiInstance = new \Maviance\S3PApiClient\Service\InitiateApi($this->client, $this->config);
   try{
      $result = $apiInstance->quotestdPost($this->xApiVersion,new \Maviance\S3PApiClient\Model\QuoteRequest($request->data));

But there is error in

$this->config->setHost($this->url);
$apiInstance = new \Maviance\S3PApiClient\Service\ConfirmApi($this->client, $this->config);
     try{
        $result = $apiInstance->collectstdPost($this->xApiVersion,new \Maviance\S3PApiClient\Model\CollectionRequest($request->data));

THere are errors in above. please help me.


问:
JQuery Sortable() Widget - Placing index within the placeholder;
Using (jQuery Sortable) is it possible to populate the placeholder with the text containing the index of each item.

For instance if the user moves the mouse down to sort the value of the current index is shown in the box transitioning from and also the index is show in the box transitioning too.

For example we have a list, and the user drags the list item eq(1) the placeholder reveals the text in (1) and the relative index is shown in the above box either above or below.

If we have a list of three items:

List item 1;
List item 2; If the user moves up or down from the list item the placeholder is shown in box2 and box3 if moving downwards or box1 if moving upwards.
List item 3;

I can change the placeholder but cannot only to the current index.

I have tried the following:

```<code> start: function(event, ui){
    //alert("X "+ui.item.index());
        $(this).attr('data-previndex', ui.item.index());
    ui.placeholder.css('color', '#999999');
    ui.placeholder.css('font-size','26px');
    ui.placeholder.html('Draw Number<br/>'+$(this).attr('data-previndex'));
 },
 update: function(event, ui){
        var newIndex = ui.item.index();
        var oldIndex = $(this).attr('data-previndex');
        var element_id = ui.item.attr('id');
 };
</code>```

But the index always remains the same.

This post earlier is something similar to what I am trying to achieve:
text

Body:
Using (jQuery Sortable) is it possible to populate the placeholder with the text containing the index of each item.

For instance if the user moves the mouse down to sort the value of the current index is shown in the box transitioning from and also the index is show in the box transitioning too.

For example we have a list, and the user drags the list item eq(1) the placeholder reveals the text in (1) and the relative index is shown in the above box either above or below.

If we have a list of three items:

List item 1;
List item 2; If the user moves up or down from the list item the placeholder is shown in box2 and box3 if moving downwards or box1 if moving upwards.
List item 3;

I can change the placeholder but cannot only to the current index.

I have tried the following:

 start: function(event, ui){
    //alert("X "+ui.item.index());
        $(this).attr('data-previndex', ui.item.index());
    ui.placeholder.css('color', '#999999');
    ui.placeholder.css('font-size','26px');
    ui.placeholder.html('Draw Number
'+$(this).attr('data-previndex'));
 },
 update: function(event, ui){
        var newIndex = ui.item.index();
        var oldIndex = $(this).attr('data-previndex');
        var element_id = ui.item.attr('id');
 };

But the index always remains the same.

This post earlier is something similar to what I am trying to achieve:
text


问:
in_app_purchase flutter how to know if subscription was cancel
I have implemented subscription successfully, it is working fine. Now I want to know if a user has cancelled their subscription, I know that the cancellation is manage directly by apple, but what function to use from in_app_purchase to get this info. I have read that using _listenToPurchaseUpdated method you can get the data but, that is called during the subscription process, How can I get that data during users Login, in order to remove the subscription features in case the subscription was cancelled.
Thank you</p>


问:
Finding the location of the country in which it is located, regardless of the device language
I want to know which country the device is in. The "react-native-localize" package doesn't work as I want it to. Because if the language of the phone is changed to English on the device in India and Indian is removed, the country code is US. Is there a way I can find out the country where the device is located, regardless of the phone language?</p>


问:
In Entity Framework Core, is it possible to map this type of relationship?
I have a database table that stores user entered localization strings for many other tables in the database.

PK
TableName
RecordID
Field
Value

1
TableA
1
Name

2
TableA
1
Category

3
TableB
1
Make

4
TableB
1
Model

I don't know if there is a term for this type of table so sorry for the vague title. When querying for this data in SQL we would simply join on TableName and RecordID.

How would I go about mapping this in Entity Framework? Is a navigation property possible with a table like this?

I was hoping that something could be done in OnModelCreating to configure navigation properties on the base entity to only include records where TableName == "Table_". If possible I'd like to avoid having to add a Where clause in an .Include statement every time a record is queried.

```<code>public class TableA
{
  // This should only include PK 1-2
  public List<LocalizedString> LocalizedStrings { get; set; }
}

public class TableB
{
  // This should only include PK 3-4
  public List<LocalizedString> LocalizedStrings { get; set; }
}
</code>```

The only possible solution I can think of is to try using TPH inheritance. With the TableName as the discriminator I believe I would need to create a class for every type. TableALocalizedString, TableBLocalizedString, etc. If possible I'd like to avoid that, this table references a lot of other tables.

Body:
I have a database table that stores user entered localization strings for many other tables in the database.

PK
TableName
RecordID
Field
Value

1
TableA
1
Name

2
TableA
1
Category

3
TableB
1
Make

4
TableB
1
Model

I don't know if there is a term for this type of table so sorry for the vague title. When querying for this data in SQL we would simply join on TableName and RecordID.

How would I go about mapping this in Entity Framework? Is a navigation property possible with a table like this?

I was hoping that something could be done in OnModelCreating to configure navigation properties on the base entity to only include records where TableName == "Table_". If possible I'd like to avoid having to add a Where clause in an .Include statement every time a record is queried.

public class TableA
{
  // This should only include PK 1-2
  public List<LocalizedString> LocalizedStrings { get; set; }
}

public class TableB
{
  // This should only include PK 3-4
  public List<LocalizedString> LocalizedStrings { get; set; }
}

The only possible solution I can think of is to try using TPH inheritance. With the TableName as the discriminator I believe I would need to create a class for every type. TableALocalizedString, TableBLocalizedString, etc. If possible I'd like to avoid that, this table references a lot of other tables.


问:
Key Error - An error in the python bot code
Good evening, I am developing a bot that will search for a telegram account by phone number. Tell me what I'm doing wrong: KeyError 'result' crashes.
user = response['result']

```<code># Импортируем модули
import telebot
import requests

# Указываем токен
bot = telebot.TeleBot('')

# Обработчик команды Start
@bot.message_handler(commands=['start'])
def start_message(message):
    bot.send_message(message.chat.id, 'Введите номер телефона для поиска аккаунта телеграмм')

# Обработчик ввода номера телефона
@bot.message_handler(content_types=['text'])
def send_text(message):
    # Запрос для поиска пользователя
    url = 'https://api.telegram.org/bot{bot}/getUserByPhone' + 'phone_number=' + message.text
    response = requests.get(url).json()

    # Проверка существования пользователя
    if 'message' in response:
        bot.send_message(message.chat.id, 'Аккаунт телеграмм не найден')
    else:
        user = response['result']
        bot.send_message(message.chat.id, 'Указанный аккаунт был найден:\n\n' +
                         'ID пользователя: ' + str(user['id']) + '\n\n' +
                         'Имя пользователя: ' + user['first_name'])

# Запуск бота
bot.polling()
</code>```

I tried to deal with the error myself, but since I'm not strong in python, it didn't work out for me

Body:
Good evening, I am developing a bot that will search for a telegram account by phone number. Tell me what I'm doing wrong: KeyError 'result' crashes.
user = response['result']

# Импортируем модули
import telebot
import requests

# Указываем токен
bot = telebot.TeleBot('')

# Обработчик команды Start
@bot.message_handler(commands=['start'])
def start_message(message):
    bot.send_message(message.chat.id, 'Введите номер телефона для поиска аккаунта телеграмм')

# Обработчик ввода номера телефона
@bot.message_handler(content_types=['text'])
def send_text(message):
    # Запрос для поиска пользователя
    url = 'https://api.telegram.org/bot{bot}/getUserByPhone' + 'phone_number=' + message.text
    response = requests.get(url).json()

    # Проверка существования пользователя
    if 'message' in response:
        bot.send_message(message.chat.id, 'Аккаунт телеграмм не найден')
    else:
        user = response['result']
        bot.send_message(message.chat.id, 'Указанный аккаунт был найден:\n\n' +
                         'ID пользователя: ' + str(user['id']) + '\n\n' +
                         'Имя пользователя: ' + user['first_name'])

# Запуск бота
bot.polling()

I tried to deal with the error myself, but since I'm not strong in python, it didn't work out for me


问:
single and double sided infinite tapes turing machine
My question is do we have infinite null values at both end of the tape of a turing machine or we can have a single sided infinite nulls as well.

Also if both of them are valid, do we have to make ANY changes to the turing machine of a single sided infinite null tape, such that it will work for a tape with nulls at both ends? and other way around as well.


问:
Sorting and coloring excel file via python
```<code>import pandas as pd
from fuzzywuzzy import fuzz
import openpyxl
from itertools import combinations
from difflib import SequenceMatcher

import json

def readExcel():
    df = pd.read_excel('tedarikci.xlsx')

    # Tüm isimleri bir Python listesine ata
    isimler = df['Müşteri/tedarikçi ismi'].tolist() #names

    # output_list = []
    # İsimleri karşılaştır

    def searchInDict(dataDict,item):
        if item in dataDict.keys():
            return False
        else:
            for parent in dataDict.keys():
                if item  in dataDict[parent]:
                    return False
            return True

    benzerIsimler = {} #similarNames
    print(isimler) #names

    counter = 0
    for i,item in enumerate(isimler):
        print(i)
        if searchInDict(benzerIsimler,item):
            print(item)
            benzerIsimler[item] = []
            for j,item2 in enumerate(isimler):
                if item != item2:

                    score = SequenceMatcher(None, item, item2).ratio()
                    if score > 0.9:
                        benzerIsimler[item].append(item2)

    for i in benzerIsimler.keys():
        print(benzerIsimler[i])

    with open("dataMusteri.json", "w") as outfile:
        json.dump(benzerIsimler, outfile)

def printExcel():
    benzerIsimler = None

    with open("dataMusteri.json", "r") as outfile:
        benzerIsimler = json.load(outfile)

    dataframe = openpyxl.load_workbook("tedarikci.xlsx")

    # Define variable to read sheet
    dataframe1 = dataframe.active

    sortedRows = []

    for item in benzerIsimler.keys():
        print(item)
        for row in dataframe1.iter_rows():
            if row[0].value == item :
                sortedRows.append(row)
                break

        for item2 in benzerIsimler[item]:
            for row in dataframe1.iter_rows():
                if row[0].value == item :
                    sortedRows.append(row)
                    break

    print(sortedRows)

    wb = openpyxl.Workbook()
    ws = wb.active
    ws.append(["Müşteri/tedarikçi ismi","E-posta","Müşteri/tedarikçi grubu","TL Bakiye ",   "USD Bakiye",   "EUR Bakiye",   "GBP Bakiye",   "Adres",    "İl",   "İlçe", "Telefon",  "Faks", "Vergi dairesi",    "Vergi numarası/TC kimlik no"])
    for row in sortedRows:
        row_with_values = [cell.value for cell in row]
        ws.append(row_with_values)

    wb.save("dilara.xlsx")

printExcel()
</code>```

I am trying to sort the similar names on an excel file and after sorting I want to color the similar/same ones with the same color.

The code above is what I've done so far. I can sort but I can't paint the same/similar rows, my code paints all rows with the same color. Do you have any suggestion?

Body:
import pandas as pd
from fuzzywuzzy import fuzz
import openpyxl
from itertools import combinations
from difflib import SequenceMatcher

import json

def readExcel():
    df = pd.read_excel('tedarikci.xlsx')

    # Tüm isimleri bir Python listesine ata
    isimler = df['Müşteri/tedarikçi ismi'].tolist() #names

    # output_list = []
    # İsimleri karşılaştır

    def searchInDict(dataDict,item):
        if item in dataDict.keys():
            return False
        else:
            for parent in dataDict.keys():
                if item  in dataDict[parent]:
                    return False
            return True

    benzerIsimler = {} #similarNames
    print(isimler) #names

    counter = 0
    for i,item in enumerate(isimler):
        print(i)
        if searchInDict(benzerIsimler,item):
            print(item)
            benzerIsimler[item] = []
            for j,item2 in enumerate(isimler):
                if item != item2:

                    score = SequenceMatcher(None, item, item2).ratio()
                    if score > 0.9:
                        benzerIsimler[item].append(item2)

    for i in benzerIsimler.keys():
        print(benzerIsimler[i])

    with open("dataMusteri.json", "w") as outfile:
        json.dump(benzerIsimler, outfile)

def printExcel():
    benzerIsimler = None

    with open("dataMusteri.json", "r") as outfile:
        benzerIsimler = json.load(outfile)

    dataframe = openpyxl.load_workbook("tedarikci.xlsx")

    # Define variable to read sheet
    dataframe1 = dataframe.active

    sortedRows = []

    for item in benzerIsimler.keys():
        print(item)
        for row in dataframe1.iter_rows():
            if row[0].value == item :
                sortedRows.append(row)
                break

        for item2 in benzerIsimler[item]:
            for row in dataframe1.iter_rows():
                if row[0].value == item :
                    sortedRows.append(row)
                    break

    print(sortedRows)

    wb = openpyxl.Workbook()
    ws = wb.active
    ws.append(["Müşteri/tedarikçi ismi","E-posta","Müşteri/tedarikçi grubu","TL Bakiye ",   "USD Bakiye",   "EUR Bakiye",   "GBP Bakiye",   "Adres",    "İl",   "İlçe", "Telefon",  "Faks", "Vergi dairesi",    "Vergi numarası/TC kimlik no"])
    for row in sortedRows:
        row_with_values = [cell.value for cell in row]
        ws.append(row_with_values)

    wb.save("dilara.xlsx")

printExcel()

I am trying to sort the similar names on an excel file and after sorting I want to color the similar/same ones with the same color.

The code above is what I've done so far. I can sort but I can't paint the same/similar rows, my code paints all rows with the same color. Do you have any suggestion?


Title: How to kill a CLOSE_WAIT connection where the PID is not found?

Body:
I made a Flask app which links to a while true loop, and I killed the terminal with the trash icon in VSCode. Now I try to visit 3039 port, but it keeps on loading (I'm on Windows 11).

So, I tried netstat - ano | findstr ":3039" and I got CLOSE_WAIT connections with 2032 PID:

  TCP    127.0.0.1:3039         0.0.0.0:0              LISTENING       2032
  TCP    127.0.0.1:3039         127.0.0.1:54506        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:54507        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:59333        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:59334        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:59767        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:59768        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:59782        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:60694        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:60695        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:60788        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:60809        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:60905        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:60912        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:60995        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:61138        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:61226        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:61410        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:61411        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:61640        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:61641        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:61643        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:61647        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:61660        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:61754        CLOSE_WAIT      2032
  TCP    127.0.0.1:3039         127.0.0.1:61786        CLOSE_WAIT      2032

Now to kill, I used taskkill /PID 2032 /F but it says:

ERROR: The process "2032" not found.

Also, I tried stop-process 2032 and the response is:

stop-process : Cannot find a process with the process identifier 2032.


问:
How to perform a join with multiple clauses in pandas?
I have one the dataframe that has the following columns:

Region
ProductName
Quantity
Sales
Discount

South
dust filter Hoover MaxExtract PressurePro model 60
3
114.90
0

and the other one looks like this

Region
Person

South
Andrea

```<code>SELECT Orders.Region, Orders.ProductName,
FROM Orders
INNER JOIN People ON Orders.Region != People.Region;
</code>```

My point is that I'd like to perform the join while specifying multiple clauses and using operators like (<,>,<=,>=...) but I don't know how to do that with the pandas methods capable of doing that join, I know that with the clause

```<code>ON Orders.Region == People.Region
</code>```

this piece of code will do the job

```<code>df = lista[0].merge(right = lista[1])
</code>```

but how can I do, for example

ON Orders.Region > People.Person

Body:
I have one the dataframe that has the following columns:

Region
ProductName
Quantity
Sales
Discount

South
dust filter Hoover MaxExtract PressurePro model 60
3
114.90
0

and the other one looks like this

Region
Person

South
Andrea

SELECT Orders.Region, Orders.ProductName,
FROM Orders
INNER JOIN People ON Orders.Region != People.Region;

My point is that I'd like to perform the join while specifying multiple clauses and using operators like (<,>,<=,>=...) but I don't know how to do that with the pandas methods capable of doing that join, I know that with the clause

ON Orders.Region == People.Region

this piece of code will do the job

df = lista[0].merge(right = lista[1])

but how can I do, for example

ON Orders.Region > People.Person


问:
BlueZ: What are the meaning of the fields of le_set_advertising_parameters_cp?
Is there any specifications document of blueZ which I can refer for development?

I am trying to set advertising type to extended type. So what value I should give.

Please help me to get out of this.

Thanks! In advance.


问:
WAR deployment fails on JBoss 6.1 when it is in collapsed/archived format
I have a J2EE based web application which perfectly gets deployed on JBoss 6.0 app server.

I am using JBoss's "default" server configuration.

I have an ".ear" file which contains EJBs and a ".war" file.

I am using Spring Security for user authentication and authorization.

When I deploy the same ear file on JBoss 6.1, I find my WAR deployment fails with following errors.

Surprising thing is if I deploy the same ".ear" file in exploded format, then the deployment is successful.

```<code>22:31:14,827 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.8.3
22:31:14,828 INFO  [QuartzScheduler] Scheduler EdmQuartzScheduler_$_NON_CLUSTERED started.
22:31:14,828 INFO  [QuartzService] QuartzService(EdmQuartzMBean) started.
22:31:14,837 INFO  [TomcatDeployment] deploy, ctxPath=/edm
22:31:14,896 INFO  [[/edm]] Initializing Spring root WebApplicationContext
22:31:14,897 INFO  [ContextLoader] Root WebApplicationContext: initialization started
22:31:14,907 INFO  [XmlWebApplicationContext] Refreshing Root WebApplicationContext: startup date [Wed Sep 21 22:31:14 PDT 2011]; rootof context hierarchy
22:31:14,910 INFO  [XmlBeanDefinitionReader] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-business.xml]
22:31:14,911 ERROR [ContextLoader] Context initialization failed: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext-business.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext-business.xml]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341) [:3.0.5.RELEASE]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [:3.0.5.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) [:3.0.5.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) [:3.0.5.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) [:3.0.5.RELEASE]
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) [:3.0.5.RELEASE]
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93) [:3.0.5.RELEASE]
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) [:3.0.5.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467) [:3.0.5.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397) [:3.0.5.RELEASE]
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) [:3.0.5.RELEASE]
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) [:3.0.5.RELEASE]
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [:3.0.5.RELEASE]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369) [:6.1.0.Final]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:6.1.0.Final]
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.1.0.Final]
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.1.0.Final]
        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476) [:6.1.0.Final]
        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.1.0.Final]
        at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.1.0.Final]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_27]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_27]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_27]
        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_27]
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
        at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [:2.2.0.SP2]
        at $Proxy41.start(Unknown Source)       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53) [:2.2.0.SP2]
        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41) [:2.2.0.SP2]
        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.SP2]
        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.SP2]
        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.SP2]
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]
        at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.SP2]
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]
        .
        .
        .
        .
</code>```

In my WAR's web.xml I have specified Spring configuration file locations as:

```<code><!-- Spring configuration file location -->
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            /WEB-INF/applicationContext-business.xml
            /WEB-INF/applicationContext-security.xml
        </param-value>
    </context-param>
</code>```

So, it seems the relative path of those xml files are well understood by JBoss when the ear is in exploded format - but if I have the same EAR file in collapsed/archived format, then JBoss cannot locate those xml files.

Both format of ear works fine in JBoss 6.0 - so this might be a bug in 6.1 release?

Can anyone please suggest the possible areas to look for?

Thanks in advance

[EDITED]

I did more debugging.
As part of the stack trace I noticed following.

```<code>00:29:17,926 ERROR [StandardContext] Error listenerStart
00:29:17,926 ERROR [StandardContext] Context [/edm] startup failed due to previous errors
00:29:17,929 INFO  [[/edm]] Closing Spring root WebApplicationContext
00:29:17,935 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/edm state=Create mode=Manual requiredState=Installed: org.jboss.deployers.spi.DeploymentException: URL file:**/C:/discovery_manager/edm/appserver/server/default/tmp/vfs
/automount5d67b4cc2c2a38ae/edm.ear-c3f755775af83fc3/contents/web.war/** deployment failed
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:325) [:6.1.0.Final]
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.1.0.Final]
        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476) [:6.1.0.Final]
        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.1.0.Final]
        at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.1.0.Final]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]
        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
</code>```

=============================

Now, using windows explorer, when I navigate to that directory, i.e. "C:\discovery_manager\edm\appserver\server\default\tmp\vfs\automount5d67b4cc2c2a38ae\edm.ear-c3f755775af83fc3\contents\web.war\WEB-INF" directory, there I could not locate any XML file - that means JBoss could not properly extract the WAR file content under "tmp" folder, for some reason.

I believe it is a bug in 6.1

This explains when I explicitly deploy the ear in "exploded" format, it works.

ContentLicense: CC BY-SA 3.0

Body:
I have a J2EE based web application which perfectly gets deployed on JBoss 6.0 app server.

I am using JBoss's "default" server configuration.

I have an ".ear" file which contains EJBs and a ".war" file.

I am using Spring Security for user authentication and authorization.

When I deploy the same ear file on JBoss 6.1, I find my WAR deployment fails with following errors.

Surprising thing is if I deploy the same ".ear" file in exploded format, then the deployment is successful.

22:31:14,827 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.8.3
22:31:14,828 INFO  [QuartzScheduler] Scheduler EdmQuartzScheduler_$_NON_CLUSTERED started.
22:31:14,828 INFO  [QuartzService] QuartzService(EdmQuartzMBean) started.
22:31:14,837 INFO  [TomcatDeployment] deploy, ctxPath=/edm
22:31:14,896 INFO  [[/edm]] Initializing Spring root WebApplicationContext
22:31:14,897 INFO  [ContextLoader] Root WebApplicationContext: initialization started
22:31:14,907 INFO  [XmlWebApplicationContext] Refreshing Root WebApplicationContext: startup date [Wed Sep 21 22:31:14 PDT 2011]; rootof context hierarchy
22:31:14,910 INFO  [XmlBeanDefinitionReader] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-business.xml]
22:31:14,911 ERROR [ContextLoader] Context initialization failed: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext-business.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext-business.xml]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341) [:3.0.5.RELEASE]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [:3.0.5.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) [:3.0.5.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) [:3.0.5.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) [:3.0.5.RELEASE]
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) [:3.0.5.RELEASE]
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93) [:3.0.5.RELEASE]
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) [:3.0.5.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467) [:3.0.5.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397) [:3.0.5.RELEASE]
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) [:3.0.5.RELEASE]
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) [:3.0.5.RELEASE]
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [:3.0.5.RELEASE]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369) [:6.1.0.Final]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:6.1.0.Final]
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.1.0.Final]
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.1.0.Final]
        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476) [:6.1.0.Final]
        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.1.0.Final]
        at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.1.0.Final]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_27]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_27]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_27]
        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_27]
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
        at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [:2.2.0.SP2]
        at $Proxy41.start(Unknown Source)       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53) [:2.2.0.SP2]
        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41) [:2.2.0.SP2]
        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.SP2]
        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.SP2]
        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.SP2]
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]
        at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.SP2]
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]
        .
        .
        .
        .

In my WAR's web.xml I have specified Spring configuration file locations as:

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            /WEB-INF/applicationContext-business.xml
            /WEB-INF/applicationContext-security.xml
        </param-value>
    </context-param>

So, it seems the relative path of those xml files are well understood by JBoss when the ear is in exploded format - but if I have the same EAR file in collapsed/archived format, then JBoss cannot locate those xml files.

Both format of ear works fine in JBoss 6.0 - so this might be a bug in 6.1 release?

Can anyone please suggest the possible areas to look for?

Thanks in advance

[EDITED]

I did more debugging.
As part of the stack trace I noticed following.

00:29:17,926 ERROR [StandardContext] Error listenerStart
00:29:17,926 ERROR [StandardContext] Context [/edm] startup failed due to previous errors
00:29:17,929 INFO  [[/edm]] Closing Spring root WebApplicationContext
00:29:17,935 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/edm state=Create mode=Manual requiredState=Installed: org.jboss.deployers.spi.DeploymentException: URL file:**/C:/discovery_manager/edm/appserver/server/default/tmp/vfs
/automount5d67b4cc2c2a38ae/edm.ear-c3f755775af83fc3/contents/web.war/** deployment failed
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:325) [:6.1.0.Final]
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.1.0.Final]
        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476) [:6.1.0.Final]
        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.1.0.Final]
        at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.1.0.Final]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]
        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

=============================

Now, using windows explorer, when I navigate to that directory, i.e. "C:\discovery_manager\edm\appserver\server\default\tmp\vfs\automount5d67b4cc2c2a38ae\edm.ear-c3f755775af83fc3\contents\web.war\WEB-INF" directory, there I could not locate any XML file - that means JBoss could not properly extract the WAR file content under "tmp" folder, for some reason.

I believe it is a bug in 6.1

This explains when I explicitly deploy the ear in "exploded" format, it works.


问:
How to link to a position on a page with React native?
I'm trying to make a "skip to content" link at the top of a page in my app. Basically I want to pass it an id and I want to set the focus to the component that has that id.

Normally I would use an anchor tag to create a link to a particular component on a page like so: link

But this doesn't work in react native and I've only seen ways to create links to other app pages or external web pages. Is there a way to have this anchor tag functionality through something like a link in react native?

I have tried playing around with Linking, history.push, and Link from react-router-dom but none of them work. I can place an  tag and that technically works but I don't think it's great practice for react native and I can't style it properly.