Comments (4)
Debugging the Jar file revealed that moduleModel.getDeployer()
being null
caused the issue.
from dubbo.
I found the cause to be the use of the maven-shade-plugin. If I switch to the spring-boot-maven-plugin, there are no issues. Here are my configurations for these two plugins. Did I miss something?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
<configuration>
<keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
<createDependencyReducedPom>true</createDependencyReducedPom>
<artifactSet>
<excludes>
<exclude>org.springframework.boot:spring-boot-devtools</exclude>
<exclude>org.springframework.boot:spring-boot-docker-compose</exclude>
<exclude>org.projectlombok:lombok</exclude>
</excludes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>module-info.class</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/DEPENDENCIES</exclude>
<exclude>META-INF/LICENSE*</exclude>
<exclude>META-INF/license/**</exclude>
<exclude>META-INF/licenses/**</exclude>
<exclude>META-INF/NOTICE*</exclude>
<exclude>META-INF/MANIFEST*</exclude>
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
</filters>
</configuration>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.handlers</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.schemas</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.tooling</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.provides</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring/org.springframework.boot.actuate.autoconfigure.web.ManagementContextConfiguration.imports</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/dubbo/org.apache.dubbo.rpc.Filter</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/dubbo/org.apache.dubbo.rpc.cluster.filter.ClusterFilter</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/druid-driver.properties</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/druid-filter.properties</resource>
</transformer>
<transformer
implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer">
<resource>META-INF/spring.factories</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
<addHeader>false</addHeader>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>${spring-boot.application.class}</Main-Class>
</manifestEntries>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer
implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>${spring-boot.application.class}</mainClass>
<layout>JAR</layout>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
<exclude>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</exclude>
</excludes>
<excludeDevtools>true</excludeDevtools>
<executable>true</executable>
</configuration>
</plugin>
from dubbo.
Please submit the issue in English :)
from dubbo.
Please submit the issue in English :)
Already remove all Chinese, and debug to fix it, thanks!
from dubbo.
Related Issues (20)
- [Bug] The registry uses etcd, but javaagent skywalking fails to start HOT 6
- [Bug] there are problems if mapping key only has service interface class name
- [Bug] level too large 2048 problem during serialization data by fastjson2 HOT 1
- No such extension org.apache.dubbo.rpc.Filter HOT 1
- [Bug] HOT 2
- [Bug] setting dubbo.application.metadata-type at config center does not take effect HOT 2
- [Bug] security/serialize.allowlist overwrite by dubbo framework HOT 9
- [Bug] The configuration dubbo services does not take effect in the configuration file and the service is not registered HOT 16
- 实现一个客户端自适应负载均衡算法-SelfAdaptionLoadBablance HOT 1
- [Bug] Example dubbo-samples-triple-rest-jaxrs runing failed in 3.3 HOT 1
- [Bug] When I use the telnet command, the service list is displayed multiple times with different sorting
- [Bug] spring boot 3.2.5 ConfigurationClassPostProcessor WRAN log HOT 1
- ServiceDiscoveryRegistryDirectory HOT 19
- [Feature] Retries are required for file deletion HOT 3
- [Bug] In Dubbo 3, when configuring multiple registries, one registry will be overwritten by another one. HOT 2
- [Bug] 3.3.0-beta2 update to beta3, exception : module java.base does not "opens java.util" to unnamed module HOT 1
- [Bug] 3.2.13 Unable to instantiate factory class [org.springframework.cloud.bootstrap.RefreshBootstrapRegistryInitializer] for factory type [org.springframework.boot.BootstrapRegistryInitializer] HOT 1
- [Feature] May I know how the current progress of 3.3.0 is still far from the official version? HOT 2
- [Bug] 关于dubbo广播【BROADCAST】2.6.X 2.7.X 3.X问题
- [Bug] The triple-rest-cors support added in version 3.3.0-beta.3 cannot be used. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dubbo.