问:
PHP display data in table using loop

I have This Table in database

id
TERM_CODE
COURSE_TITLE
COURSE_HOURS
GRADE

555
202210
Calculus I
3
A

555
202210
Data Structure
3
A+

555
202220
Calculus II
3
A

555
202220
Software Engineering
3
B

I Want to display data like this in php :

```<code>Transcript
Id:555
TERM_CODE: 202210
</code>```

COURSE_TITLE
COURSE_HOURS
GRADE

Calculus I
3
A

Data Structure
3
A+

```<code>TERM_CODE: 202220
</code>```

COURSE_TITLE
COURSE_HOURS
GRADE

Calculus II
3
A

Software Engineering
3
B

my code :

```<code><?php
echo'  <table class="tab"  cellpadding="2" cellspacing="2" border="1"  >';

include 'db_conf.php';
$conn = sqlsrv_connect( $serverName, $connectionInfo);
$tsql = "SELECT *FROM OPENQUERY (student, 'select * from INTEGRATION.TRANSCRIPT  where ID=555  ')ORDER BY TERM_DESC ";
$stmt = sqlsrv_query( $conn, $tsql);

while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC)){
    echo "</tr>";
    echo "<td>" .$row['TERM_CODE']."</td>";
    echo "<tr>";

    echo "<tr>";
    echo "<td>COURSE_TITLE</td>";
    echo "<td>COURSE_HOURS</td>";
    echo "<td>GRADE</td>";

    echo "</tr>";

    echo "<td>" .$row['COURSE_TITLE']."</td>";
    echo "<td>" .$row['COURSE_HOURS']."</td>";
    echo "<td>" .$row['GRADE']."</td>";

    echo "</tr>";
}

echo "</table>";
?>
</code>```

Title: PHP display data in table using loop

Body:
I have This Table in database

id
TERM_CODE
COURSE_TITLE
COURSE_HOURS
GRADE

555
202210
Calculus I
3
A

555
202210
Data Structure
3
A+

555
202220
Calculus II
3
A

555
202220
Software Engineering
3
B

I Want to display data like this in php :

Transcript
Id:555
TERM_CODE: 202210

COURSE_TITLE
COURSE_HOURS
GRADE

Calculus I
3
A

Data Structure
3
A+

TERM_CODE: 202220

COURSE_TITLE
COURSE_HOURS
GRADE

Calculus II
3
A

Software Engineering
3
B

my code :

<?php
echo'
';

include 'db_conf.php';
$conn = sqlsrv_connect( $serverName, $connectionInfo);
$tsql = "SELECT *FROM OPENQUERY (student, 'select * from INTEGRATION.TRANSCRIPT  where ID=555  ')ORDER BY TERM_DESC ";
$stmt = sqlsrv_query( $conn, $tsql);

while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC)){
    echo "
";
    echo "" .$row['TERM_CODE']."	";
    echo "
";

    echo "
";
    echo "COURSE_TITLE	";
    echo "COURSE_HOURS	";
    echo "GRADE	";

    echo "
";

    echo "" .$row['COURSE_TITLE']."	";
    echo "" .$row['COURSE_HOURS']."	";
    echo "" .$row['GRADE']."	";

    echo "
";
}

echo "
";
?>


来源: stackexchange

问:
Call native destroy method from flutter
I have an app, and on destroy(closing) the app I need to perform a task, I tried didChangeAppLifecycleState method but it didn't work:

```<code> @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    if (state == AppLifecycleState.inactive) {
      // app is inactive
    } else if (state == AppLifecycleState.paused) {
      // app is paused
    } else if (state == AppLifecycleState.resumed) {
      // app is resumed
    } else if (state == AppLifecycleState.detached) {
      print("app detached");
    }
  }
</code>```

Is there a way to call the destroy native method from Flutter?

ContentLicense: CC BY-SA 4.0

Title: Call native destroy method from flutter

Body:
I have an app, and on destroy(closing) the app I need to perform a task, I tried didChangeAppLifecycleState method but it didn't work:

 @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    if (state == AppLifecycleState.inactive) {
      // app is inactive
    } else if (state == AppLifecycleState.paused) {
      // app is paused
    } else if (state == AppLifecycleState.resumed) {
      // app is resumed
    } else if (state == AppLifecycleState.detached) {
      print("app detached");
    }
  }

Is there a way to call the destroy native method from Flutter?


问:
EXPO: Facebook login in different ways
I'm trying to create a simple expo app with facebook login. For this reason, as suggested by Expo, I followed this guide:

https://docs.expo.dev/guides/authentication/#facebook

Currently all works fine, I can sign in via Facebook and I did also a fetch to get the access token:

```<code>fetch(`https://graph.facebook.com/oauth/access_token?client_id=${this._authConfig.clientId}&client_secret=${this._authConfig.client_secret}&grant_type=client_credentials`);
</code>```

After the access token, I thought I could retrieve my facebook data via

```<code>fetch(`https://graph.facebook.com/me?access_token=${this._getAccessToken()}`);
</code>```

But the access token I retrieve from the first fetch seems to be incorrect.

An active access token must be used to query information about the current user.

I saw that people are using Facebook SDK instead this login (https://docs.expo.dev/versions/v45.0.0/sdk/facebook/), but I'm wondering why. What are the main differences between the those two guides?

Title: EXPO: Facebook login in different ways

Body:
I'm trying to create a simple expo app with facebook login. For this reason, as suggested by Expo, I followed this guide:

https://docs.expo.dev/guides/authentication/#facebook

Currently all works fine, I can sign in via Facebook and I did also a fetch to get the access token:

fetch(`https://graph.facebook.com/oauth/access_token?client_id=${this._authConfig.clientId}&client_secret=${this._authConfig.client_secret}&grant_type=client_credentials`);

After the access token, I thought I could retrieve my facebook data via

fetch(`https://graph.facebook.com/me?access_token=${this._getAccessToken()}`);

But the access token I retrieve from the first fetch seems to be incorrect.

An active access token must be used to query information about the current user.

I saw that people are using Facebook SDK instead this login (https://docs.expo.dev/versions/v45.0.0/sdk/facebook/), but I'm wondering why. What are the main differences between the those two guides?


问:
Delphi + FireDAC + TFDQuery + Postgres - tablenames with double char '$'
I'm using DB Postgres and have some interesting situation.
I use '$' in tablenames. And this query don't reconised by TFDQuery (it can't create and expand params) because my table has name with double '$' (vdata."wares$rules$link). How I can use TFDQuery without macroses in this case? May be put some escapes...

```<code>with tjWLL   as (select
                      wrl.fldidxwarerule as fldidxwarerule,
                      json_agg(wll.*)    as "WARESRULESLINKS"
                  from
                      vdata."wares$rules"                 wrl
                      inner join vdata."wares$rules$link" wll on (wrl.fldidxwarerule = wll.fldidxwarerule)
                  where
                          (wll.fldidxwarerule = any(:fldidxwarerule) or (case when :fldidxwarerule = '{}' then True else False end))
                      and :IsWLL
                  group by
                      wrl.fldidxwarerule
                 ),
tjWRL        as (select
                      wrl.*,
                      wll."WARESRULESLINKS"
                  from
                      vdata."wares$rules" wrl
                      left  join tjWLL    wll on (wrl.fldidxwarerule = wll.fldidxwarerule)
                  where
                         wrl.fldidxwarerule = any(:fldidxwarerule)
                      or case when :fldidxwarerule = '{}' then True else False end
                 )
select
    json_build_object('WARESRULES', to_json(tjWRL)) as "WARESRULES"
from
    tjWRL

</code>```

With macroses it work's fine. But I don't want use it in this simple query.

Body:
I'm using DB Postgres and have some interesting situation.
I use '$' in tablenames. And this query don't reconised by TFDQuery (it can't create and expand params) because my table has name with double '$' (vdata."wares$rules$link). How I can use TFDQuery without macroses in this case? May be put some escapes...

with tjWLL   as (select
                      wrl.fldidxwarerule as fldidxwarerule,
                      json_agg(wll.*)    as "WARESRULESLINKS"
                  from
                      vdata."wares$rules"                 wrl
                      inner join vdata."wares$rules$link" wll on (wrl.fldidxwarerule = wll.fldidxwarerule)
                  where
                          (wll.fldidxwarerule = any(:fldidxwarerule) or (case when :fldidxwarerule = '{}' then True else False end))
                      and :IsWLL
                  group by
                      wrl.fldidxwarerule
                 ),
tjWRL        as (select
                      wrl.*,
                      wll."WARESRULESLINKS"
                  from
                      vdata."wares$rules" wrl
                      left  join tjWLL    wll on (wrl.fldidxwarerule = wll.fldidxwarerule)
                  where
                         wrl.fldidxwarerule = any(:fldidxwarerule)
                      or case when :fldidxwarerule = '{}' then True else False end
                 )
select
    json_build_object('WARESRULES', to_json(tjWRL)) as "WARESRULES"
from
    tjWRL

With macroses it work's fine. But I don't want use it in this simple query.


问:
Can I total a calculated field in a pivot table?
Is it possible to total a calculated field rather than just using it to summarize other fields?  For example, in this spreadsheet I want to round up any durations longer than 44 minutes.  So, if I work 45 minutes, I charge for an hour of work, $50/hr.

With that in mind, in the dataset below, I intend to charge for 2 total hours of work, but the Grand Total is only showing one total hour.  It's looking at the sum of each project's total, ignoring my "Hours Rounded" column.  Is what I'm trying to do possible?  Thanks.


问:
Execution failed for task ':path_provider_android:compileReleaseJavaWithJavac' flutter
My flutter app was running just fine but when I tried running it again I received the following error message. I have tried figuring it but nothing seems to work. I have tried running flutter clean flutter pub get and flutter run but keep getting the error. I feel it has something with my flutter installation</p>
```<code>Building with sound null safety

C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-8.1.2\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\FlutterToastPlugin.kt:9:48: warning: 'Registrar' is deprecated. Deprecated in Java
import io.flutter.plugin.common.PluginRegistry.Registrar
                                               ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-8.1.2\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:56:43: warning: 'getDrawable(Int): Drawable!' is deprecated. Deprecated in Java
                        context.resources.getDrawable(R.drawable.corner)
                                          ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-8.1.2\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:58:38: warning: 'setColorFilter(Int, PorterDuff.Mode): Unit' is deprecated. Deprecated in Java
                    gradientDrawable.setColorFilter(bgcolor.toInt(), PorterDuff.Mode.SRC_IN)
                                     ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-8.1.2\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:68:29: warning: 'setter for view: View?' is deprecated. Deprecated in Java
                    mToast?.view = layout
                            ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-8.1.2\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:73:62: warning: 'getter for view: View?' is deprecated. Deprecated in Java
                            val textView: TextView = mToast?.view!!.findViewById(android.R.id.message)
                                                             ^
error: error reading C:\Users\JUSTINE NALWOGA\.gradle\caches\modules-2\files-2.1\androidx.annotation\annotation\1.5.0\857678d6b4ca7b28571ef7935c668bdb57e15027\annotation-1.5.0.jar; zip END header not found
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\Messages.java:7: error: cannot access io.flutter.plugins.pathprovider
package io.flutter.plugins.pathprovider;
^
  zip END header not found
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:22: error: cannot access java.lang
public class PathProviderPlugin implements FlutterPlugin, PathProviderApi {
       ^
  zip END header not found
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:22: error: cannot find symbol
public class PathProviderPlugin implements FlutterPlugin, PathProviderApi {
                                           ^
  symbol: class FlutterPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:22: error: cannot find symbol
public class PathProviderPlugin implements FlutterPlugin, PathProviderApi {
                                                          ^
  symbol: class PathProviderApi
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:23: error: cannot find symbol
  static final String TAG = "PathProviderPlugin";
               ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:24: error: cannot find symbol
  private Context context;
          ^
  symbol:   class Context
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:28: error: cannot find symbol
  private void setup(BinaryMessenger messenger, Context context) {
                     ^
  symbol:   class BinaryMessenger
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:28: error: cannot find symbol
  private void setup(BinaryMessenger messenger, Context context) {
                                                ^
  symbol:   class Context
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:41: error: cannot access io
  public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
                                  ^
  zip END header not found
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:47: error: cannot find symbol
  public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
                                          ^
  symbol:   class FlutterPluginBinding
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:52: error: cannot find symbol
  public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
                                            ^
  symbol:   class FlutterPluginBinding
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:57: error: cannot find symbol
  public @Nullable String getTemporaryPath() {
                   ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:62: error: cannot find symbol
  public @Nullable String getApplicationSupportPath() {
                   ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:67: error: cannot find symbol
  public @Nullable String getApplicationDocumentsPath() {
                   ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:72: error: cannot find symbol
  public @Nullable String getExternalStoragePath() {
                   ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:77: error: cannot find symbol
  public @NonNull List<String> getExternalCachePaths() {
                  ^
  symbol:   class List
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:77: error: cannot find symbol
  public @NonNull List<String> getExternalCachePaths() {
                       ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:83: error: cannot access Messages
      @NonNull Messages.StorageDirectory directory) {
               ^
  zip END header not found
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:82: error: cannot find symbol
  public @NonNull List<String> getExternalStoragePaths(
                  ^
  symbol:   class List
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:82: error: cannot find symbol
  public @NonNull List<String> getExternalStoragePaths(
                       ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:87: error: cannot find symbol
  private String getPathProviderTemporaryDirectory() {
          ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:91: error: cannot find symbol
  private String getApplicationSupportDirectory() {
          ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:95: error: cannot find symbol
  private String getPathProviderApplicationDocumentsDirectory() {
          ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:99: error: cannot find symbol
  private String getPathProviderStorageDirectory() {
          ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:107: error: cannot find symbol
  private List<String> getPathProviderExternalCacheDirectories() {
          ^
  symbol:   class List
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:107: error: cannot find symbol
  private List<String> getPathProviderExternalCacheDirectories() {
               ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:126: error: package Messages does not exist
  private String getStorageDirectoryString(@NonNull Messages.StorageDirectory directory) {
                                                            ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:126: error: cannot find symbol
  private String getStorageDirectoryString(@NonNull Messages.StorageDirectory directory) {
          ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:156: error: package Messages does not exist
      @NonNull Messages.StorageDirectory directory) {
                       ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:155: error: cannot find symbol
  private List<String> getPathProviderExternalStorageDirectories(
          ^
  symbol:   class List
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:155: error: cannot find symbol
  private List<String> getPathProviderExternalStorageDirectories(
               ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\StorageDirectoryMapper.java:12: error: cannot access io.flutter.plugins
class StorageDirectoryMapper {
^
  zip END header not found
C:\Users\JUSTINE NALWOGA\Desktop\sampleApp\build\path_provider_android\generated\source\buildConfig\release\io\flutter\plugins\pathprovider\BuildConfig.java:6: error: cannot access io.flutter
public final class BuildConfig {
             ^
  zip END header not found
33 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':path_provider_android:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 36m 5s
Running Gradle task 'assembleRelease'...                         2201.3s
Gradle task assembleRelease failed with exit code 1

</code>```

Body:
My flutter app was running just fine but when I tried running it again I received the following error message. I have tried figuring it but nothing seems to work. I have tried running flutter clean flutter pub get and flutter run but keep getting the error. I feel it has something with my flutter installation

Building with sound null safety

C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-8.1.2\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\FlutterToastPlugin.kt:9:48: warning: 'Registrar' is deprecated. Deprecated in Java
import io.flutter.plugin.common.PluginRegistry.Registrar
                                               ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-8.1.2\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:56:43: warning: 'getDrawable(Int): Drawable!' is deprecated. Deprecated in Java
                        context.resources.getDrawable(R.drawable.corner)
                                          ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-8.1.2\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:58:38: warning: 'setColorFilter(Int, PorterDuff.Mode): Unit' is deprecated. Deprecated in Java
                    gradientDrawable.setColorFilter(bgcolor.toInt(), PorterDuff.Mode.SRC_IN)
                                     ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-8.1.2\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:68:29: warning: 'setter for view: View?' is deprecated. Deprecated in Java
                    mToast?.view = layout
                            ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\fluttertoast-8.1.2\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt:73:62: warning: 'getter for view: View?' is deprecated. Deprecated in Java
                            val textView: TextView = mToast?.view!!.findViewById(android.R.id.message)
                                                             ^
error: error reading C:\Users\JUSTINE NALWOGA\.gradle\caches\modules-2\files-2.1\androidx.annotation\annotation\1.5.0\857678d6b4ca7b28571ef7935c668bdb57e15027\annotation-1.5.0.jar; zip END header not found
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\Messages.java:7: error: cannot access io.flutter.plugins.pathprovider
package io.flutter.plugins.pathprovider;
^
  zip END header not found
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:22: error: cannot access java.lang
public class PathProviderPlugin implements FlutterPlugin, PathProviderApi {
       ^
  zip END header not found
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:22: error: cannot find symbol
public class PathProviderPlugin implements FlutterPlugin, PathProviderApi {
                                           ^
  symbol: class FlutterPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:22: error: cannot find symbol
public class PathProviderPlugin implements FlutterPlugin, PathProviderApi {
                                                          ^
  symbol: class PathProviderApi
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:23: error: cannot find symbol
  static final String TAG = "PathProviderPlugin";
               ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:24: error: cannot find symbol
  private Context context;
          ^
  symbol:   class Context
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:28: error: cannot find symbol
  private void setup(BinaryMessenger messenger, Context context) {
                     ^
  symbol:   class BinaryMessenger
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:28: error: cannot find symbol
  private void setup(BinaryMessenger messenger, Context context) {
                                                ^
  symbol:   class Context
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:41: error: cannot access io
  public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
                                  ^
  zip END header not found
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:47: error: cannot find symbol
  public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
                                          ^
  symbol:   class FlutterPluginBinding
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:52: error: cannot find symbol
  public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
                                            ^
  symbol:   class FlutterPluginBinding
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:57: error: cannot find symbol
  public @Nullable String getTemporaryPath() {
                   ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:62: error: cannot find symbol
  public @Nullable String getApplicationSupportPath() {
                   ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:67: error: cannot find symbol
  public @Nullable String getApplicationDocumentsPath() {
                   ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:72: error: cannot find symbol
  public @Nullable String getExternalStoragePath() {
                   ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:77: error: cannot find symbol
  public @NonNull List<String> getExternalCachePaths() {
                  ^
  symbol:   class List
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:77: error: cannot find symbol
  public @NonNull List<String> getExternalCachePaths() {
                       ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:83: error: cannot access Messages
      @NonNull Messages.StorageDirectory directory) {
               ^
  zip END header not found
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:82: error: cannot find symbol
  public @NonNull List<String> getExternalStoragePaths(
                  ^
  symbol:   class List
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:82: error: cannot find symbol
  public @NonNull List<String> getExternalStoragePaths(
                       ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:87: error: cannot find symbol
  private String getPathProviderTemporaryDirectory() {
          ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:91: error: cannot find symbol
  private String getApplicationSupportDirectory() {
          ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:95: error: cannot find symbol
  private String getPathProviderApplicationDocumentsDirectory() {
          ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:99: error: cannot find symbol
  private String getPathProviderStorageDirectory() {
          ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:107: error: cannot find symbol
  private List<String> getPathProviderExternalCacheDirectories() {
          ^
  symbol:   class List
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:107: error: cannot find symbol
  private List<String> getPathProviderExternalCacheDirectories() {
               ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:126: error: package Messages does not exist
  private String getStorageDirectoryString(@NonNull Messages.StorageDirectory directory) {
                                                            ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:126: error: cannot find symbol
  private String getStorageDirectoryString(@NonNull Messages.StorageDirectory directory) {
          ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:156: error: package Messages does not exist
      @NonNull Messages.StorageDirectory directory) {
                       ^
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:155: error: cannot find symbol
  private List<String> getPathProviderExternalStorageDirectories(
          ^
  symbol:   class List
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java:155: error: cannot find symbol
  private List<String> getPathProviderExternalStorageDirectories(
               ^
  symbol:   class String
  location: class PathProviderPlugin
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_android-2.0.22\android\src\main\java\io\flutter\plugins\pathprovider\StorageDirectoryMapper.java:12: error: cannot access io.flutter.plugins
class StorageDirectoryMapper {
^
  zip END header not found
C:\Users\JUSTINE NALWOGA\Desktop\sampleApp\build\path_provider_android\generated\source\buildConfig\release\io\flutter\plugins\pathprovider\BuildConfig.java:6: error: cannot access io.flutter
public final class BuildConfig {
             ^
  zip END header not found
33 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':path_provider_android:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 36m 5s
Running Gradle task 'assembleRelease'...                         2201.3s
Gradle task assembleRelease failed with exit code 1


问:
Cheerio is unable to get dropdown data from a website using Google Apps Script
I want to get data from Finance website. I use the following snippet to get the scraped results.

```<code>function GetData(){

   var url = 'https://finance.yahoo.com/quote/AMD/balance-sheet?p=AMD'
   var result = UrlFetchApp.fetch(url);
   const $ = Cheerio.load(result.getContentText());
   var text =  $('.YDC-Col1').text();
   Logger.log(text);

}
</code>```

It gets the scraped results which are not hidden in the dropdown. For example if you look into the following screenshot, I want to get the Long Term Debt value at the date of 9/29/2022, it will not get it because this value is in the dropdown of Total Non Current Liabilties option:

I apologize for my beginner skills, can you please guide me how to get results for the values that are hidden in dropdowns?

From other source, value can be found in the table, can we get this if it is not possible from 1st link:

Body:
I want to get data from Finance website. I use the following snippet to get the scraped results.

function GetData(){

   var url = 'https://finance.yahoo.com/quote/AMD/balance-sheet?p=AMD'
   var result = UrlFetchApp.fetch(url);
   const $ = Cheerio.load(result.getContentText());
   var text =  $('.YDC-Col1').text();
   Logger.log(text);

}

It gets the scraped results which are not hidden in the dropdown. For example if you look into the following screenshot, I want to get the Long Term Debt value at the date of 9/29/2022, it will not get it because this value is in the dropdown of Total Non Current Liabilties option:

I apologize for my beginner skills, can you please guide me how to get results for the values that are hidden in dropdowns?

From other source, value can be found in the table, can we get this if it is not possible from 1st link:


问:
Project reactor Sinks with SSE in micronaut
I am currently trying to consume kafka events , I am able to do it, but once events are consumed, it needs to be published to UI after some minimal processing, For publishing the captured events from Kafka I am using project reactor Sinks, sinks.many.multicast.onBackPressureBuffer, and streaming it to UI with SSE, keeping the produces to TEXT_EVENT_STREAM, and I am also using ExecuteOn (TaskExecutors.IO) since this will be a long running task as it is SSE. But I am seeing a strange behavior like only one call gets the response , concurrent requests made for the same API does not get hit, it is executing one after the other like if the first subscribed call stops listening the second call which was hit long back becomes active, I see the threads on which these concurrent requests were received are different but still they are like blocking although the response type is Flux, Does anyone what might be causing this issue or any other better approach for this?

I am expecting that every API request is a subscriber and should run independently without depending on the other subscriber to complete.

```<code>+++++++++++++++++++++++++++++++++++++++

@Singleton
 class OrderEmitter {
      private Sinks.Many<String> sink = Sinks.many().multicast().onBackpressureBuffer();
        private Flux<String> flux = sink.asFlux();

        public Sinks.EmitResult emitOrder(Order order) {
            return this.sink.tryEmitNext(order);
        }

        public Flux<String> getOrderFlux() {
         // this may contain additional processing logic
            return order;
        }
    }
    +++++++++++++++++++++++++++++++++++

    @Inject
    OrderEmitter orderEmitter;

    @kafkaConsumer
    public void emitOrder(Order order) {
     orderEmitter.emit(order);
    }
++++++++++++++++++++++++++++++++++++++++++++
Inside controller layer
@Controller
class Controller {

@Inject
OrderEmitter orderEmitter;

@Get(produces=MediaType.TEXT_EVENT_STREAM)
public Flux<Order> getOrders() {
return orderEmitter.getOrderFlux();
}
}
</code>```

Body:
I am currently trying to consume kafka events , I am able to do it, but once events are consumed, it needs to be published to UI after some minimal processing, For publishing the captured events from Kafka I am using project reactor Sinks, sinks.many.multicast.onBackPressureBuffer, and streaming it to UI with SSE, keeping the produces to TEXT_EVENT_STREAM, and I am also using ExecuteOn (TaskExecutors.IO) since this will be a long running task as it is SSE. But I am seeing a strange behavior like only one call gets the response , concurrent requests made for the same API does not get hit, it is executing one after the other like if the first subscribed call stops listening the second call which was hit long back becomes active, I see the threads on which these concurrent requests were received are different but still they are like blocking although the response type is Flux, Does anyone what might be causing this issue or any other better approach for this?

I am expecting that every API request is a subscriber and should run independently without depending on the other subscriber to complete.

+++++++++++++++++++++++++++++++++++++++

@Singleton
 class OrderEmitter {
      private Sinks.Many<String> sink = Sinks.many().multicast().onBackpressureBuffer();
        private Flux<String> flux = sink.asFlux();

        public Sinks.EmitResult emitOrder(Order order) {
            return this.sink.tryEmitNext(order);
        }

        public Flux<String> getOrderFlux() {
         // this may contain additional processing logic
            return order;
        }
    }
    +++++++++++++++++++++++++++++++++++

    @Inject
    OrderEmitter orderEmitter;

    @kafkaConsumer
    public void emitOrder(Order order) {
     orderEmitter.emit(order);
    }
++++++++++++++++++++++++++++++++++++++++++++
Inside controller layer
@Controller
class Controller {

@Inject
OrderEmitter orderEmitter;

@Get(produces=MediaType.TEXT_EVENT_STREAM)
public Flux<Order> getOrders() {
return orderEmitter.getOrderFlux();
}
}


问:
How do I run a QuantumCircuit?
I'm fairly new to quantum algorithms and I went from IBMQ Composer to the Python style of writing circuits. My question is: The code bellow just draws the circuit, is there a way to run the circuit and get the output without having to write a separate programs for visualization and execution? I looked into the "QuantumCircuit" functions (from the qiskit library), but none seem to do what I want.

# importing Qiskit
from qiskit import IBMQ, Aer
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, transpile, assemble

# import basic plot tools
from qiskit.visualization import plot_histogram
# from qiskit_textbook.tools import simon_oracle

deutsch_circuit = QuantumCircuit(2, 1)

deutsch_circuit.h(0)
deutsch_circuit.x(1)
deutsch_circuit.h(1)
deutsch_circuit.cx(0, 1)

deutsch_circuit.h(0)

deutsch_circuit.measure(0, 0)
deutsch_circuit.draw()
```

Title: How do I run a QuantumCircuit?


问:
weblogic 14c: ClassNotFoundException during deploy of an osgi application
I'm migrating an osgi web application from java 7 and weblogic 12c server to java 8 and weblogic 14. In the application I would like to provide the jersey libraries without 'provided' scope and when deploying the application I get the following error:

```<code><4-gen-2023 9.33.59,936 CET> <Error> <Console> <BEA-240003> <Administration Console encountered the following error: weblogic.application.ModuleException: java.lang.ClassNotFoundException: org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer
        at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
        at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
        at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:78)
        at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:52)
        at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:752)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
        at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:262)
        at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:52)
        at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:90)
        at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:631)
        at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:171)
        at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:121)
        at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:348)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:914)
        at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1475)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:466)
        at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:181)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:217)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:14)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69)
        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:677)
        at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
        at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
        at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
        at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
        at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:651)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:420)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:360)
Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1035)
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:996)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:101)
        at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:617)
        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:547)
        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:500)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:71)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:53)
        at weblogic.servlet.internal.WebAppServletContext.initContainerInitializer(WebAppServletContext.java:1418)
        at weblogic.servlet.internal.WebAppServletContext.initContainerInitializers(WebAppServletContext.java:1388)
        at weblogic.servlet.internal.WebAppServletContext.initContainerInitializers(WebAppServletContext.java:1368)
        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1952)
        at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3254)
        at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1879)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:934)
        at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360)
        at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:356)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
        at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:138)
>
</code>```

the web application consists of a parent module and sub-modules, including that of the web app. Below are the poms, the web.xml file and the weblogic. xml

parent pom

```<code><dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>group.id/groupId>
                <artifactId>mdp-be-webapp</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>3.0.1</version>
                <scope>provided</scope>
            </dependency>

            <!-- JERSEY -->
            <dependency>
                <groupId>org.glassfish.jersey.media</groupId>
                <artifactId>jersey-media-jaxb</artifactId>
                <version>${jersey.version}</version>
                <!-- <scope>provided</scope> -->
            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.core</groupId>
                <artifactId>jersey-client</artifactId>
                <version>${jersey.version}</version>
                <!-- <scope>provided</scope> -->
            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.containers</groupId>
                <artifactId>jersey-container-servlet</artifactId>
                <version>${jersey.version}</version>
                <!-- <scope>provided</scope> -->
            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.media</groupId>
                <artifactId>jersey-media-json-jackson</artifactId>
                <version>${jersey.version}</version>
                <!-- <scope>provided</scope> -->
            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.ext</groupId>
                <artifactId>jersey-bean-validation</artifactId>
                <version>${jersey.version}</version>
                <!-- <scope>provided</scope> -->
            </dependency>
            <!-- ptrebbero non servire -->
            <!-- <dependency>
                <groupId>org.glassfish.jersey.test-framework.providers</groupId>
                <artifactId>jersey-test-framework-provider-inmemory</artifactId>
                <version>${jersey.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.test-framework.providers</groupId>
                <artifactId>jersey-test-framework-provider-jetty</artifactId>
                <version>${jersey.version}</version>
                <scope>provided</scope>
            </dependency> -->

            <dependency>
                <groupId>org.glassfish.hk2</groupId>
                <artifactId>hk2-api</artifactId>
                <version>2.6.1</version>
                <!-- <scope>provided</scope> -->
            </dependency>
            <dependency>
                <groupId>org.glassfish.hk2</groupId>
                <artifactId>hk2-utils</artifactId>
                <version>2.6.1</version>
                <!-- <scope>provided</scope> -->
            </dependency>
            <dependency>
                <groupId>org.glassfish.hk2</groupId>
                <artifactId>hk2-locator</artifactId>
                <version>2.6.1</version>
                <!-- <scope>provided</scope> -->
            </dependency>
            <dependency>
                <groupId>jakarta.el</groupId>
                <artifactId>jakarta.el-api</artifactId>
                <version>3.0.2</version>
                <!-- <scope>provided</scope> -->
            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.core</groupId>
                <artifactId>jersey-server</artifactId>
                <version>${jersey.version}</version>
            </dependency>
            <!-- JERSEY -->

            <!-- JACKSON -->
            <dependency>
                  <groupId>com.fasterxml.jackson.datatype</groupId>
                  <artifactId>jackson-datatype-joda</artifactId>
                  <version>2.9.9</version>
            </dependency>
            <!-- JACKSON -->
            .
                        .
                        .
                        other dependencies
        </dependencies>
    </dependencyManagement>
</code>```

webapp pom

```<code><project xmlns="..." xmlns:xsi="..." xsi:schemaLocation="...">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>group.id</groupId>
        <artifactId>mdp-be-parent</artifactId>
        <version>2.18.55</version>
    </parent>

    <artifactId>mdp-be-webapp</artifactId>
    <packaging>war</packaging>
    <name>BackEnd WebApp</name>

    <build>
        <finalName>mdp-be</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.10</version>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                            <verbose>true</verbose>
                            <outputDirectory>${project.build.directory}/osgi-lib</outputDirectory>
                            <includeScope>compile</includeScope>
                            <excludeScope>provided</excludeScope>
                            <excludeArtifactIds>
                                org.apache.felix.framework,
                                javax.servlet-api,
                                org.apache.felix.ipojo.annotations,
                                hazelcast-code-generator,
                                annotations,
                                minimal-json,
                                freemarker,
                                slf4j-simple,
                                ccf2,
                                eci,
                                eci-tools,
                                frame,
                                server,
                                client,
                                security,
                                transaction-api,
                                connector-api,
                                hamcrest-core,
                                slf4j-api,
                                logback-classic,
                                logback-core,
                                janino,
                                derby,
                                flyway-core,
                                jooq-codegen,
                                derbynet,
                                derbyclient,
                                hsqldb
                            </excludeArtifactIds>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.5</version>
                <configuration>
                    <warName>mdp-be</warName>
                    <webResources>
                        <resource>
                            <directory>${project.build.directory}/osgi-lib</directory>
                            <targetPath>WEB-INF/osgi-lib</targetPath>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.sonarsource.scanner.maven</groupId>
                <artifactId>sonar-maven-plugin</artifactId>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                                <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-dependency-plugin</artifactId>
                                        <versionRange>[2.0,)</versionRange>
                                        <goals>
                                            <goal>copy-dependencies</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore />
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.framework</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.http.proxy</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.http.bridge</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.compendium</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>it.zerounotribe.poste.context.posteID</groupId>
            <artifactId>posteIDCryptoLib</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
        </dependency>
        <dependency>
            <groupId>org.codehaus.janino</groupId>
            <artifactId>janino</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.hsqldb</groupId>
            <artifactId>hsqldb</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.flywaydb</groupId>
            <artifactId>flyway-core</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>jakarta.el</groupId>
            <artifactId>jakarta.el-api</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

</project>
</code>```

web.xml

```<code><?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="..." xmlns="..." xsi:schemaLocation="..." version="3.0">
  <listener>
    <listener-class>org.apache.felix.http.proxy.ProxyListener</listener-class>
  </listener>
  <servlet>
    <servlet-name>felix-http-proxy</servlet-name>
    <servlet-class>org.apache.felix.http.proxy.ProxyServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    <async-supported>true</async-supported>
  </servlet>
  <servlet-mapping>
    <servlet-name>felix-http-proxy</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>

  <resource-ref>
     <description>Database Motore dei Pagamenti</description>
     <res-ref-name>jdbc/MDPDB</res-ref-name>
     <res-type>javax.sql.DataSource</res-type>
     <res-auth>Container</res-auth>
  </resource-ref>

  <security-constraint>
        <web-resource-collection>
          <web-resource-name>SecuredPages</web-resource-name>
          <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <user-data-constraint>
          <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>

</web-app>
</code>```

weblogic.xml

```<code><?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app ...>
  <container-descriptor>
    <!-- MUST USE THIS OR WEBLOGIC WILL USE SYSTEM CLASSPATH FIRST -->
    <prefer-application-packages>
      <package-name>org.slf4j.*</package-name>
      <package-name>org.apache.commons.logging.*</package-name>
      <!--<package-name>com.sun.jersey.*</package-name>
      <package-name>com.sun.mail.*</package-name>-->
      <!----> <package-name>org.glassfish.jersey.*</package-name>
      <package-name>org.glassfish.hk2.*</package-name>
      <package-name>org.jvnet.hk2.*</package-name>
      <package-name>jersey.repackaged.org.objectweb.asm.*</package-name><!--  -->
      <package-name>org.objectweb.asm.*</package-name>
      <!--<package-name>com.sun.ws.rs.ext.*</package-name>-->
      <package-name>javax.ws.rs.*</package-name>
      <package-name>javax.persistence.*</package-name>
      <package-name>javax.mail.*</package-name>
    </prefer-application-packages>

    <prefer-application-resources>
      <resource-name>org/slf4j/impl/StaticLoggerBinder.class</resource-name>
      <resource-name>org/slf4j/impl/StaticMDCBinder.class</resource-name>
      <resource-name>META-INF/services/javax.xml.ws.spi.Provider</resource-name>

    </prefer-application-resources>
  </container-descriptor>
  <resource-description>
    <res-ref-name>jdbc/MDPDB</res-ref-name>
    <jndi-name>jdbc/MDPDB</jndi-name>
  </resource-description>
  <context-root>mdp-be</context-root>
</weblogic-web-app>
</code>```

I think there is some configuration missing in the weblogic.xml file in the packages section but I can't figure out what. Could anyone tell me where I'm going wrong?

thank you.

I look forward to solving the exception thrown by the server during deployment.

Body:
I'm migrating an osgi web application from java 7 and weblogic 12c server to java 8 and weblogic 14. In the application I would like to provide the jersey libraries without 'provided' scope and when deploying the application I get the following error:

<4-gen-2023 9.33.59,936 CET> <Error> <Console> <BEA-240003> <Administration Console encountered the following error: weblogic.application.ModuleException: java.lang.ClassNotFoundException: org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer
        at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
        at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
        at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:78)
        at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:52)
        at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:752)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
        at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:262)
        at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:52)
        at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:90)
        at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:631)
        at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:171)
        at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:121)
        at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:348)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:914)
        at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1475)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:466)
        at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:181)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:217)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:14)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69)
        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:677)
        at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
        at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
        at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
        at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
        at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:651)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:420)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:360)
Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1035)
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:996)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:101)
        at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:617)
        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:547)
        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:500)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:71)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:53)
        at weblogic.servlet.internal.WebAppServletContext.initContainerInitializer(WebAppServletContext.java:1418)
        at weblogic.servlet.internal.WebAppServletContext.initContainerInitializers(WebAppServletContext.java:1388)
        at weblogic.servlet.internal.WebAppServletContext.initContainerInitializers(WebAppServletContext.java:1368)
        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1952)
        at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3254)
        at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1879)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:934)
        at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360)
        at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:356)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
        at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:138)
>

the web application consists of a parent module and sub-modules, including that of the web app. Below are the poms, the web.xml file and the weblogic. xml

parent pom

<dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>group.id/groupId>
                <artifactId>mdp-be-webapp</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>3.0.1</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>org.glassfish.jersey.media</groupId>
                <artifactId>jersey-media-jaxb</artifactId>
                <version>${jersey.version}</version>

            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.core</groupId>
                <artifactId>jersey-client</artifactId>
                <version>${jersey.version}</version>

            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.containers</groupId>
                <artifactId>jersey-container-servlet</artifactId>
                <version>${jersey.version}</version>

            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.media</groupId>
                <artifactId>jersey-media-json-jackson</artifactId>
                <version>${jersey.version}</version>

            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.ext</groupId>
                <artifactId>jersey-bean-validation</artifactId>
                <version>${jersey.version}</version>

            </dependency>

            <dependency>
                <groupId>org.glassfish.hk2</groupId>
                <artifactId>hk2-api</artifactId>
                <version>2.6.1</version>

            </dependency>
            <dependency>
                <groupId>org.glassfish.hk2</groupId>
                <artifactId>hk2-utils</artifactId>
                <version>2.6.1</version>

            </dependency>
            <dependency>
                <groupId>org.glassfish.hk2</groupId>
                <artifactId>hk2-locator</artifactId>
                <version>2.6.1</version>

            </dependency>
            <dependency>
                <groupId>jakarta.el</groupId>
                <artifactId>jakarta.el-api</artifactId>
                <version>3.0.2</version>

            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.core</groupId>
                <artifactId>jersey-server</artifactId>
                <version>${jersey.version}</version>
            </dependency>

            <dependency>
                  <groupId>com.fasterxml.jackson.datatype</groupId>
                  <artifactId>jackson-datatype-joda</artifactId>
                  <version>2.9.9</version>
            </dependency>

            .
                        .
                        .
                        other dependencies
        </dependencies>
    </dependencyManagement>

webapp pom

<project xmlns="..." xmlns:xsi="..." xsi:schemaLocation="...">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>group.id</groupId>
        <artifactId>mdp-be-parent</artifactId>
        <version>2.18.55</version>
    </parent>

    <artifactId>mdp-be-webapp</artifactId>
    <packaging>war</packaging>
    <name>BackEnd WebApp</name>

    <build>
        <finalName>mdp-be</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.10</version>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                            <verbose>true</verbose>
                            <outputDirectory>${project.build.directory}/osgi-lib</outputDirectory>
                            <includeScope>compile</includeScope>
                            <excludeScope>provided</excludeScope>
                            <excludeArtifactIds>
                                org.apache.felix.framework,
                                javax.servlet-api,
                                org.apache.felix.ipojo.annotations,
                                hazelcast-code-generator,
                                annotations,
                                minimal-json,
                                freemarker,
                                slf4j-simple,
                                ccf2,
                                eci,
                                eci-tools,
                                frame,
                                server,
                                client,
                                security,
                                transaction-api,
                                connector-api,
                                hamcrest-core,
                                slf4j-api,
                                logback-classic,
                                logback-core,
                                janino,
                                derby,
                                flyway-core,
                                jooq-codegen,
                                derbynet,
                                derbyclient,
                                hsqldb
                            </excludeArtifactIds>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.5</version>
                <configuration>
                    <warName>mdp-be</warName>
                    <webResources>
                        <resource>
                            <directory>${project.build.directory}/osgi-lib</directory>
                            <targetPath>WEB-INF/osgi-lib</targetPath>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.sonarsource.scanner.maven</groupId>
                <artifactId>sonar-maven-plugin</artifactId>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                                <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-dependency-plugin</artifactId>
                                        <versionRange>[2.0,)</versionRange>
                                        <goals>
                                            <goal>copy-dependencies</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore />
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.framework</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.http.proxy</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.http.bridge</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.compendium</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>it.zerounotribe.poste.context.posteID</groupId>
            <artifactId>posteIDCryptoLib</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
        </dependency>
        <dependency>
            <groupId>org.codehaus.janino</groupId>
            <artifactId>janino</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.hsqldb</groupId>
            <artifactId>hsqldb</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.flywaydb</groupId>
            <artifactId>flyway-core</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>jakarta.el</groupId>
            <artifactId>jakarta.el-api</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

</project>

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="..." xmlns="..." xsi:schemaLocation="..." version="3.0">
  <listener>
    <listener-class>org.apache.felix.http.proxy.ProxyListener</listener-class>
  </listener>
  <servlet>
    <servlet-name>felix-http-proxy</servlet-name>
    <servlet-class>org.apache.felix.http.proxy.ProxyServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    <async-supported>true</async-supported>
  </servlet>
  <servlet-mapping>
    <servlet-name>felix-http-proxy</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>

  <resource-ref>
     <description>Database Motore dei Pagamenti</description>
     <res-ref-name>jdbc/MDPDB</res-ref-name>
     <res-type>javax.sql.DataSource</res-type>
     <res-auth>Container</res-auth>
  </resource-ref>

  <security-constraint>
        <web-resource-collection>
          <web-resource-name>SecuredPages</web-resource-name>
          <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <user-data-constraint>
          <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>

</web-app>

weblogic.xml

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app ...>
  <container-descriptor>

    <prefer-application-packages>
      <package-name>org.slf4j.*</package-name>
      <package-name>org.apache.commons.logging.*</package-name>

       <package-name>org.glassfish.jersey.*</package-name>
      <package-name>org.glassfish.hk2.*</package-name>
      <package-name>org.jvnet.hk2.*</package-name>
      <package-name>jersey.repackaged.org.objectweb.asm.*</package-name>
      <package-name>org.objectweb.asm.*</package-name>

      <package-name>javax.ws.rs.*</package-name>
      <package-name>javax.persistence.*</package-name>
      <package-name>javax.mail.*</package-name>
    </prefer-application-packages>

    <prefer-application-resources>
      <resource-name>org/slf4j/impl/StaticLoggerBinder.class</resource-name>
      <resource-name>org/slf4j/impl/StaticMDCBinder.class</resource-name>
      <resource-name>META-INF/services/javax.xml.ws.spi.Provider</resource-name>

    </prefer-application-resources>
  </container-descriptor>
  <resource-description>
    <res-ref-name>jdbc/MDPDB</res-ref-name>
    <jndi-name>jdbc/MDPDB</jndi-name>
  </resource-description>
  <context-root>mdp-be</context-root>
</weblogic-web-app>

I think there is some configuration missing in the weblogic.xml file in the packages section but I can't figure out what. Could anyone tell me where I'm going wrong?

thank you.

I look forward to solving the exception thrown by the server during deployment.


问:
Hydration failed because the initial UI does not match what was rendered on the server
enter image description here
This part is causing the problem. What am I doing wrong?

enter image description here
I want this result


问:
rails How to solve this problem： column "balance" cannot be cast automatically to type double precision
I want to change the string of the database to float for easy query，After the MySQL database is migrated and the code is submitted, no error occurs. Then pull the code in the postgres database and migrate it, but an error occurs

I have a migration, it's like this

```<code>class ChangeBalanceAndCnyBalanceToShiLianTongAssets < ActiveRecord::Migration[6.1]
  def up
    change_column :assets, :balance, :float, :decimal, precision: 32, scale: 7, null: false, default: 0
    change_column :assets, :cny_balance, :float, :decimal, precision: 32, scale: 7, null: false, default: 0
  end

  def down
    change_column :assets, :balance, :string
    change_column :assets, :cny_balance, :string
  end
end
</code>```

But an error occurred during the operation:

```<code>
== 20230104070823 ChangeBalanceAndCnyBalanceToShiLianTongAssets: migrating ====
-- change_column(:shi_lian_tong_assets, :balance, :float)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

PG::DatatypeMismatch: ERROR:  column "balance" cannot be cast automatically to type double precision
HINT:  You might need to specify "USING balance::double precision".
/workspace/sneak_data/db/migrate/20230104070823_change_balance_and_cny_balance_to_shi_lian_tong_assets.rb:3:in `up'
/home/linlin/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `load'
/home/linlin/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `<main>'

</code>```

I want to change the string to float for saving，How can I convert it to float and save the last seven decimal places of the original data,What should I do?

Body:
I want to change the string of the database to float for easy query，After the MySQL database is migrated and the code is submitted, no error occurs. Then pull the code in the postgres database and migrate it, but an error occurs

I have a migration, it's like this

class ChangeBalanceAndCnyBalanceToShiLianTongAssets < ActiveRecord::Migration[6.1]
  def up
    change_column :assets, :balance, :float, :decimal, precision: 32, scale: 7, null: false, default: 0
    change_column :assets, :cny_balance, :float, :decimal, precision: 32, scale: 7, null: false, default: 0
  end

  def down
    change_column :assets, :balance, :string
    change_column :assets, :cny_balance, :string
  end
end

But an error occurred during the operation:

== 20230104070823 ChangeBalanceAndCnyBalanceToShiLianTongAssets: migrating ====
-- change_column(:shi_lian_tong_assets, :balance, :float)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

PG::DatatypeMismatch: ERROR:  column "balance" cannot be cast automatically to type double precision
HINT:  You might need to specify "USING balance::double precision".
/workspace/sneak_data/db/migrate/20230104070823_change_balance_and_cny_balance_to_shi_lian_tong_assets.rb:3:in `up'
/home/linlin/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `load'
/home/linlin/.asdf/installs/ruby/3.1.2/bin/bundle:25:in `'

I want to change the string to float for saving，How can I convert it to float and save the last seven decimal places of the original data,What should I do?


问:
The field is required while sending FormData in request
How can I make below form request work? I try to compose angular request with and all time I receive error like:

```<code>The Message field is required.
</code>```

I try to compose request which work. I'm using FormData to compose my request. The service returns correct response while using postman but the above error occurs when try to implement below code.

Code:

```<code>const toSend = new FormData();
toSend.append('Message', 'testmessage');
toSend.append('Type', 'testtype');
toSend.append('Images', '');
const headersOptions = new HttpHeaders().set('content-type', 'multipart/form-data');
return this.http.post<void>(`address`, toSend, { headers:
headersOptions });
</code>```

Request curl:

```<code>curl --location --request POST 'http:url' \
--header 'accept: */*' \ \
--header 'Content-Type: multipart/form-data' \
--form 'TypeOfFeedback="OTHER"' \
--form 'Message="Testasdasdasda"' \
--form 'Images=""'
</code>```

Body:
How can I make below form request work? I try to compose angular request with and all time I receive error like:

The Message field is required.

I try to compose request which work. I'm using FormData to compose my request. The service returns correct response while using postman but the above error occurs when try to implement below code.

Code:

const toSend = new FormData();
toSend.append('Message', 'testmessage');
toSend.append('Type', 'testtype');
toSend.append('Images', '');
const headersOptions = new HttpHeaders().set('content-type', 'multipart/form-data');
return this.http.post<void>(`address`, toSend, { headers:
headersOptions });

Request curl:

curl --location --request POST 'http:url' \
--header 'accept: */*' \ \
--header 'Content-Type: multipart/form-data' \
--form 'TypeOfFeedback="OTHER"' \
--form 'Message="Testasdasdasda"' \
--form 'Images=""'


问:
How to count gini in dataset using excel?
Im try to manually count gini for my 300 datasets with two columns with 5 index using excel. But im still dont know how to count in exce. it's so confusing.

data1:

data2
data3

from my data next columns is 0,1,2,3,4 each every index have 30 data. i want to get gini from my decision tree with test size= 50
decisiontree from dataset with testsize 50

Can someone help me with this ?


问:
How to collaborate on the same branch on a rebase workflow
Suppose I'm in a git rebase workflow and I have a feature branch with some new commits (rebased on top of master) and another developer joins me to work on that branch - so he also adds some commits.

Now we need to integrate some changes from master into our feature branch. Had I been the only developer working on that branch I would have just rebased my feature branch on top of the updated master and then force pushed the new history for the feature branch to the remote.

Anyway there's another developer now and force pushing a different history is very bad.

How do we solve this issue? Merging from the master branch doesn't sound too different from not using a rebase workflow at all.

How do multiple people collaborate on a rebase workflow feature branch when/if they need to integrate changes from the master branch?


问:
Stacking two dynamic blocks one after the other vertically inside a position absolute block with height depending on the elements inside the block
I am trying to achieve the following scenario. There are 4 scenarios in total.

Scenario 1

Scenario 2

Scenario 3

Scenario 4

There's a page with full viewport width and full viewport height. There is no scrollbar at the page level.

Inside the page I have a position: absolute div container with 50% width and 100% height of the page.

Inside that container, I have 3 child elements.

One (1) title box whose height dynamically increases and decreases

Two (2) table areas, each with dynamically increasing/decreasing height

I am trying to create this layout with CSS only if possible.

Scenario 1: Both table areas have no overflowing rows.

Scenario 2: Upper table area has no overflowing rows, but lower table area does.

Scenario 3: Upper table area has overflowing rows, but lower table area does not.

Scenario 4: Both table areas have overflowing rows.

In all the scenarios the title box is also dynamic.

So, I want to create this layout. I tried creating this layout, but I got stuck.

The code I used so far

.mastwrap {
  width: 50%;
  height: 100vh;
  background: red;
  position: relative;
}

.main-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: inherit;
  display: flex;
  flex-direction: column;
}

.block {
  width: 100%;
  overflow: auto;
}

.block-1 {
  background-color: yellow;
  flex: none;
}

.block-2 {
  background-color: orange;
  min-height: 50px;
  flex: 1 1 100%;
}

.block-3 {
  background-color: green;
  min-height: 50px;
  flex: 1 1 100%;
}```
<pre class="snippet-code-html lang-html prettyprint-override"><code><div class="mastwrap">
  <div class="main-wrapper">
    <div class="block block-1">
      <h1>Blah blah blah Blah blah blah Blah blah blah </h1>
    </div>
    <div class="block block-2">
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <!--<h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1> -->
    </div>
    <div class="block block-3">
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
      <h1>File File</h1>
    </div>
  </div>
</div></code>```

Any help on this is really appreciated. Stuck with this.
Thank you.

Body:
I am trying to achieve the following scenario. There are 4 scenarios in total.

Scenario 1

Scenario 2

Scenario 3

Scenario 4

There's a page with full viewport width and full viewport height. There is no scrollbar at the page level.

Inside the page I have a position: absolute div container with 50% width and 100% height of the page.

Inside that container, I have 3 child elements.

One (1) title box whose height dynamically increases and decreases

Two (2) table areas, each with dynamically increasing/decreasing height

I am trying to create this layout with CSS only if possible.

Scenario 1: Both table areas have no overflowing rows.

Scenario 2: Upper table area has no overflowing rows, but lower table area does.

Scenario 3: Upper table area has overflowing rows, but lower table area does not.

Scenario 4: Both table areas have overflowing rows.

In all the scenarios the title box is also dynamic.

So, I want to create this layout. I tried creating this layout, but I got stuck.

The code I used so far

.mastwrap {
  width: 50%;
  height: 100vh;
  background: red;
  position: relative;
}

.main-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: inherit;
  display: flex;
  flex-direction: column;
}

.block {
  width: 100%;
  overflow: auto;
}

.block-1 {
  background-color: yellow;
  flex: none;
}

.block-2 {
  background-color: orange;
  min-height: 50px;
  flex: 1 1 100%;
}

.block-3 {
  background-color: green;
  min-height: 50px;
  flex: 1 1 100%;
}

Blah blah blah Blah blah blah Blah blah blah

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

File File

Any help on this is really appreciated. Stuck with this.
Thank you.


问:
Why is the EventListener not working as intended?
I defined two EventListeners:
I want to disable my custom alert as soon as the user writes smt in the inputs or click any buttons in the document.

```<code>var input = document.querySelector('#input');
input.addEventListener('input', hideAlert);

var toggleButton = document.getElementById('toggle-button');
toggleButton.addEventListener('click', () => {
  toggleForms();
  hideAlert();
});
</code>```

But the EventListener does not get called

Here is the full JS Code:

```<code>var input = document.querySelector('#input');
input.addEventListener('input', hideAlert);

var toggleButton = document.getElementById('toggle-button');
toggleButton.addEventListener('click', () => {
  toggleForms();
  hideAlert();
});
function toggleForms() {
    var toggleButton = document.getElementById('toggle-button');
    var RegBtn = document.getElementById('RegBtn');
    if (loginForm.style.display === 'none') {
    loginForm.style.display = 'block';
    registerForm.style.display = 'none';
    toggleButton.textContent = 'Registrieren';
    RegBtn.textContent = 'Anmelden'
    } else {
    loginForm.style.display = 'none';
    registerForm.style.display = 'block';
    toggleButton.textContent = 'Anmelden';
    RegBtn.textContent = 'Registrieren'
    }
    }
function hideAlert() {
    var alert = document.querySelector('.alert');
    alert.style.display = 'none';
  }
</code>```

Body:
I defined two EventListeners:
I want to disable my custom alert as soon as the user writes smt in the inputs or click any buttons in the document.

var input = document.querySelector('#input');
input.addEventListener('input', hideAlert);

var toggleButton = document.getElementById('toggle-button');
toggleButton.addEventListener('click', () => {
  toggleForms();
  hideAlert();
});

But the EventListener does not get called

Here is the full JS Code:

var input = document.querySelector('#input');
input.addEventListener('input', hideAlert);

var toggleButton = document.getElementById('toggle-button');
toggleButton.addEventListener('click', () => {
  toggleForms();
  hideAlert();
});
function toggleForms() {
    var toggleButton = document.getElementById('toggle-button');
    var RegBtn = document.getElementById('RegBtn');
    if (loginForm.style.display === 'none') {
    loginForm.style.display = 'block';
    registerForm.style.display = 'none';
    toggleButton.textContent = 'Registrieren';
    RegBtn.textContent = 'Anmelden'
    } else {
    loginForm.style.display = 'none';
    registerForm.style.display = 'block';
    toggleButton.textContent = 'Anmelden';
    RegBtn.textContent = 'Registrieren'
    }
    }
function hideAlert() {
    var alert = document.querySelector('.alert');
    alert.style.display = 'none';
  }


问:
how to get name and upi Id from scanner app
I am making a working clone of PAYTM payment app, but I don't know how I can get NAME and UPI ID after scanning the OR code .
( I am using zing based codeScanner library form or scanner(https://github.com/yuriy-budiyev/code-scanner)).

I have search the entier internet for the solution, but didn't got the solution , Hope anybody here could help me


问:
How to creat a array to store 10000 object's data?
I'm having a project to analysis dust concentration.

Data file has the following format: (filename: dust_sim.csv)

id,time,values

1,2023:01:04 00:00:00,119.3

2,2023:01:04 00:00:00,330.4

3,2023:01:04 00:00:00,339.5

1,2023:01:04 00:10:00,155.4

2,2023:01:04 00:10:00,417.8

3,2023:01:04 00:10:00,49.8

1,2023:01:04 00:20:00,337.7

2,2023:01:04 00:20:00,294.2

3,2023:01:04 00:20:00,119.6

My teacher requires that program can analysis least 10000 line, meaning 10000 objects.
I want to creat a class dust_sim with 3 properties: id, time, values.

When I declare that: dust_sim data[10000];, it's ok. But when I declare that: dust_sim data[1000000];, it's error.

What is the maximum number of objects that can be stored and how to increase the number of objects that can be stored


问:
Telegram API (NOT Bot API) on google script
i'm trying to script something on google script to use Telegram API to overcome Bot api limitation (es file size, impossibility to join channels as users do, etc).

I checked TDLib but I think it cannot be ported to google script.
CryptoJS is usable on google script, so I tried to use the last option described here:
https://core.telegram.org/api

From here I see that the API is based on TCP layer, not HTTP, so urlFetchApp cannot be used, right?

Do you know if there is a way to send / recive TCP packets using google script or a way to use TDLib on google script?