com.sun.corba.se.impl.logging.ORBUtilSystemException Java Examples
The following examples show how to use
com.sun.corba.se.impl.logging.ORBUtilSystemException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ServiceContexts.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public ServiceContexts( ORB orb ) { this.orb = orb ; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; addAlignmentOnWrite = false ; scMap = new HashMap(); // Use the GIOP version of the ORB. Should // be specified in ServiceContext. // See REVISIT below concerning giopVersion. giopVersion = orb.getORBData().getGIOPVersion(); codeBase = null ; }
Example #2
Source File: ServiceContexts.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public ServiceContexts( ORB orb ) { this.orb = orb ; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; addAlignmentOnWrite = false ; scMap = new HashMap(); // Use the GIOP version of the ORB. Should // be specified in ServiceContext. // See REVISIT below concerning giopVersion. giopVersion = orb.getORBData().getGIOPVersion(); codeBase = null ; }
Example #3
Source File: BufferManagerFactory.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public static BufferManagerRead newBufferManagerRead( int strategy, byte encodingVersion, ORB orb) { if (encodingVersion != Message.CDR_ENC_VERSION) { if (strategy != BufferManagerFactory.GROW) { ORBUtilSystemException wrapper = ORBUtilSystemException.get((ORB)orb, CORBALogDomains.RPC_ENCODING); throw wrapper.invalidBuffMgrStrategy("newBufferManagerRead"); } return new BufferManagerReadGrow(orb); } switch (strategy) { case BufferManagerFactory.GROW: return new BufferManagerReadGrow(orb); case BufferManagerFactory.COLLECT: throw new INTERNAL("Collect strategy invalid for reading"); case BufferManagerFactory.STREAM: return new BufferManagerReadStream(orb); default: throw new INTERNAL("Unknown buffer manager read strategy: " + strategy); } }
Example #4
Source File: IDLJavaSerializationInputStream.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void init(org.omg.CORBA.ORB orb, ByteBuffer byteBuffer, int bufSize, boolean littleEndian, BufferManagerRead bufferManager) { this.orb = (ORB) orb; this.bufSize = bufSize; this.bufferManager = bufferManager; buffer = byteBuffer; wrapper = ORBUtilSystemException.get((ORB)orb, CORBALogDomains.RPC_ENCODING); byte[] buf; if (buffer.hasArray()) { buf = buffer.array(); } else { buf = new byte[bufSize]; buffer.get(buf); } // Note: at this point, the buffer position is zero. The setIndex() // method call can be used to set a desired read index. bis = new _ByteArrayInputStream(buf); }
Example #5
Source File: ORBInitInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Creates a new ORBInitInfoImpl object (scoped to package) * * @param args The arguments passed to ORB_init. */ ORBInitInfoImpl( ORB orb, String[] args, String orbId, CodecFactory codecFactory ) { this.orb = orb; wrapper = InterceptorsSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; orbutilWrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; this.args = args; this.orbId = orbId; this.codecFactory = codecFactory; }
Example #6
Source File: CDRInputStream_1_0.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * NOTE: size passed to init means buffer size */ public void init(org.omg.CORBA.ORB orb, ByteBuffer byteBuffer, int size, boolean littleEndian, BufferManagerRead bufferManager) { this.orb = (ORB)orb; this.wrapper = ORBUtilSystemException.get( (ORB)orb, CORBALogDomains.RPC_ENCODING ) ; this.omgWrapper = OMGSystemException.get( (ORB)orb, CORBALogDomains.RPC_ENCODING ) ; this.littleEndian = littleEndian; this.bufferManagerRead = bufferManager; this.bbwi = new ByteBufferWithInfo(orb,byteBuffer,0); this.bbwi.buflen = size; this.bbwi.byteBuffer.limit(bbwi.buflen); this.markAndResetHandler = bufferManagerRead.getMarkAndResetHandler(); debug = ((ORB)orb).transportDebugFlag; }
Example #7
Source File: SocketFactoryContactInfoImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
public SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) { super(orb, contactInfoList); this.effectiveTargetIOR = effectiveTargetIOR; this.addressingDisposition = addressingDisposition; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; socketInfo = orb.getORBData().getLegacySocketFactory() .getEndPointInfo(orb, effectiveTargetIOR, cookie); socketType = socketInfo.getType(); hostname = socketInfo.getHost(); port = socketInfo.getPort(); }
Example #8
Source File: CDROutputStream_1_0.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void init(org.omg.CORBA.ORB orb, boolean littleEndian, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers) { // ORB must not be null. See CDROutputStream constructor. this.orb = (ORB)orb; this.wrapper = ORBUtilSystemException.get( this.orb, CORBALogDomains.RPC_ENCODING ) ; debug = this.orb.transportDebugFlag; this.littleEndian = littleEndian; this.bufferManagerWrite = bufferManager; this.bbwi = new ByteBufferWithInfo(orb, bufferManager, usePooledByteBuffers); this.streamFormatVersion = streamFormatVersion; createRepositoryIdHandlers(); }
Example #9
Source File: ORBConfiguratorImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void configure( DataCollector collector, ORB orb ) { ORB theOrb = orb ; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ; initObjectCopiers( theOrb ) ; initIORFinders( theOrb ) ; theOrb.setClientDelegateFactory( // REVISIT: this should be ProtocolDefault. TransportDefault.makeClientDelegateFactory( theOrb )) ; initializeTransport(theOrb) ; initializeNaming( theOrb ) ; initServiceContextRegistry( theOrb ) ; initRequestDispatcherRegistry( theOrb ) ; registerInitialReferences( theOrb ) ; persistentServerInitialization( theOrb ) ; runUserConfigurators( collector, theOrb ) ; }
Example #10
Source File: RequestMessage_1_1.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
RequestMessage_1_1(ORB orb, ServiceContexts _service_contexts, int _request_id, boolean _response_expected, byte[] _reserved, byte[] _object_key, String _operation, Principal _requesting_principal) { super(Message.GIOPBigMagic, GIOPVersion.V1_1, FLAG_NO_FRAG_BIG_ENDIAN, Message.GIOPRequest, 0); this.orb = orb; this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; service_contexts = _service_contexts; request_id = _request_id; response_expected = _response_expected; reserved = _reserved; object_key = _object_key; operation = _operation; requesting_principal = _requesting_principal; }
Example #11
Source File: BufferManagerFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public static BufferManagerWrite newBufferManagerWrite( int strategy, byte encodingVersion, ORB orb) { if (encodingVersion != Message.CDR_ENC_VERSION) { if (strategy != BufferManagerFactory.GROW) { ORBUtilSystemException wrapper = ORBUtilSystemException.get((ORB)orb, CORBALogDomains.RPC_ENCODING); throw wrapper.invalidBuffMgrStrategy("newBufferManagerWrite"); } return new BufferManagerWriteGrow(orb); } switch (strategy) { case BufferManagerFactory.GROW: return new BufferManagerWriteGrow(orb); case BufferManagerFactory.COLLECT: return new BufferManagerWriteCollect(orb); case BufferManagerFactory.STREAM: return new BufferManagerWriteStream(orb); default: throw new INTERNAL("Unknown buffer manager write strategy: " + strategy); } }
Example #12
Source File: SocketFactoryContactInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) { super(orb, contactInfoList); this.effectiveTargetIOR = effectiveTargetIOR; this.addressingDisposition = addressingDisposition; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; socketInfo = orb.getORBData().getLegacySocketFactory() .getEndPointInfo(orb, effectiveTargetIOR, cookie); socketType = socketInfo.getType(); hostname = socketInfo.getHost(); port = socketInfo.getPort(); }
Example #13
Source File: SocketFactoryContactInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public SocketFactoryContactInfoImpl( ORB orb, CorbaContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, SocketInfo cookie) { super(orb, contactInfoList); this.effectiveTargetIOR = effectiveTargetIOR; this.addressingDisposition = addressingDisposition; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; socketInfo = orb.getORBData().getLegacySocketFactory() .getEndPointInfo(orb, effectiveTargetIOR, cookie); socketType = socketInfo.getType(); hostname = socketInfo.getHost(); port = socketInfo.getPort(); }
Example #14
Source File: RequestMessage_1_1.java From hottub with GNU General Public License v2.0 | 6 votes |
RequestMessage_1_1(ORB orb, ServiceContexts _service_contexts, int _request_id, boolean _response_expected, byte[] _reserved, byte[] _object_key, String _operation, Principal _requesting_principal) { super(Message.GIOPBigMagic, GIOPVersion.V1_1, FLAG_NO_FRAG_BIG_ENDIAN, Message.GIOPRequest, 0); this.orb = orb; this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; service_contexts = _service_contexts; request_id = _request_id; response_expected = _response_expected; reserved = _reserved; object_key = _object_key; operation = _operation; requesting_principal = _requesting_principal; }
Example #15
Source File: SpecialMethod.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public CorbaMessageMediator invoke(java.lang.Object servant, CorbaMessageMediator request, byte[] objectId, ObjectAdapter objectAdapter) { ORB orb = (ORB)request.getBroker() ; ORBUtilSystemException wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.OA_INVOCATION ) ; if ((servant == null) || (servant instanceof NullServant)) { return request.getProtocolHandler().createSystemExceptionResponse( request, wrapper.badSkeleton(), null); } else { return request.getProtocolHandler().createSystemExceptionResponse( request, wrapper.getinterfaceNotImplemented(), null); } }
Example #16
Source File: CDROutputStream.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public CDROutputStream(ORB orb, GIOPVersion version, byte encodingVersion, boolean littleEndian, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers) { impl = OutputStreamFactory.newOutputStream(orb, version, encodingVersion); impl.init(orb, littleEndian, bufferManager, streamFormatVersion, usePooledByteBuffers); impl.setParent(this); this.orb = orb ; this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_ENCODING ) ; }
Example #17
Source File: BootstrapResolverImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public BootstrapResolverImpl(ORB orb, String host, int port) { wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_RESOLVER ) ; // Create a new IOR with the magic of INIT byte[] initialKey = "INIT".getBytes() ; ObjectKey okey = orb.getObjectKeyFactory().create(initialKey) ; IIOPAddress addr = IIOPFactories.makeIIOPAddress( orb, host, port ) ; IIOPProfileTemplate ptemp = IIOPFactories.makeIIOPProfileTemplate( orb, GIOPVersion.V1_0, addr); IORTemplate iortemp = IORFactories.makeIORTemplate( okey.getTemplate() ) ; iortemp.add( ptemp ) ; IOR initialIOR = iortemp.makeIOR( (com.sun.corba.se.spi.orb.ORB)orb, "", okey.getId() ) ; bootstrapDelegate = ORBUtility.makeClientDelegate( initialIOR ) ; }
Example #18
Source File: ORBInitInfoImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Creates a new ORBInitInfoImpl object (scoped to package) * * @param args The arguments passed to ORB_init. */ ORBInitInfoImpl( ORB orb, String[] args, String orbId, CodecFactory codecFactory ) { this.orb = orb; wrapper = InterceptorsSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; orbutilWrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; omgWrapper = OMGSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; this.args = args; this.orbId = orbId; this.codecFactory = codecFactory; }
Example #19
Source File: BootstrapResolverImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
public BootstrapResolverImpl(ORB orb, String host, int port) { wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_RESOLVER ) ; // Create a new IOR with the magic of INIT byte[] initialKey = "INIT".getBytes() ; ObjectKey okey = orb.getObjectKeyFactory().create(initialKey) ; IIOPAddress addr = IIOPFactories.makeIIOPAddress( orb, host, port ) ; IIOPProfileTemplate ptemp = IIOPFactories.makeIIOPProfileTemplate( orb, GIOPVersion.V1_0, addr); IORTemplate iortemp = IORFactories.makeIORTemplate( okey.getTemplate() ) ; iortemp.add( ptemp ) ; IOR initialIOR = iortemp.makeIOR( (com.sun.corba.se.spi.orb.ORB)orb, "", okey.getId() ) ; bootstrapDelegate = ORBUtility.makeClientDelegate( initialIOR ) ; }
Example #20
Source File: CorbaClientRequestDispatcherImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
protected void getExceptionDetailMessage( CorbaMessageMediator messageMediator, ORBUtilSystemException wrapper) { ServiceContext sc = messageMediator.getReplyServiceContexts() .get(ExceptionDetailMessage.value); if (sc == null) return ; if (! (sc instanceof UnknownServiceContext)) { throw wrapper.badExceptionDetailMessageServiceContextType(); } byte[] data = ((UnknownServiceContext)sc).getData(); EncapsInputStream in = EncapsInputStreamFactory.newEncapsInputStream((ORB)messageMediator.getBroker(), data, data.length); in.consumeEndian(); String msg = "----------BEGIN server-side stack trace----------\n" + in.read_wstring() + "\n" + "----------END server-side stack trace----------"; messageMediator.setReplyExceptionDetailMessage(msg); }
Example #21
Source File: CodecFactoryImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Creates a new CodecFactory implementation. Stores the ORB that * created this factory, for later use by the Codec. */ public CodecFactoryImpl( ORB orb ) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PROTOCOL ) ; // Precreate a codec for version 1.0 through // 1.(MAX_MINOR_VERSION_SUPPORTED). This can be // done since Codecs are immutable in their current implementation. // This is an optimization that eliminates the overhead of creating // a new Codec each time create_codec is called. for( int minor = 0; minor <= MAX_MINOR_VERSION_SUPPORTED; minor++ ) { codecs[minor] = new CDREncapsCodec( orb, 1, minor ); } }
Example #22
Source File: ORBDataParserImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public ORBDataParserImpl( ORB orb, DataCollector coll ) { super( ParserTable.get().getParserData() ) ; this.orb = orb ; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ; init( coll ) ; complete() ; }
Example #23
Source File: ReflectiveTie.java From hottub with GNU General Public License v2.0 | 5 votes |
public ReflectiveTie( PresentationManager pm, ORBUtilSystemException wrapper ) { SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkPermission(new DynamicAccessPermission("access")); } this.pm = pm ; this.wrapper = wrapper ; }
Example #24
Source File: ReplyMessage_1_2.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
ReplyMessage_1_2(ORB orb, int _request_id, int _reply_status, ServiceContexts _service_contexts, IOR _ior) { super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN, Message.GIOPReply, 0); this.orb = orb; this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; request_id = _request_id; reply_status = _reply_status; service_contexts = _service_contexts; ior = _ior; }
Example #25
Source File: CacheTable.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public CacheTable(ORB orb, boolean u) { //System.out.println("using new cache table"); this.orb = orb; wrapper = ORBUtilSystemException.get(orb, CORBALogDomains.RPC_ENCODING); noReverseMap = u; size = INITIAL_SIZE; entryCount = 0; initTables(); }
Example #26
Source File: TOAFactory.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public void init( ORB orb ) { this.orb = orb ; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.OA_LIFECYCLE ) ; tom = new TransientObjectManager( orb ) ; codebaseToTOA = new HashMap() ; }
Example #27
Source File: LocateReplyMessage_1_2.java From hottub with GNU General Public License v2.0 | 5 votes |
LocateReplyMessage_1_2(ORB orb, int _request_id, int _reply_status, IOR _ior) { super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN, Message.GIOPLocateReply, 0); this.orb = orb; this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; request_id = _request_id; reply_status = _reply_status; ior = _ior; }
Example #28
Source File: ReflectiveTie.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public ReflectiveTie( PresentationManager pm, ORBUtilSystemException wrapper ) { SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkPermission(new DynamicAccessPermission("access")); } this.pm = pm ; this.wrapper = wrapper ; }
Example #29
Source File: ReplyMessage_1_0.java From JDKSourceCode1.8 with MIT License | 5 votes |
public static void isValidReplyStatus(int replyStatus) { switch (replyStatus) { case NO_EXCEPTION : case USER_EXCEPTION : case SYSTEM_EXCEPTION : case LOCATION_FORWARD : break; default : ORBUtilSystemException localWrapper = ORBUtilSystemException.get( CORBALogDomains.RPC_PROTOCOL ) ; throw localWrapper.illegalReplyStatus( CompletionStatus.COMPLETED_MAYBE); } }
Example #30
Source File: SelectorImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public SelectorImpl(ORB orb) { this.orb = orb; selector = null; selectorStarted = false; timeout = 60000; deferredRegistrations = new ArrayList(); interestOpsList = new ArrayList(); listenerThreads = new HashMap(); readerThreads = java.util.Collections.synchronizedMap(new HashMap()); closed = false; wrapper = ORBUtilSystemException.get(orb,CORBALogDomains.RPC_TRANSPORT); }