我在Windows XP Pro上使用Glassfish 3.0.1,JVM 1.6.0_21;
我不确切知道环境中发生了什么变化,但是当我尝试部署企业应用程序(ejb模块+应用程序客户端模块)时,我就会得到这个堆栈跟踪.
没有任何东西在3820端口上运行,除了Glassfish ...我用netstat检查服务器已停止并且服务器已启动.
可能是什么原因造成的?一些内部流程冲突?
有关如何进一步调试此问题的任何提示?
WARNING: Can not find resource bundle for this logger. class name that failed: org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory
SEVERE: iiop.createsocket_exception
WARNING: Can not find resource bundle for this logger. class name that failed: org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory
SEVERE: java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:106)
at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:106)
at com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:72)
at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSSLServerSocket(IIOPSSLSocketFactory.java:402)
at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createServerSocket(IIOPSSLSocketFactory.java:281)
at com.sun.corba.ee.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:91)
at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:247)
at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:264)
at com.sun.corba.ee.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:131)
at com.sun.corba.ee.impl.oa.poa.POAImpl.initialize(POAImpl.java:474)
at com.sun.corba.ee.impl.oa.poa.POAImpl.makeRootPOA(POAImpl.java:323)
at com.sun.corba.ee.impl.oa.poa.POAFactory$1.evaluate(POAFactory.java:279) …Run Code Online (Sandbox Code Playgroud) 我想在单个服务中使用wshttpbinding(使用SSL而不使用SSL),但它不起作用,任何人都实现了它.那么请指导我如何实现这一目标?
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="CommonBehaviour">
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
<serviceCredentials>
<serviceCertificate findValue="AzilenTechnology" x509FindType="FindBySubjectName" />
</serviceCredentials>
<serviceDebug includeExceptionDetailInFaults="false" />
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="basicHttpBindingConfig" closeTimeout="00:10:00"
openTimeout="00:10:00" sendTimeout="00:10:00" maxBufferSize="2147483647"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
messageEncoding="Mtom">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
<wsHttpBinding>
<binding name="wsHttpBindingConfig" closeTimeout="00:10:00" openTimeout="00:10:00"
sendTimeout="00:10:00" bypassProxyOnLocal="true" maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647" messageEncoding="Mtom">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None" />
</binding>
</wsHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="CommonBehaviour" name="wcfAllInOne.wcfFileIO">
<endpoint binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange" />
<endpoint address="http://localhost:82/WCFAllInOne/wcfFileIO.svc/basicHttpEndPoint" binding="basicHttpBinding" …Run Code Online (Sandbox Code Playgroud) 我不明白得到单例类和静态类有什么区别?任何人都可以用例子详细说明吗?
任何人都可以分享您在app-engine中执行'或'查询的方法吗?
我想说
class A_db_model(db.Model):
valueA = db.ListProperty(basestring)
Run Code Online (Sandbox Code Playgroud)
在价值我有
aaa
aaa, bbb
bbb
ccc
Run Code Online (Sandbox Code Playgroud)
如果值A匹配'aaa'或'bbb'并返回不重复的结果,我想返回结果.
来自http://www.php.net/manual/en/class.pdo.php
###### config.ini ######
db_driver=mysql
db_user=root
db_password=924892xp
[dsn]
host=localhost
port=3306
dbname=localhost
[db_options]
PDO::MYSQL_ATTR_INIT_COMMAND=set names utf8
[db_attributes]
ATTR_ERRMODE=ERRMODE_EXCEPTION
############
<?php class Database {
private static $link = null ;
private static function getLink ( ) {
if ( self :: $link ) {
return self :: $link ;
}
$ini = _BASE_DIR . "config.ini" ;
$parse = parse_ini_file ( $ini , true ) ;
$driver = $parse [ "db_driver" ] ;
$dsn = "${driver}:" ;
$user = $parse [ "db_user" …Run Code Online (Sandbox Code Playgroud) 我有一个代码,
class foo : public bar
{
public:
foo(){};
~foo(){};
};
class wu
{
public:
wu(const bar& Bar ) :
m_bar(Bar)
{};
~wu(){};
private:
bar m_bar;
};
int main()
{
foo tmpFoo;
wu tmpWu(tmpFoo);
}
Run Code Online (Sandbox Code Playgroud)
现在我的问题是,上面的代码将无法编译,错误消息是"错误:变量wu tmpWu具有初始化程序但不完整类型".
这是否意味着,我必须将tmpFoo对象强制转换为bar类?
请指教.
谢谢.
我刚刚遇到了TrueLicense Project API,用于许可Java项目.我想知道是否有其他类似的API可用?请给我一些建议.
此外,我不熟悉生成密钥库的过程.任何人都可以指导我生成此API中使用的.store文件的过程吗?
谢谢.
我一直试图利用Android的复数资源,但没有任何运气.
这是我的复数的资源文件:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<plurals name="meters">
<item quantity="one">1 meter</item>
<item quantity="other">
<xliff:g id="count">%d</xliff:g>
meters
</item>
</plurals>
<plurals name="degrees">
<item quantity="one">1 degree</item>
<item quantity="other">
<xliff:g id="count">%d</xliff:g>
degrees
</item>
</plurals>
</resources>
Run Code Online (Sandbox Code Playgroud)
...然后这是我尝试从我的资源中提取数量字符串时使用的代码:
Resources res = this.getResources();
tTemp.setText(res.getQuantityString(R.plurals.degrees, this.mObject.temp_c.intValue()));
Run Code Online (Sandbox Code Playgroud)
...但TextView中的文本仍然是%d degrees和%d meters.
有谁知道发生了什么?我调试了代码,res.getQuantityString(...)调用返回一个值为%d degrees或的String %d meters.虽然当数量恰好为1时,它确实正确地评估1 degree或1 meter.
在此先感谢您的帮助!
此致,celestialorb.
当我尝试将更改提交到本地repo时,我收到以下消息:
致命:无法编写new_index文件