小编Jor*_*rio的帖子

如何获得Vaadin 7应用服务器的IP和端口?

如何获取运行我的Vaadin webapp的应用服务器的协议,IP和端口?我正在使用Vaadin 7.

在vaadin 6中我这样做,但不能在vaadin 7中工作:

String server = ((WebApplicationContext) this.getContext()).getHttpSession().getServletContext().getServerInfo();

java.net.URL url = this.getURL();
String s = url.getHost()+":"+url.getPort()+url.getPath();
Run Code Online (Sandbox Code Playgroud)

java vaadin7

9
推荐指数
2
解决办法
6732
查看次数

WSO2 AS内部WSO2 ESB服务器

我在ESB 4.7.0中安装了AS 5.2.0功能,但有一些问题:

  1. 尝试它的功能不起作用.用户界面被破坏了.

  2. 当我使用代理服务调用部署在外部AS中的数据服务时,它工作正常,但如果数据服务部署在同一个ESB中,我在使用代理服务调用它时会收到二进制有效负载.我使用SOAPUI尝试这个,dataservice响应没问题,但代理服务没有.

  3. SOAPtracer仅显示dataservice请求/响应,而不显示代理服务请求/响应.

我该如何解决这个问题?

编辑:

...我首先使用AS 5.1.0但是我发现如果我激活SOAPtracer,我会收到来自代理服务的响应消息:

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Body>
      <axis2ns7:binary xmlns:axis2ns7="http://ws.apache.org/commons/ns/payload">PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz48c29hcGVudjpFbnZlbG9wZSB4bWxuczpzb2FwZW52PSJodHRwOi8vd3d3LnczLm9yZy8yMDAzLzA1L3NvYXAtZW52ZWxvcGUiPjxzb2FwZW52OkJvZHk+PGRhdG9zQ29sbGVjdGlvbiB4bWxucz0iaHR0cDovL3dzLndzbzIub3JnL2RhdGFzZXJ2aWNlIj48ZGF0b3M+PGlkPjE8L2lkPjxub21icmU+bm9tYnJlMTwvbm9tYnJlPjwvZGF0b3M+PGRhdG9zPjxpZD4yPC9pZD48bm9tYnJlPm5vbWJyZTI8L25vbWJyZT48L2RhdG9zPjxkYXRvcz48aWQ+MzwvaWQ+PG5vbWJyZT5ub21icmUzPC9ub21icmU+PC9kYXRvcz48ZGF0b3M+PGlkPjU8L2lkPjxub21icmU+bm9tYnJlNTwvbm9tYnJlPjwvZGF0b3M+PGRhdG9zPjxpZD40PC9pZD48bm9tYnJlPm5vbWJyZTQ8L25vbWJyZT48L2RhdG9zPjxkYXRvcz48aWQ+MTA8L2lkPjxub21icmU+Z2VybyBldDwvbm9tYnJlPjwvZGF0b3M+PC9kYXRvc0NvbGxlY3Rpb24+PC9zb2FwZW52OkJvZHk+PC9zb2FwZW52OkVudmVsb3BlPg==</axis2ns7:binary>
   </soapenv:Body>
</soapenv:Envelope>
Run Code Online (Sandbox Code Playgroud)

如果我可以使用soaptracer,我可以收到正确的回复:

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Body>
      <datosCollection xmlns="http://ws.wso2.org/dataservice">
         <datos>
            <id>1</id>
            <nombre>nombre1</nombre>
         </datos>
         <datos>
            <id>2</id>
            <nombre>nombre2</nombre>
         </datos>
         <datos>
            <id>3</id>
            <nombre>nombre3</nombre>
         </datos>
         <datos>
            <id>5</id>
            <nombre>nombre5</nombre>
         </datos>
         <datos>
            <id>4</id>
            <nombre>nombre4</nombre>
         </datos>
         <datos>
            <id>10</id>
            <nombre>gero et</nombre>
         </datos>
      </datosCollection>
   </soapenv:Body>
</soapenv:Envelope>
Run Code Online (Sandbox Code Playgroud)

使用4.1.0 P2 repo中的AS 5.1.0功能,对于数据服务和代理服务,Try it功能已被破坏.

另一个与BPS相关的问题,如果我想在ESB 4.7.1中使用P2 repo安装BPS功能我需要使用?

application-server wso2 wso2esb

0
推荐指数
1
解决办法
250
查看次数

错误NumberFormatException:对于输入字符串:“ 2.0”,启动Jdeveloper

在测试管理员和SOA服务器后,我安装了BPM并关闭了VM,然后从oracle网站下载了带有Oracle 12c 12.2.1.1的新VM。

现在,当我尝试启动Jdeveloper时,出现以下错误:

 Oracle JDeveloper 12c Development Build 12.2.1.1.0
 Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.

java.lang.RuntimeException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
    at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:233)
    at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:664)
    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalInit(EquinoxLauncher.java:69)
    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.init(EquinoxLauncher.java:37)
    at org.eclipse.osgi.launch.Equinox.init(Equinox.java:178)
    at org.netbeans.modules.netbinox.Netbinox.init(Netbinox.java:84)
    at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:167)
    at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:138)
    at org.netbeans.ModuleManager.enable(ModuleManager.java:1346)
    at org.netbeans.ModuleManager.enable(ModuleManager.java:1163)
    at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
    at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
    at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
    at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
    at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
    at org.netbeans.core.startup.Main.start(Main.java:307)
    at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
    at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:225)
    ... …
Run Code Online (Sandbox Code Playgroud)

oracle jdeveloper

0
推荐指数
1
解决办法
2129
查看次数

标签 统计

application-server ×1

java ×1

jdeveloper ×1

oracle ×1

vaadin7 ×1

wso2 ×1

wso2esb ×1