RTMPS,如何实现

发布于 2024-12-12 01:37:14 字数 7359 浏览 0 评论 0原文

我对这个 SSL 东西还很陌生。我正在尝试使用 SSL 证书实施RTMPS。每当我尝试获取 RTMPS 的这些属性时。我的 eclipse 给了我一个错误日志。

    <property name="eventThreadsCore" value="${rtmp.event_threads_core}" />
    <property name="eventThreadsMax" value="${rtmp.event_threads_max}" />
    <property name="eventThreadsQueue" value="${rtmp.event_threads_queue}" />
    <property name="eventThreadsKeepalive" value="${rtmp.event_threads_keepalive}" /> 
  • 错误日志如下:

[WARN] [main] org.springframework.beans.GenericTypeAwarePropertyDescriptor - 正在访问无效的 JavaBean 属性“enableMinaMonitor”!在实际使用的旁边发现不明确的写入方法 [public void org.red5.server.jmx.JMXAgent.setEnableMinaMonitor(java.lang.String)]: [public void org.red5.server.jmx.JMXAgent.setEnableMinaMonitor(boolean)] [ INFO] [main] org.red5.server.service.WarDeployer - 创建 War 部署程序服务 [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - 刷新 org.springframework.context.support.FileSystemXmlApplicationContext@4a93837b:启动日期 [Thu Oct 27 09:08:00 PKT 2011];父级:ApplicationContext 'red5.common' [INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer -从类路径资源加载属性文件[red5.properties] [INFO] [main] org.springframework.beans。 factory.support.DefaultListableBeanFactory - 销毁单例org.springframework.beans.factory.support.DefaultListableBeanFactory@621bedb0:定义bean [customEditorConfigurer,placeholderConfig,rtmpMinaConnManager,rtmpHandler,rtmpMinaIoHandler,rtmpTransport,rtmpMinaConnection,rtmptConnManager,rtmptHandler,rtmptServlet,rtmptConnection,rtmpsMinaIoHandler,rtmpsTransport,debugProxyIoHandler];父级: org.springframework.beans.factory.support.DefaultListableBeanFactory@75a9883d [INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - 销毁 org.springframework.beans.factory.support.DefaultListableBeanFactory@12746ad0 中的单例:定义bean [placeholderConfig,red5.common,red5.core,context.loader,pluginLauncher,tomcat.server];工厂层次结构的根 [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - 关闭 ApplicationContext 'red5.common':启动日期 [Thu Oct 27 09:07:59 PKT 2011];上下文层次结构的根[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - 销毁org.springframework.beans.factory.support.DefaultListableBeanFactory@75a9883d中的单例:定义bean [placeholderConfig、red5.server、jmxFactory、jmxAgent、序列化器、反序列化器、statusObjectService、rtmpCodecFactory、rtmptCodecFactory、remotingCodecFactory、streamableFileFactory、filePersistenceThread、sharedObjectService、streamService、providerService、consumerService、bandwidthFilter、schedulingService、warDeployS服务,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp4reader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,org.springframework.beans.factory。 config.MethodInvokingFactoryBean#1,streamExecutor,playlistSubscriberStream,clientBroadcastStream];工厂层次结构的根Bootstrap完成org.springframework.beans.factory.BeanCreationException:创建类路径资源[red5.xml]中定义的名称为“red5.core”的bean时出错:bean的实例化失败;嵌套异常是 org.springframework.beans.BeanInstantiationException: 无法实例化 bean 类 [org.springframework.context.support.FileSystemXmlApplicationContext]: 构造函数抛出异常;嵌套异常是 org.springframework.beans.factory.BeanDefinitionStoreException:类路径资源 [red5-core.xml] 中定义的名称为“rtmpsTransport”的 bean 定义无效:无法解析 org.springframework.beans 处的占位符“rtmp.event_threads_core”。工厂.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:283)在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:984)在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:886) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479) 在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) 在org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290) 在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) 在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287) 在 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189) 在org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)在org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842) org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)在org.red5.server.Launcher.launch(Launcher.java:62)在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)在太阳。反映.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在 java.lang.reflect.Method.invoke(Method.java:597) 在 org.red5.server.Bootstrap.bootStrap(Bootstrap.java:135) 在 org .red5.server.Bootstrap.main(Bootstrap.java:50) 原因: org.springframework.beans.BeanInstantiationException:无法实例化bean类[org.springframework.context.support.FileSystemXmlApplicationContext]:构造函数抛出异常;嵌套异常是 org.springframework.beans.factory.BeanDefinitionStoreException:类路径资源 [red5-core.xml] 中定义的名称为“rtmpsTransport”的 bean 定义无效:无法解析 org.springframework.beans 处的占位符“rtmp.event_threads_core”。 BeanUtils.instantiateClass(BeanUtils.java:141)在org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:107) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275) ... 18 更多 造成者: org .springframework.beans.factory.BeanDefinitionStoreException:在类路径资源 [red5-core.xml] 中定义的名称为“rtmpsTransport”的 bean 定义无效:无法解析 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:272) 处的占位符“rtmp.event_threads_core” ) 在org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)在 org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:624)在org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:599)在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:398) org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:140) 在 org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:106) 在 sun.reflect.NativeConstructorAccessorImpl。 newInstance0(本机方法)位于sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 在 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 在 java.lang.reflect.Constructor.newInstance(Constructor.java:513) 在org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) ... 20 更多

m pretty new to this SSL stuff. I am trying to implement RTMPS with SSL certificates. Whenever i m trying to get these properties of RTMPS. My eclipse gives me an error log.

    <property name="eventThreadsCore" value="${rtmp.event_threads_core}" />
    <property name="eventThreadsMax" value="${rtmp.event_threads_max}" />
    <property name="eventThreadsQueue" value="${rtmp.event_threads_queue}" />
    <property name="eventThreadsKeepalive" value="${rtmp.event_threads_keepalive}" /> 
  • The error log is as follows :

[WARN] [main] org.springframework.beans.GenericTypeAwarePropertyDescriptor - Invalid JavaBean property 'enableMinaMonitor' being accessed! Ambiguous write methods found next to actually used [public void org.red5.server.jmx.JMXAgent.setEnableMinaMonitor(java.lang.String)]: [public void org.red5.server.jmx.JMXAgent.setEnableMinaMonitor(boolean)] [INFO] [main] org.red5.server.service.WarDeployer - War deployer service created [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@4a93837b: startup date [Thu Oct 27 09:08:00 PKT 2011]; parent: ApplicationContext 'red5.common' [INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer -Loading properties file from class path resource [red5.properties] [INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@621bedb0: defining beans [customEditorConfigurer,placeholderConfig,rtmpMinaConnManager,rtmpHandler,rtmpMinaIoHandler,rtmpTransport,rtmpMinaConnection,rtmptConnManager,rtmptHandler,rtmptServlet,rtmptConnection,rtmpsMinaIoHandler,rtmpsTransport,debugProxyIoHandler]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@75a9883d [INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@12746ad0: defining beans [placeholderConfig,red5.common,red5.core,context.loader,pluginLauncher,tomcat.server]; root of factory hierarchy [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Closing ApplicationContext 'red5.common': startup date [Thu Oct 27 09:07:59 PKT 2011]; root of context hierarchy [INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@75a9883d: defining beans [placeholderConfig,red5.server,jmxFactory,jmxAgent,serializer,deserializer,statusObjectService,rtmpCodecFactory,rtmptCodecFactory,remotingCodecFactory,streamableFileFactory,filePersistenceThread,sharedObjectService,streamService,providerService,consumerService,bandwidthFilter,schedulingService,warDeployService,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp4reader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,playlistSubscriberStream,clientBroadcastStream]; root of factory hierarchy Bootstrap complete org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'red5.core' defined in class path resource [red5.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.FileSystemXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'rtmpsTransport' defined in class path resource [red5-core.xml]: Could not resolve placeholder 'rtmp.event_threads_core' at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:283) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:984) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:886) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416) at org.red5.server.Launcher.launch(Launcher.java:62) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:135) at org.red5.server.Bootstrap.main(Bootstrap.java:50) Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.FileSystemXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'rtmpsTransport' defined in class path resource [red5-core.xml]: Could not resolve placeholder 'rtmp.event_threads_core' at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:107) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:275) ... 18 more Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'rtmpsTransport' defined in class path resource [red5-core.xml]: Could not resolve placeholder 'rtmp.event_threads_core' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:272) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:624) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:599) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:398) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:140) at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:106) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) ... 20 more

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

安静被遗忘 2024-12-19 01:37:14

一切都在这里..

 Invalid bean definition with name 'rtmpsTransport' defined in class path resource [red5-core.xml]: Could not resolve placeholder 'rtmp.event_threads_core' at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)

暂时只需注释掉这些,您的代码就可以了。我认为你在最新的 red5 中不需要它们,而且它们的基本类是不同的,你可以在 red5-core.xml 文件中看到它。

Its all here..

 Invalid bean definition with name 'rtmpsTransport' defined in class path resource [red5-core.xml]: Could not resolve placeholder 'rtmp.event_threads_core' at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)

for the time being just comment out those and ur code will be good to go. I dont think u need them in latest red5 also the basic class for them is different and u can see it way down the red5-core.xml file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文