Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@

package io.servicecomb.core.definition.schema;

import javax.inject.Inject;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

import io.servicecomb.core.definition.MicroserviceMeta;
import io.servicecomb.core.definition.SchemaMeta;
import io.servicecomb.core.definition.SchemaUtils;
Expand All @@ -31,6 +24,11 @@
import io.servicecomb.serviceregistry.api.registry.Microservice;
import io.servicecomb.serviceregistry.client.ServiceRegistryClient;
import io.swagger.models.Swagger;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

@Component
public class ConsumerSchemaFactory extends AbstractSchemaFactory<ConsumerSchemaContext> {
Expand Down Expand Up @@ -71,8 +69,8 @@ public MicroserviceMeta getOrCreateMicroserviceMeta(String microserviceName, Str
Microservice microservice =
findMicroservice(microserviceMeta, microserviceVersionRule);
if (microservice == null) {
throw new Error(
String.format("can not get microservice from service center, appId=%s, name=%s",
throw new IllegalStateException(
String.format("Probably invoke a service before it is registered, appId=%s, name=%s",
microserviceMeta.getAppId(),
microserviceName));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ service_description:
cse:
service:
registry:
address: http://127.0.0.1:9980
address: http://127.0.0.1:30100
handler:
chain:
Consumer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ service_description:
cse:
service:
registry:
address: http://127.0.0.1:9980
address: http://127.0.0.1:30100
rest:
address: 0.0.0.0:8080
highway:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public void run() {
e1.printStackTrace();
}
continue;
} catch (Throwable e) {
System.out.println("XXXXXXXXXXXXXXXXXXXXXXXX: teset case error");
e.printStackTrace();
System.exit(0);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ service_description:
cse:
service:
registry:
address: http://127.0.0.1:9980
address: http://127.0.0.1:30100
handler:
chain:
Consumer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ service_description:
cse:
service:
registry:
address: http://127.0.0.1:9980
address: http://127.0.0.1:30100
rest:
address: 0.0.0.0:8080
highway:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ service_description:
cse:
service:
registry:
address: http://127.0.0.1:9980
address: http://127.0.0.1:30100
handler:
chain:
Consumer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ service_description:
cse:
service:
registry:
address: http://127.0.0.1:9980
address: http://127.0.0.1:30100
rest:
address: 0.0.0.0:8080?sslEnabled=true
highway:
Expand Down