• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Developer Dojo /
  • Wowza Streaming Server Java API /
avatar image
Question by Ozan E. · Oct 20, 2017 at 03:23 PM · wowza streaming server java api

"Connection Refused" Error in the Remote Debug on Eclipse

Hi,

Actually,my purpose remote debug this java project on remote VM application.So, I will take server logs which is relevant my VM and print some logs data to MongoDB.

I think I setted necessary things.But I'm not sure.

I just tried remote debug on Eclipse IDE but I can't handle it these problems.I read documents.I applied directions but maybe I missed somethings.

These are my logs and warnings.

Also my startup.bat is default now.But also I configured like this and tried.But it doesn' work:

%_EXESERVER% "%_EXECJAVA%" %WMSTUNE_OPTS% %JMXOPTIONS% 
-Dcom.wowza.wms.runmode="%runmode%" 
-Dcom.wowza.wms.native.base="win" 
-Dcom.wowza.wms.ConfigURL="%WMSCONFIG_URL%" -cp %CLASSPATH% 
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 
com.wowza.wms.bootstrap.Bootstrap start


It's my java code:

package com.mycompany.wowza;


import com.wowza.wms.application.*;




import java.io.IOException;


import org.bson.Document;


import com.mongodb.MongoClient;
import com.mongodb.MongoCredential;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;


 import com.wowza.wms.amf.*;
 import com.wowza.wms.client.*;
 import com.wowza.wms.module.*;
 import com.wowza.wms.request.*;
 


public class TestWowza extends ModuleBase 
{




	
	public void doSomething(IClient client, RequestFunction function, AMFDataList params) {
		getLogger().info("doSomething");
		sendResult(client, params, "Hello Wowza");
	}


	public void onAppStart(IApplicationInstance appInstance) throws IOException {
		getLogger().info("Test Method OK!!!");
	}


	public void onAppStop(IApplicationInstance appInstance) throws IOException {
		String fullname = appInstance.getApplication().getName() + "/" + appInstance.getName();
		getLogger().info("onAppStop-test: " + fullname);


	}


	
}


Firstly,I want to see "Test Method OK!!!!!" in the logs.It means my java code is running.Than I'll write my codes which are necessary for MongoDB

In my application,I configured my modules.That'all I have now.

So I want your help about this problem.How can I fix it?

Thanks in advance for your interest...

ozzyy

prb1.png (7.4 kB)
prb2.png (9.1 kB)
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Ozan E. · Oct 25, 2017 at 05:34 PM

I did it my project in the other way.

All I want,run my java code at Wowza and see outputs in the server logs.I reliaze that I didn't configure my Startup Stream which is include my Application(Application also include my java class).

I configured and I can see outputs.

By the way,I did with no Remote Debug.

Thanks your answer,patience and interest

Comment
Matt Davidson

People who like this

1 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Andrew Ramberg · Oct 20, 2017 at 05:17 PM

Hello,

You might find the JConsole article helpful when trying to connect with Eclipse, which should be similar.


It could be a port issue depending on your Wowza JMX configuration, as it's commonly on port 8086 or 8084 but you might want to check this configuration in the [wowza-install]/conf/Server.xml file under <JMXRemoteConfiguration> to be sure.


Best regards,
Andrew

Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Sample code to use MediaCaster API to start/stop a stream 2 Answers

A question about the IPushPublishRTMPNotify class in the PushPublishing API 1 Answer

StreamPublisher and corrupted video playback 1 Answer

StreamPublisher Module 1 Answer

Howto reject connections while playing streams 9 Answers

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges